Module is.codion.framework.model
Package is.codion.framework.model
Enum Class EntityTableModel.OnInsert
- All Implemented Interfaces:
Serializable
,Comparable<EntityTableModel.OnInsert>
,Constable
- Enclosing interface:
- EntityTableModel<E extends EntityEditModel>
Defines the actions a table model can perform when entities are inserted via the associated edit model
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe entities inserted via the associated edit model are added as the bottommost rows in the modelThe entities inserted via the associated edit model are added as the bottommost rows in the model, if sorting is enabled then sorting is performedThe entities inserted via the associated edit model are added as the topmost rows in the modelThe entities inserted via the associated edit model are added as the topmost rows in the model, if sorting is enabled then sorting is performedThis table model does nothing when entities are inserted via the associated edit model -
Method Summary
Modifier and TypeMethodDescriptionstatic EntityTableModel.OnInsert
Returns the enum constant of this class with the specified name.static EntityTableModel.OnInsert[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
DO_NOTHING
This table model does nothing when entities are inserted via the associated edit model -
ADD_TOP
The entities inserted via the associated edit model are added as the topmost rows in the model -
ADD_BOTTOM
The entities inserted via the associated edit model are added as the bottommost rows in the model -
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
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
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
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 nameNullPointerException
- if the argument is null
-