Enum Class EntityTableModel.OnInsert

java.lang.Object
java.lang.Enum<EntityTableModel.OnInsert>
is.codion.framework.model.EntityTableModel.OnInsert
All Implemented Interfaces:
Serializable, Comparable<EntityTableModel.OnInsert>, Constable
Enclosing interface:
EntityTableModel<E extends EntityEditModel>

public static enum EntityTableModel.OnInsert extends Enum<EntityTableModel.OnInsert>
Defines the actions a table model can perform when entities are inserted via the associated edit model
  • Enum Constant Details

    • DO_NOTHING

      public static final EntityTableModel.OnInsert DO_NOTHING
      This table model does nothing when entities are inserted via the associated edit model
    • PREPEND

      public static final EntityTableModel.OnInsert PREPEND
      The entities inserted via the associated edit model are prepended to the model rows, the rows are then sorted if sorting is enabled.
    • APPEND

      public static final EntityTableModel.OnInsert APPEND
      The entities inserted via the associated edit model are appended to the model rows, the rows are then sorted if sorting is enabled.
  • Method Details

    • values

      public static EntityTableModel.OnInsert[] 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 EntityTableModel.OnInsert 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