Module is.codion.swing.common.model
Interface FilteredTableModel.ColumnValueProvider<R,C>
- Type Parameters:
R- the row typeC- the column identifier type
- Enclosing interface:
- FilteredTableModel<R,
C>
public static interface FilteredTableModel.ColumnValueProvider<R,C>
Provides the column value for a row and column
-
Method Summary
Modifier and TypeMethodDescriptiondefault <T> Comparable<T>comparable(R row, C columnIdentifier) Returns a Comparable instance for the given row and columnIdentifier.default StringReturns a String representation of the value for the given row and columnIdentifierReturns a value for the given row and columnIdentifier
-
Method Details
-
value
Returns a value for the given row and columnIdentifier- Parameters:
row- the object representing a given rowcolumnIdentifier- the column identifier- Returns:
- a value for the given row and column
-
string
Returns a String representation of the value for the given row and columnIdentifier- Parameters:
row- the rowcolumnIdentifier- the column identifier- Returns:
- a String representation of the value for the given row and column
-
comparable
Returns a Comparable instance for the given row and columnIdentifier. The default implementation returns the value as is in case it's aComparableinstance, otherwise its String representation is returned.- Type Parameters:
T- the column value type- Parameters:
row- the object representing a given rowcolumnIdentifier- the column identifier- Returns:
- a Comparable for the given row and column
-