Interface IXForm
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
XForm
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddHiddenInputParameter(String key, String value) clone()default StringDeprecated.com.alibaba.fastjson.JSONObjectdefault StringDeprecated.UsegetFormProperties().default StringDeprecated.UsegetFormProperties().Deprecated.UsegetParentIdMap()default StringDeprecated.UsegetFormProperties().com.alibaba.fastjson.JSONArrayRetrieves the list of all variables (hidden input fields) that are present in the form.com.alibaba.fastjson.JSONObjectDeprecated.usegetXItems()default booleanDeprecated.UsegetFormProperties().default booleanDeprecated.UsegetFormProperties().default booleanDeprecated.UsegetFormProperties().default booleanDeprecated.There is no separate option anymore for the modern theme.default booleanbooleandefault booleanDeprecated.There is no separate option anymore for the modern theme.default booleanDeprecated.UsegetFormProperties().voidsetHiddenInputParameter(Map<String, String> hiddenInputParameter) voidsetParentIdMap(Map<String, String> parentItemMap) voidsetParentItemMap(LinkedHashMap<String, String> parentItemMap) Deprecated.voidsetReadOnlyCondItems(List<String> readOnlyCondItems) voidsetRenderCondItems(List<String> renderCondItems) voidsetServerValItems(List<String> serverValItems) voidsetxItems(LinkedHashMap<String, XItem> xItems) Deprecated.voidsetXItems(LinkedHashMap<String, XItem> xItems)
-
Method Details
-
getXItems
-
getHiddenInputParameter
-
setHiddenInputParameter
-
addHiddenInputParameter
-
setXItems
-
getServerValItems
-
getReadOnlyCondItems
-
getRenderCondItems
-
setServerValItems
-
setReadOnlyCondItems
-
setRenderCondItems
-
getParentItemMap
Deprecated.UsegetParentIdMap()- Returns:
- Map from the ID of a form item to the ID of its parent (if any).
-
getParentIdMap
-
setParentIdMap
-
setParentItemMap
Deprecated.- Parameters:
parentItemMap- Map from the ID of a form item to the ID of its parent (if any).
-
clone
- Throws:
CloneNotSupportedException
-
isShowLogo
boolean isShowLogo() -
isResponsive
default boolean isResponsive() -
isUseModernTheme
Deprecated.There is no separate option anymore for the modern theme. UsegetFormProperties()andXFormProperties.getFormTheme()(which may be the system theme "modern").- Returns:
trueto use the modern CSS theme,falseto not use it.
-
isPrevReplacement
default boolean isPrevReplacement()Deprecated.There is no separate option anymore for the modern theme. UsegetFormProperties()andXFormProperties.getFormTheme()(which may be the system theme "modern").- Returns:
- Whether to replace placeholders with their values in the preview.
-
getVersion
com.alibaba.fastjson.JSONObject getVersion() -
getVariables
com.alibaba.fastjson.JSONArray getVariables()Retrieves the list of all variables (hidden input fields) that are present in the form. Each variable is a JSON object with the following properties:- aliasname - Alias of the variable, which can be used e.g. in placeholders instead of the name and allows all characters.
- name - The name of the variable, which is also the name of the hidden input field. It only allows certain characters (digits, letters, underscore)
- serveronly - Whether the variable exists only on the server.
- value - The default value of the variable.
- Returns:
- A list of all variables.
-
getMaxSize
Deprecated.UsegetFormProperties().- Returns:
- Maximum width of the form, as a CSS unit with "px".
-
getMinSize
Deprecated.UsegetFormProperties().- Returns:
- Minimum width of the form, as a CSS unit with "px".
-
getResponseSize
Deprecated.UsegetFormProperties().- Returns:
- Responsive width of the form, as a CSS unit with "px".
-
getMetaData
String getMetaData() -
getUserCSS
String getUserCSS() -
getUserJS
String getUserJS() -
getErrorStyle
Deprecated.UsegetFormProperties().- Returns:
- Style class to apply to the form, which controls how validation errors are displayed.
-
getFormI18N
com.alibaba.fastjson.JSONObject getFormI18N() -
setxItems
Deprecated. -
getxItems
Deprecated.usegetXItems()- Returns:
- Map between the
IDof each form element to the form element itself.
-
isAttributeW3CMode
Deprecated.UsegetFormProperties().- Returns:
trueto use only attributes allowed by the W3C spec,falseto use the legacy mode.
-
isElementClassNameMode
Deprecated.UsegetFormProperties().- Returns:
truewhen the name of the element should be added as a CSS style class,falseotherwise.
-
isValidateSubmitAction
Deprecated.UsegetFormProperties().- Returns:
truewhen submit buttons should be validated to ensure only existing buttons are pressed.
-
isLegacyUseOptionTextForAutocomplete
Deprecated.UsegetFormProperties().- Returns:
- In versions [7.0.0, 7.4.0) of formcycle there was a bug for autocomplete select fields, where the option text instead of the option was used instead of its value when evaluating conditions. This flag enables this legacy behavior.
-
getFormProperties
XFormProperties getFormProperties()
-
getFormProperties().