Package de.xima.fc.form.common.models
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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description class
XItemRenderData.I18N
class
XItemRenderData.Value
-
Field Summary
Fields Modifier and Type Field Description XItemRenderData.I18N
i18n
XItemRenderData.Value
value
-
Fields inherited from class de.xima.fc.form.common.models.AXItemPropertiesData
propertyMap, version
-
-
Constructor Summary
Constructors Constructor Description XItemRenderData(String className, Map<String,XPropertyValue> propertyMap, IXFormRenderConfig xFormRenderConfig, Map<String,List<String[]>> valuesMap, boolean forceDisabled)
XItemRenderData(String className, Map<String,XPropertyValue> propertyMap, IXFormRenderConfig xFormRenderConfig, Map<String,List<String[]>> valuesMap, boolean forceDisabled, com.alibaba.fastjson.JSONObject version)
Creates a new render data object that stores all the properties of an item and offers methods to access them.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description String
getCssHtmlAttrString()
Deprecated.String
getCssHtmlAttrString(boolean withName)
Creates the class names that should be added as theclass
attribute to a form element.String
getCssHtmlAttrString(XItemRenderCtx ctx)
Creates the class names that should be added as theclass
attribute to a form element.protected String
getDatasourceField(com.alibaba.fastjson.JSONObject options, XPropertyEnum fieldEnum, String fieldName)
String
getOptionText(com.alibaba.fastjson.JSONObject opt)
String
getOptionValue(com.alibaba.fastjson.JSONObject opt)
XItemRenderData
getProperties()
String
getStyleHtmlAttrString()
XItemRenderData.Value
getValue()
Map<String,List<String[]>>
getValuesMap()
IXFormRenderConfig
getXFormRenderConfig()
boolean
isDisabled()
boolean
isForceDisabled()
boolean
isHidden()
boolean
isPlainDisabled()
boolean
isReadonly()
void
setForceDisabled(boolean forceDisabled)
void
setValuesMap(Map<String,List<String[]>> valuesMap)
void
setXFormRenderConfig(IXFormRenderConfig xFormRenderConfig)
-
Methods inherited from class de.xima.fc.form.common.models.AXItemPropertiesData
contains, contains, get, get, getAlias, getAttributes, getClassName, getDatatype, getEquals, getFileextension, getHiddenif, getHiddenifclear, getHiddenifcomp, getHiddenifvalue, getId, getMaxfilesize, getMaxvalue, getMinvalue, getName, getOptions, getParentId, getPropertyMap, getReadonlyif, getReadonlyifclear, getReadonlyifcomp, getReadonlyifvalue, getRequired, getRequiredgroup, getRequiredif, getRequiredifcomp, getRequiredifvalue, getResolvedAlias, getSemver, getVersion, getVrule, isReadonlyStatusdependent, isReadonlyUsergrouppendant, isStatusdependent, isUsergrouppendent, isValidateOnServerSide, put, set, set, setClassName
-
-
-
-
Field Detail
-
value
public XItemRenderData.Value value
-
i18n
public XItemRenderData.I18N i18n
-
-
Constructor Detail
-
XItemRenderData
public XItemRenderData(String className, Map<String,XPropertyValue> propertyMap, IXFormRenderConfig xFormRenderConfig, Map<String,List<String[]>> valuesMap, boolean forceDisabled, com.alibaba.fastjson.JSONObject version)
Creates a new render data object that stores all the properties of an item and offers methods to access them.
-
XItemRenderData
@Deprecated public XItemRenderData(String className, Map<String,XPropertyValue> propertyMap, IXFormRenderConfig xFormRenderConfig, Map<String,List<String[]>> valuesMap, boolean forceDisabled)
Creates a new render data object that stores all the properties of an item and offers methods to access them.
-
-
Method Detail
-
getXFormRenderConfig
public IXFormRenderConfig getXFormRenderConfig()
-
setXFormRenderConfig
public void setXFormRenderConfig(IXFormRenderConfig xFormRenderConfig)
-
isForceDisabled
public boolean isForceDisabled()
-
setForceDisabled
public void setForceDisabled(boolean forceDisabled)
-
getProperties
public XItemRenderData getProperties()
-
getOptionValue
public String getOptionValue(com.alibaba.fastjson.JSONObject opt)
-
getOptionText
public String getOptionText(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()
Deprecated.- Returns:
- All CSS style classes for the form element.
-
getCssHtmlAttrString
public String getCssHtmlAttrString(XItemRenderCtx ctx)
Creates the class names that should be added as theclass
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 theclass
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 equals1
ordisabled
equals1
orforceDisabled
is set totrue
- See Also:
isPlainDisabled()
-
isPlainDisabled
public boolean isPlainDisabled()
- Returns:
true
iff: readonly equals1
ordisabled
equals1
.- See Also:
isDisabled()
-
isHidden
public boolean isHidden()
- Returns:
- true ishidden equals 1
-
-