Module is.codion.swing.common.model
Interface FilterTableModel.Columns<R,C>
- Type Parameters:
R- the row typeC- the column identifier type
- Enclosing interface:
- FilterTableModel<R,
C>
public static interface FilterTableModel.Columns<R,C>
Specifies the columns for a table model
-
Method Summary
Modifier and TypeMethodDescriptionClass<?>columnClass(C identifier) default <T> Comparable<T>comparable(R row, C identifier) Returns a Comparable instance for the given row and column.default Comparator<?>comparator(C identifier) Returns the comparator to use when comparing the values of the given columndefault Cidentifier(int index) default StringReturns a String representation of the value for the given row and column, an empty String in case of null.Returns a value for the given row and identifier
-
Method Details
-
identifiers
- Returns:
- the column identifiers
-
columnClass
- Parameters:
identifier- the column identifier- Returns:
- the column class for the given column
-
value
Returns a value for the given row and identifier- Parameters:
row- the object representing a given rowidentifier- the column identifier- Returns:
- a value for the given row and column
-
identifier
- Parameters:
index- the identifier index- Returns:
- the identifier at the given index
-
string
Returns a String representation of the value for the given row and column, an empty String in case of null.- Parameters:
row- the rowidentifier- the column identifier- Returns:
- a String representation of the value for the given row and column, an empty String in case of null
-
comparable
Returns a Comparable instance for the given row and column.Null is returned if the underlying column value is not a
Comparableinstance.- Type Parameters:
T- the column value type- Parameters:
row- the object representing a given rowidentifier- the column identifier- Returns:
- a Comparable for the given row and column
-
comparator
Returns the comparator to use when comparing the values of the given column- Parameters:
identifier- the column identifier- Returns:
- a Comparator for the given column
-