Class FormModel
java.lang.Object
de.xima.fc.gui.designer.form.model.FormModel
- All Implemented Interfaces:
 Serializable
POJO model holding data related to the current form edited in the designer.
- Since:
 - 7.0.0
 - Author:
 - XIMA MEDIA GmbH
 - See Also:
 
- 
Constructor Summary
ConstructorsConstructorDescriptionFormModel(IXFormRenderConfig formRenderConfig, List<CssInclude> cssIncludes, String clientI18nScript, String designerConfig, String metaDataScript, String formI18nScript, String xmFormVRulesScript, String xmFormPluginVRulesScript) Creates a new POJO model with the given data. - 
Method Summary
Modifier and TypeMethodDescriptionstatic FormModelempty()voidsetDesignerConfig(String designerConfig)  
- 
Constructor Details
- 
FormModel
public FormModel(IXFormRenderConfig formRenderConfig, List<CssInclude> cssIncludes, String clientI18nScript, String designerConfig, String metaDataScript, String formI18nScript, String xmFormVRulesScript, String xmFormPluginVRulesScript) Creates a new POJO model with the given data.- Parameters:
 formRenderConfig- The value returned bygetFormRenderConfig()cssIncludes- The value returned bygetCssIncludes()clientI18nScript- The value returned bygetClientI18nScript()designerConfig- The value returned bygetDesignerConfig()metaDataScript- The value returned bygetMetaDataScript()formI18nScript- The value returned bygetFormI18nScript()xmFormPluginVRulesScript- The value returned bygetXmFormPluginVRulesScript()xmFormVRulesScript- The value returned bygetXmFormVRulesScript()
 
 - 
 - 
Method Details
- 
getClientI18nScript
- Returns:
 - The script for making the i18n keys from the 
designer-client.multipropertiesfile available to the client. Adds the i18n key value pairs towindow.Designer.Lang[code]. 
 - 
getCssIncludes
- Returns:
 - A list of additional CSS files to be included in the designer, such as CSS files from form and client files.
 
 - 
getDesignerConfig
- Returns:
 - The JSON object with the client side configuration for the designer.
 
 - 
getFormI18nScript
- Returns:
 - The script for making the i18n keys from the i18n client templates available to the client. Creates a
     variable 
XM_FORM_I18Nin the global window scope. 
 - 
getFormRenderConfig
- Returns:
 - The form render config for the form that is being edited in the designer.
 
 - 
getMetaDataScript
- Returns:
 - The script for creating the 
XFC_METADATAobject in the global window scope. 
 - 
getXmFormPluginVRulesScript
- Returns:
 - The script for creating the 
XM_FORM_PLUGIN_VRULESobject in the global window scope. 
 - 
getXmFormVRulesScript
- Returns:
 - The script for creating the 
XM_FORM_VRULESobject in the global window scope. 
 - 
setDesignerConfig
- Parameters:
 designerConfig- The JSON object with the client side configuration for the designer.
 - 
empty
- Returns:
 - A new empty form model with no data.
 
 
 -