Package de.xima.fc.form.common.models
Interface IXForm
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
XForm
- Author:
- XIMA MEDIA GmbH
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addHiddenInputParameter
(String key, String value) clone()
com.alibaba.fastjson.JSONObject
com.alibaba.fastjson.JSONArray
Retrieves the list of all variables (hidden input fields) that are present in the form.com.alibaba.fastjson.JSONObject
Deprecated.boolean
boolean
boolean
boolean
boolean
boolean
boolean
boolean
void
setHiddenInputParameter
(Map<String, String> hiddenInputParameter) void
setParentItemMap
(LinkedHashMap<String, String> parentItemMap) void
setReadOnlyCondItems
(List<String> readOnlyCondItems) void
setRenderCondItems
(List<String> renderCondItems) void
setServerValItems
(List<String> serverValItems) void
setxItems
(LinkedHashMap<String, XItem> xItems) Deprecated.void
setXItems
(LinkedHashMap<String, XItem> xItems)
-
Method Details
-
getXItems
- Returns:
- Map between the
ID
of each form element to the form element itself.
-
getHiddenInputParameter
-
setHiddenInputParameter
-
addHiddenInputParameter
-
setXItems
-
getServerValItems
-
getReadOnlyCondItems
-
getRenderCondItems
-
setServerValItems
-
setReadOnlyCondItems
-
setRenderCondItems
-
getParentItemMap
LinkedHashMap<String,String> getParentItemMap() -
setParentItemMap
-
clone
- Throws:
CloneNotSupportedException
-
isShowLogo
boolean isShowLogo() -
isResponsive
boolean isResponsive() -
isUseModernTheme
boolean isUseModernTheme() -
isPrevReplacement
boolean isPrevReplacement() -
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
String getMaxSize() -
getMinSize
String getMinSize() -
getResponseSize
String getResponseSize() -
getMetaData
String getMetaData() -
getUserCSS
String getUserCSS() -
getUserJS
String getUserJS() -
getErrorStyle
String getErrorStyle() -
getFormI18N
com.alibaba.fastjson.JSONObject getFormI18N() -
setxItems
Deprecated. -
getxItems
Deprecated.usegetXItems()
- Returns:
- Map between the
ID
of each form element to the form element itself.
-
isAttributeW3CMode
boolean isAttributeW3CMode()- Returns:
true
to use only attributes allowed by the W3C spec,false
to use the legacy mode.
-
isElementClassNameMode
boolean isElementClassNameMode()- Returns:
true
when the name of the element should be added as a CSS style class,false
otherwise.
-
isValidateSubmitAction
boolean isValidateSubmitAction()- Returns:
true
when submit buttons should be validated to ensure only existing buttons are pressed.
-
isLegacyUseOptionTextForAutocomplete
boolean isLegacyUseOptionTextForAutocomplete()- 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.
-
getXItems()