Module is.codion.swing.common.ui
Interface FilteredTableCellRenderer.CellColorProvider<C>
- Type Parameters:
C
- the column identifier type
- Enclosing interface:
- FilteredTableCellRenderer
public static interface FilteredTableCellRenderer.CellColorProvider<C>
Provides cell specific color.
-
Method Summary
Modifier and TypeMethodDescriptiondefault Color
backgroundColor
(int row, C columnIdentifier, Object cellValue, boolean selected) default Color
foregroundColor
(int row, C columnIdentifier, Object cellValue, boolean selected)
-
Method Details
-
backgroundColor
- Parameters:
row
- the row numbercolumnIdentifier
- the column identifiercellValue
- the cell valueselected
- true if the cell is selected- Returns:
- a background Color for the given cell, null for none
-
foregroundColor
- Parameters:
row
- the row numbercolumnIdentifier
- the column identifiercellValue
- the cell valueselected
- true if the cell is selected- Returns:
- a foreground Color for the given cell, null for none
-