Enum Class ListGridRecordState

java.lang.Object
java.lang.Enum<ListGridRecordState>
com.jbstrap.ui.components.listgrid.enums.ListGridRecordState
All Implemented Interfaces:
Serializable, Comparable<ListGridRecordState>, Constable

public enum ListGridRecordState extends Enum<ListGridRecordState>
An enum containing all possible record states in the list grid.
Since:
4.0
Author:
JBStrap
  • Enum Constant Details

    • PERSISTED

      public static final ListGridRecordState PERSISTED
      Records that match those in the database are called “persisted”. The record in the memory is the same as the one in the database (including the number and the values of their attributes, respectively).
    • NEW

      public static final ListGridRecordState NEW
      Records that are only stored in the memory, but are not yet saved to the database are called “new” records.
    • MODIFIED

      public static final ListGridRecordState MODIFIED
      Records that are in the memory and in the database as well, but at least one of their attributes differ or the number of their attributes differ are called “modified”.
    • DELETED

      public static final ListGridRecordState DELETED
      Records that are in the database but are already deleted from the list grid are called “deleted”.
  • Method Details

    • values

      public static ListGridRecordState[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static ListGridRecordState valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • getStyleClass

      public String getStyleClass()
      Returns:
      The record state’s style class or null if there is no style class for the record