Class XItemRenderData

java.lang.Object
de.xima.fc.form.common.models.AXItemPropertiesData
de.xima.fc.form.common.models.XItemRenderData
All Implemented Interfaces:
IXItemPropertiesData, Serializable

public class XItemRenderData extends AXItemPropertiesData
Author:
XIMA MEDIA GmbH
See Also:
  • Field Details

    • value

      public final XItemRenderData.Value value
    • i18n

      public final XItemRenderData.I18N i18n
      Helper for accessing the localized value for a given item property, resolved according to the requested language.
  • Constructor Details

  • Method Details

    • getXFormRenderConfig

      public IXFormRenderConfig getXFormRenderConfig()
    • setXFormRenderConfig

      @Deprecated public void setXFormRenderConfig(IXFormRenderConfig xFormRenderConfig)
      Deprecated.
      Use XItemRenderData.XItemRenderDataBuilder to configure an instance, don't mutate existing instances.
      Parameters:
      xFormRenderConfig - New form render configuration to use.
    • getValuesMap

      public Map<String,List<String[]>> getValuesMap()
    • setValuesMap

      @Deprecated public void setValuesMap(Map<String,List<String[]>> valuesMap)
      Deprecated.
      Use XItemRenderData.XItemRenderDataBuilder to configure an instance, don't mutate existing instances.
      Parameters:
      valuesMap - New values map to use.
    • isForceDisabled

      public boolean isForceDisabled()
    • setForceDisabled

      @Deprecated public void setForceDisabled(boolean forceDisabled)
      Deprecated.
      Use XItemRenderData.XItemRenderDataBuilder to configure an instance, don't mutate existing instances.
      Parameters:
      forceDisabled - New value for isForceDisabled().
    • getProperties

      public XItemRenderData getProperties()
    • 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)
    • getValue

      public XItemRenderData.Value getValue()
    • getCssHtmlAttrString

      @Deprecated public String getCssHtmlAttrString()
      Returns:
      All CSS style classes for the form element.
    • 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.
    • getCssClassesCustom

      public String getCssClassesCustom()
      Returns:
      All custom CSS classes set by the user via XPropertyEnum.cssclasses.
    • getCssClassesItemType

      public String getCssClassesItemType()
      Returns:
      All CSS classes for the type of the form element, e.g. XItem XTextField.
    • getCssClassesLabelDirection

      public String getCssClassesLabelDirection()
      Returns:
      All CSS classes for label direction, e.g. left-top.
    • getCssClassesItemName

      public String getCssClassesItemName(XItemRenderCtx ctx)
      Parameters:
      ctx - Current render context.
      Returns:
      All CSS classes derived from the name of the item, if element class name mode is enabled.
    • getCssHtmlAttrString

      public String getCssHtmlAttrString(boolean withName)
      Creates the class names that should be added as the class attribute to a form element. This is simply a combination of getCssClassesItemType(), getCssClassesCustom(), getCssClassesLabelDirection(), and getCssClassesItemName() if element class name mode is enabled
      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

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

      public boolean isHidden()
      Returns:
      true ishidden equals 1
    • addAriaAttributesToInput

      public void addAriaAttributesToInput(com.hp.gagawa.java.Node node)