Interface FilterTableModel<R,C>

Type Parameters:
R - the type representing the rows in this table model
C - the type used to identify columns in this table model, Integer for indexed identification for example
All Superinterfaces:
FilterModel<R>, TableModel
All Known Implementing Classes:
SwingEntityTableModel

public interface FilterTableModel<R,C> extends TableModel, FilterModel<R>
Specifies a table model supporting selection as well as filtering. A FilterTableModel can not contain null items.
See Also:
  • Method Details

    • columns

      Returns:
      the table columns
    • getColumnClass

      Class<?> getColumnClass(C identifier)
      Returns the class of the column with the given identifier
      Parameters:
      identifier - the column identifier
      Returns:
      the Class representing the given column
    • values

      Provides access to column values
      Returns:
      the FilterTableModel.ColumnValues
    • selection

      FilterListSelection<R> selection()
      Specified by:
      selection in interface FilterModel<R>
      Returns:
      the FilterListSelection instance used by this table model
    • filters

      Returns:
      the TableConditionModel used to filter this table model
    • sort

      Specified by:
      sort in interface FilterModel<R>
      Returns:
      the sort
    • fireTableDataChanged

      void fireTableDataChanged()
      Notifies all listeners that all cell values in the table's rows may have changed. The number of rows may also have changed and the JTable should redraw the table from scratch. The structure of the table (as in the order of the columns) is assumed to be the same.
    • fireTableRowsUpdated

      void fireTableRowsUpdated(int fromIndex, int toIndex)
      Notifies all listeners that the given rows have changed
      Parameters:
      fromIndex - the from index
      toIndex - the to index
    • builder

      static <R, C> FilterTableModel.Builder<R,C> builder(FilterTableModel.TableColumns<R,C> columns)
      Instantiates a new table model builder.
      Type Parameters:
      R - the row type
      C - the column identifier type
      Parameters:
      columns - the columns
      Returns:
      a new builder instance
      Throws:
      NullPointerException - in case columnValues is null