Class FormBackupModel
- java.lang.Object
-
- de.xima.fc.gui.designer.form.model.FormBackupModel
-
- All Implemented Interfaces:
Serializable
public final class FormBackupModel extends Object implements Serializable
POJO model for the form version backup available in the form designer.- Since:
- 7.0.0
- Author:
- XIMA MEDIA GmbH
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description FormBackupModel(List<FormBackupVersion> backupVersions, FormBackupVersion selectedBackupVersion)
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 FormBackupModel
empty()
List<FormBackupVersion>
getBackupVersions()
FormBackupVersion
getSelectedBackupVersion()
void
setBackupVersions(Iterable<FormBackupVersion> backupVersions)
Replaces the backup versions with the given ones.void
setSelectedBackupVersion(FormBackupVersion selectedBackupVersion)
-
-
-
Constructor Detail
-
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 Detail
-
getBackupVersions
public List<FormBackupVersion> getBackupVersions()
- Returns:
- An ordered list of all available backup versions.
-
getSelectedBackupVersion
public FormBackupVersion getSelectedBackupVersion()
- Returns:
- The currently selected backup version.
-
setBackupVersions
public void setBackupVersions(Iterable<FormBackupVersion> backupVersions)
Replaces the backup versions with the given ones.- Parameters:
backupVersions
- An ordered list of all backup versions.
-
setSelectedBackupVersion
public void setSelectedBackupVersion(FormBackupVersion selectedBackupVersion)
- Parameters:
selectedBackupVersion
- The currently selected backup version.
-
empty
public static FormBackupModel empty()
-
-