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
    • ADD_TOP

      public static final EntityTableModel.OnInsert ADD_TOP
      The entities inserted via the associated edit model are added as the topmost rows in the model
    • ADD_BOTTOM

      public static final EntityTableModel.OnInsert ADD_BOTTOM
      The entities inserted via the associated edit model are added as the bottommost rows in the model
    • ADD_TOP_SORTED

      public static final EntityTableModel.OnInsert ADD_TOP_SORTED
      The entities inserted via the associated edit model are added as the topmost rows in the model, if sorting is enabled then sorting is performed
    • ADD_BOTTOM_SORTED

      public static final EntityTableModel.OnInsert ADD_BOTTOM_SORTED
      The entities inserted via the associated edit model are added as the bottommost rows in the model, if sorting is enabled then sorting is performed
  • 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