Module is.codion.swing.common.model
Interface FilterTableSort<R,C>
- Type Parameters:
R- the type representing a row in the table modelC- the type representing the column identifiers in the table model
- All Superinterfaces:
Comparator<R>,FilterModel.Sort<R>
Handles the column sorting states for a
FilterTableModel.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceProvides the current column sort orderstatic interfaceSpecifies a sorting state for a column.static interfaceManages theSortOrderfor a given column -
Method Summary
Modifier and TypeMethodDescriptionvoidClears the sorting state and sorts the given columnsSortOrder.ASCENDINGvoidclear()Clears the sorting states from this sortercolumns()voiddescending(C... identifiers) Clears the sorting state and sorts the given columnsSortOrder.DESCENDINGMethods inherited from interface java.util.Comparator
compare, equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLongMethods inherited from interface is.codion.common.model.filter.FilterModel.Sort
observer, sorted
-
Method Details
-
ascending
Clears the sorting state and sorts the given columnsSortOrder.ASCENDING- Parameters:
identifiers- the column identifiers
-
descending
Clears the sorting state and sorts the given columnsSortOrder.DESCENDING- Parameters:
identifiers- the column identifiers
-
order
- Parameters:
identifier- the column identifier- Returns:
- the
FilterTableSort.Orderfor the given column
-
columns
FilterTableSort.ColumnSort<C> columns()- Returns:
- the
FilterTableSort.ColumnSortproviding the current sorting state
-
clear
void clear()Clears the sorting states from this sorter
-