Class FormBackupVersion

java.lang.Object
de.xima.fc.gui.designer.form.model.FormBackupVersion
All Implemented Interfaces:
Serializable

public class FormBackupVersion extends Object implements Serializable
Similar to a SelectItem, but immutable and with a type-safe getValue() method for a form backup version.
Since:
7.0.0
Author:
XIMA MEDIA GmbH
See Also:
  • Constructor Details

    • FormBackupVersion

      public FormBackupVersion(String label, long id)
      Parameters:
      label - Label of the backup version.
      id - ID of the FormVersionBackup.
  • Method Details

    • getLabel

      public String getLabel()
      Returns:
      The label for this backup version, i.e. the formatted date when it was created.
    • getValue

      public String getValue()
      Returns:
      The ID of this backup version, i.e. its database ID.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDefault

      public static FormBackupVersion getDefault()
      Returns:
      The backup version instance for the default (current) version.