Package de.xima.fc.form.common.items
Class XItem
- java.lang.Object
-
- de.xima.fc.form.common.models.AXItemPropertiesData
-
- de.xima.fc.form.common.items.XItem
-
- All Implemented Interfaces:
IXItemPropertiesData
,Serializable
public class XItem extends AXItemPropertiesData
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static org.slf4j.Logger
LOG
-
Fields inherited from class de.xima.fc.form.common.models.AXItemPropertiesData
className, propertyMap, version
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description XItemRenderData
getRenderData(IXFormRenderConfig config)
Deprecated.UseXItemRenderData.XItemRenderDataBuilder.withXFormRenderConfig(IXFormRenderConfig)
to set the data from this item on the render data.com.hp.gagawa.java.elements.Div
render(IXFormRenderConfig xFormRenderConfig, HashMap<String,com.hp.gagawa.java.FertileNode> parents, Map<String,List<String[]>> valuesMap, boolean forceDisabled, IXFormRenderContext formRenderCtx, boolean designerPreview, com.alibaba.fastjson.JSONObject clientModel, boolean attributeCompatMode, boolean elementClassNameMode)
Deprecated.Create theXItemRenderData.XItemRenderDataBuilder
andXItemRenderCtx.XItemRenderCtxBuilder
separately, then useXItemRenderer.render(XItemRenderData, XItemRenderCtx, IXFormRenderContext, JSONObject)
to render the item.com.hp.gagawa.java.elements.Div
render(IXFormRenderConfig xFormRenderConfig, HashMap<String,com.hp.gagawa.java.FertileNode> parents, Map<String,List<String[]>> valuesMap, boolean forceDisabled, IXFormRenderContext formRenderCtx, com.alibaba.fastjson.JSONObject clientModel, boolean attributeCompatMode, boolean elementClassNameMode)
Deprecated.Create theXItemRenderData.XItemRenderDataBuilder
andXItemRenderCtx.XItemRenderCtxBuilder
separately, then useXItemRenderer.render(XItemRenderData, XItemRenderCtx, IXFormRenderContext, JSONObject)
to render the item.String
toString()
-
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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface de.xima.fc.form.common.models.IXItemPropertiesData
getAttributesEntries, getAttributeValue, hasAttribute, isOfType, isRepeated, isUploadMultiple, removeAttribute, setAttributeValue
-
-
-
-
Constructor Detail
-
XItem
public XItem(com.alibaba.fastjson.JSONObject jsonObject, com.alibaba.fastjson.JSONObject version)
-
XItem
@Deprecated public XItem(com.alibaba.fastjson.JSONObject jsonObject)
Deprecated.- Parameters:
jsonObject
- XItem JSON with the properties.
-
-
Method Detail
-
getRenderData
@Deprecated public XItemRenderData getRenderData(IXFormRenderConfig config)
Deprecated.UseXItemRenderData.XItemRenderDataBuilder.withXFormRenderConfig(IXFormRenderConfig)
to set the data from this item on the render data.- Parameters:
config
- Form render configuration to pass on to the item render data.- Returns:
- A new item render data with some values prefilled.
-
render
@Deprecated public com.hp.gagawa.java.elements.Div render(IXFormRenderConfig xFormRenderConfig, HashMap<String,com.hp.gagawa.java.FertileNode> parents, Map<String,List<String[]>> valuesMap, boolean forceDisabled, IXFormRenderContext formRenderCtx, com.alibaba.fastjson.JSONObject clientModel, boolean attributeCompatMode, boolean elementClassNameMode)
Deprecated.Create theXItemRenderData.XItemRenderDataBuilder
andXItemRenderCtx.XItemRenderCtxBuilder
separately, then useXItemRenderer.render(XItemRenderData, XItemRenderCtx, IXFormRenderContext, JSONObject)
to render the item.- Parameters:
xFormRenderConfig
- Current form render configuration.parents
- Map between the ID of an element and the IDs of all its parents.valuesMap
- Map between the ID of an element and its values.forceDisabled
- Whether to force the element to be disabled (not editable).formRenderCtx
- Current form render context.clientModel
- Data about the current client.attributeCompatMode
- Whether the items should be rendered so that it conforms to the W3C HTML standard (such as no custom attributes other thatdata-
etc. This is for backwards compatibility, new elements should always render in an HTML-compliant manner).elementClassNameMode
- Whether to include a CSS class with the name of the element.- Returns:
- The rendered HTML of the item.
-
render
@Deprecated public com.hp.gagawa.java.elements.Div render(IXFormRenderConfig xFormRenderConfig, HashMap<String,com.hp.gagawa.java.FertileNode> parents, Map<String,List<String[]>> valuesMap, boolean forceDisabled, IXFormRenderContext formRenderCtx, boolean designerPreview, com.alibaba.fastjson.JSONObject clientModel, boolean attributeCompatMode, boolean elementClassNameMode)
Deprecated.Create theXItemRenderData.XItemRenderDataBuilder
andXItemRenderCtx.XItemRenderCtxBuilder
separately, then useXItemRenderer.render(XItemRenderData, XItemRenderCtx, IXFormRenderContext, JSONObject)
to render the item.- Parameters:
xFormRenderConfig
- Current form render configuration.parents
- Map between the ID of an element and the IDs of all its parents.valuesMap
- Map between the ID of an element and its values.forceDisabled
- Whether to force the element to be disabled (not editable).formRenderCtx
- Current form render context.designerPreview
- Whether the element should be rendered for the form designer preview (as opposed to the live form users can fill in).clientModel
- Data about the current client.attributeCompatMode
- Whether the items should be rendered so that it conforms to the W3C HTML standard (such as no custom attributes other thatdata-
etc. This is for backwards compatibility, new elements should always render in an HTML-compliant manner).elementClassNameMode
- Whether to include a CSS class with the name of the element.- Returns:
- The rendered HTML of the item.
-
-