Module is.codion.swing.common.model
Enum Class FilterTableModel.RefreshStrategy
java.lang.Object
java.lang.Enum<FilterTableModel.RefreshStrategy>
is.codion.swing.common.model.component.table.FilterTableModel.RefreshStrategy
- All Implemented Interfaces:
Serializable
,Comparable<FilterTableModel.RefreshStrategy>
,Constable
- Enclosing interface:
- FilterTableModel<R,
C>
Specifies how the data in a table model is refreshed.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.static FilterTableModel.RefreshStrategy[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLEAR
Clear the table model before populating it with the refreshed data. This causes an empty selection event to be triggered, since the selection is cleared when the table model is cleared.- See Also:
-
MERGE
Merges the refreshed data with the data already in the table model, by removing rows that are missing, replacing existing rows and adding new ones. This strategy does not cause an empty selection event to be triggered but at a considerable performance cost. Note that sorting is not performed using this strategy, since that would cause an empty selection event as well.
-
-
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
-