Package de.xima.fc.form.common.models
Class XForm
- java.lang.Object
 - 
- de.xima.fc.form.common.models.XForm
 
 
- 
- All Implemented Interfaces:
 IXForm,Serializable,Cloneable
public class XForm extends Object implements IXForm, Cloneable
Diese Klasse kapselt das Formular-Persist, ermöglicht es dieses mit Werten zu befüllen, zu validieren und entsprechend zu rendern.- Author:
 - XIMA MEDIA GmbH
 - See Also:
 - Serialized Form
 
 
- 
- 
Method Summary
 
 - 
 
- 
- 
Constructor Detail
- 
XForm
public XForm()
Creates an empty form with no form elements. 
- 
XForm
public XForm(com.alibaba.fastjson.JSONObject persist) throws com.alibaba.fastjson.JSONExceptionKonstruktor mit Formularwerten und Render-Konfiguration- Parameters:
 persist- das Persistance-Objekt des Formulars- Throws:
 com.alibaba.fastjson.JSONException
 
 - 
 
- 
Method Detail
- 
setXItems
public void setXItems(LinkedHashMap<String,XItem> xItems)
 
- 
getHiddenInputParameter
public Map<String,String> getHiddenInputParameter()
- Specified by:
 getHiddenInputParameterin interfaceIXForm
 
- 
setHiddenInputParameter
public void setHiddenInputParameter(Map<String,String> hiddenInputParameter)
- Specified by:
 setHiddenInputParameterin interfaceIXForm
 
- 
addHiddenInputParameter
public void addHiddenInputParameter(String key, String value)
- Specified by:
 addHiddenInputParameterin interfaceIXForm
 
- 
getServerValItems
public List<String> getServerValItems()
- Specified by:
 getServerValItemsin interfaceIXForm
 
- 
getReadOnlyCondItems
public List<String> getReadOnlyCondItems()
- Specified by:
 getReadOnlyCondItemsin interfaceIXForm
 
- 
getRenderCondItems
public List<String> getRenderCondItems()
- Specified by:
 getRenderCondItemsin interfaceIXForm
 
- 
setServerValItems
public void setServerValItems(List<String> serverValItems)
- Specified by:
 setServerValItemsin interfaceIXForm
 
- 
setReadOnlyCondItems
public void setReadOnlyCondItems(List<String> readOnlyCondItems)
- Specified by:
 setReadOnlyCondItemsin interfaceIXForm
 
- 
setRenderCondItems
public void setRenderCondItems(List<String> renderCondItems)
- Specified by:
 setRenderCondItemsin interfaceIXForm
 
- 
getParentItemMap
public LinkedHashMap<String,String> getParentItemMap()
- Specified by:
 getParentItemMapin interfaceIXForm
 
- 
setParentItemMap
public void setParentItemMap(LinkedHashMap<String,String> parentItemMap)
- Specified by:
 setParentItemMapin interfaceIXForm
 
- 
isShowLogo
public boolean isShowLogo()
- Specified by:
 isShowLogoin interfaceIXForm
 
- 
isResponsive
public boolean isResponsive()
- Specified by:
 isResponsivein interfaceIXForm
 
- 
isUseModernTheme
public boolean isUseModernTheme()
- Specified by:
 isUseModernThemein interfaceIXForm
 
- 
isPrevReplacement
public boolean isPrevReplacement()
- Specified by:
 isPrevReplacementin interfaceIXForm
 
- 
getVersion
public com.alibaba.fastjson.JSONObject getVersion()
- Specified by:
 getVersionin interfaceIXForm
 
- 
getVariables
public com.alibaba.fastjson.JSONArray getVariables()
Description copied from interface:IXFormRetrieves 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.
 
- Specified by:
 getVariablesin interfaceIXForm- Returns:
 - A list of all variables.
 
 
- 
getMaxSize
public String getMaxSize()
- Specified by:
 getMaxSizein interfaceIXForm
 
- 
getMinSize
public String getMinSize()
- Specified by:
 getMinSizein interfaceIXForm
 
- 
getResponseSize
public String getResponseSize()
- Specified by:
 getResponseSizein interfaceIXForm
 
- 
getMetaData
public String getMetaData()
- Specified by:
 getMetaDatain interfaceIXForm
 
- 
getUserCSS
public String getUserCSS()
- Specified by:
 getUserCSSin interfaceIXForm
 
- 
getErrorStyle
public String getErrorStyle()
- Specified by:
 getErrorStylein interfaceIXForm
 
- 
clone
public XForm clone() throws CloneNotSupportedException
- Specified by:
 clonein interfaceIXForm- Overrides:
 clonein classObject- Throws:
 CloneNotSupportedException
 
- 
getxItems
@Deprecated public Map<String,XItem> getxItems()
Deprecated.usegetXItems() 
- 
setxItems
@Deprecated public void setxItems(LinkedHashMap<String,XItem> xItems)
Deprecated. 
- 
getFormI18N
public com.alibaba.fastjson.JSONObject getFormI18N()
- Specified by:
 getFormI18Nin interfaceIXForm
 
- 
isAttributeW3CMode
public boolean isAttributeW3CMode()
- Specified by:
 isAttributeW3CModein interfaceIXForm- Returns:
 trueto use only attributes allowed by the W3C spec,falseto use the legacy mode.
 
- 
isElementClassNameMode
public boolean isElementClassNameMode()
- Specified by:
 isElementClassNameModein interfaceIXForm- Returns:
 truewhen the name of the element should be added as a CSS style class,falseotherwise.
 
- 
isValidateSubmitAction
public boolean isValidateSubmitAction()
- Specified by:
 isValidateSubmitActionin interfaceIXForm- Returns:
 truewhen submit buttons should be validated to ensure only existing buttons are pressed.
 
- 
isLegacyUseOptionTextForAutocomplete
public boolean isLegacyUseOptionTextForAutocomplete()
- Specified by:
 isLegacyUseOptionTextForAutocompletein interfaceIXForm- 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.
 
 
 - 
 
 -