Class XItemRenderData

    • Method Detail

      • isForceDisabled

        public boolean isForceDisabled()
      • getOptionValue

        public String getOptionValue​(com.alibaba.fastjson.JSONObject opt)
      • getOptionText

        public String getOptionText​(com.alibaba.fastjson.JSONObject opt)
      • getOptionTitle

        public String getOptionTitle​(com.alibaba.fastjson.JSONObject opt)
      • getDatasourceField

        protected String getDatasourceField​(com.alibaba.fastjson.JSONObject options,
                                            XPropertyEnum fieldEnum,
                                            String fieldName)
      • getCssHtmlAttrString

        public String getCssHtmlAttrString​(XItemRenderCtx ctx)
        Creates the class names that should be added as the class attribute to a form element. Includes the simpleName of rendered class (such as XTextField, XTextArea etc.)
        Parameters:
        ctx - Current render context indicating whether the name of the element should be added as a CSS style class.
        Returns:
        All CSS style classes for the form element.
      • getCssHtmlAttrString

        public String getCssHtmlAttrString​(boolean withName)
        Creates the class names that should be added as the class attribute to a form element. Includes the simpleName of rendered class (such as XTextField, XTextArea etc.)
        Parameters:
        withName - Whether the name of the element should be included as a style class.
        Returns:
        All CSS style classes for the form element.
      • getStyleHtmlAttrString

        public String getStyleHtmlAttrString()
        Returns:
        String of inline styles like min-height max-width and min-width if property is set
      • isReadonly

        public boolean isReadonly()
        Returns:
        true if property readonly equals is 2 the value 1 means disabled
      • isDisabled

        public boolean isDisabled()
        Returns:
        true iff: readonly equals 1 or disabled equals 1 or forceDisabled is set to true
        See Also:
        isPlainDisabled()
      • isPlainDisabled

        public boolean isPlainDisabled()
        Returns:
        true iff: readonly equals 1 or disabled equals 1.
        See Also:
        isDisabled()
      • isHidden

        public boolean isHidden()
        Returns:
        true ishidden equals 1