Class FormDesignerModel
- java.lang.Object
-
- de.xima.fc.gui.designer.form.model.FormDesignerModel
-
- All Implemented Interfaces:
Serializable
public final class FormDesignerModel extends Object implements Serializable
POJO model holding the data required for the form designer.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormDesignerModel(BaseDesignerModel baseModel, FormModel formModel, FormBackupModel backupModel, FormDesignerLanguageModel languageModel, Set<IPluginFormElementCatalogue> catalogs, WebFormPersistFile initialPersist)
Creates a new POJO model with the given data.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static FormDesignerModel
empty()
FormBackupModel
getBackupModel()
BaseDesignerModel
getBaseModel()
Set<IPluginFormElementCatalogue>
getCatalogs()
FormModel
getFormModel()
WebFormPersistFile
getInitialPersist()
String
getInitialPersistJson()
FormDesignerLanguageModel
getLanguageModel()
-
-
-
Constructor Detail
-
FormDesignerModel
public FormDesignerModel(BaseDesignerModel baseModel, FormModel formModel, FormBackupModel backupModel, FormDesignerLanguageModel languageModel, Set<IPluginFormElementCatalogue> catalogs, WebFormPersistFile initialPersist)
Creates a new POJO model with the given data.- Parameters:
baseModel
- The value returned bygetBaseModel()
.backupModel
- The value returned bygetBackupModel()
.catalogs
- The value returned bygetCatalogs()
.languageModel
- The value returned by {l@link #getLanguageModel()}.formModel
- The value returned bygetFormModel()
.initialPersist
- The value returned bygetInitialPersist()
.
-
-
Method Detail
-
getBackupModel
public FormBackupModel getBackupModel()
- Returns:
- The backup model with the list of available backup versions and the currently selected version.
-
getBaseModel
public BaseDesignerModel getBaseModel()
- Returns:
- The base model with the current project, form version, and workflow version being edited.
-
getCatalogs
public Set<IPluginFormElementCatalogue> getCatalogs()
- Returns:
- A list of available catalogs provided by plugins.
-
getFormModel
public FormModel getFormModel()
- Returns:
- The form model with the data related to the current form being edited.
-
getInitialPersist
public WebFormPersistFile getInitialPersist()
- Returns:
- The initial persist to be loaded on startup.
-
getInitialPersistJson
public String getInitialPersistJson()
- Returns:
- The initial persist to be loaded on startup, as a JSON string.
-
getLanguageModel
public FormDesignerLanguageModel getLanguageModel()
- Returns:
- Language model with the selected language and the available languages.
-
empty
public static FormDesignerModel empty()
- Returns:
- A new empty form designer model without any data.
-
-