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>

public static enum FilterTableModel.RefreshStrategy extends Enum<FilterTableModel.RefreshStrategy>
Specifies how the data in a table model is refreshed.
  • Enum Constant Details

    • CLEAR

      public static final FilterTableModel.RefreshStrategy 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

      public static final FilterTableModel.RefreshStrategy 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

      public static FilterTableModel.RefreshStrategy[] 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 FilterTableModel.RefreshStrategy 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