Class FormBackupModel
java.lang.Object
de.xima.fc.gui.designer.form.model.FormBackupModel
- All Implemented Interfaces:
Serializable
POJO model for the form version backup available in the form designer.
- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionFormBackupModel
(List<FormBackupVersion> backupVersions, FormBackupVersion selectedBackupVersion) Creates a new POJO model with the given data. -
Method Summary
Modifier and TypeMethodDescriptionstatic FormBackupModel
empty()
void
setBackupVersions
(Iterable<FormBackupVersion> backupVersions) Replaces the backup versions with the given ones.void
setSelectedBackupVersion
(FormBackupVersion selectedBackupVersion)
-
Constructor Details
-
FormBackupModel
public FormBackupModel(List<FormBackupVersion> backupVersions, FormBackupVersion selectedBackupVersion) Creates a new POJO model with the given data.- Parameters:
backupVersions
- Value returned bygetBackupVersions()
selectedBackupVersion
- Value returned bygetSelectedBackupVersion()
-
-
Method Details
-
getBackupVersions
- Returns:
- An ordered list of all available backup versions.
-
getSelectedBackupVersion
- Returns:
- The currently selected backup version.
-
setBackupVersions
Replaces the backup versions with the given ones.- Parameters:
backupVersions
- An ordered list of all backup versions.
-
setSelectedBackupVersion
- Parameters:
selectedBackupVersion
- The currently selected backup version.
-
empty
-