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 String
Returns a String representation of the value for the given row and columnIdentifier, an empty String in case of null.Returns 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, an empty String in case of null.- Parameters:
row
- the rowcolumnIdentifier
- 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 columnIdentifier. The default implementation returns the value as is in case it's aComparable
instance, otherwise null 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
-