Module is.codion.swing.common.ui
Interface FilterTableCellRenderer.UISettings
- All Known Implementing Classes:
FilterTableCellRenderer.DefaultUISettings
- Enclosing interface:
- FilterTableCellRenderer<T>
public static interface FilterTableCellRenderer.UISettings
Represents the UI cell colors according to the look and feel.
-
Method Summary
Modifier and TypeMethodDescriptionThe table alternate row color associated with theTable.alternateRowColor
UI keyThe table background color associated with theTable.background
UI keybackground
(boolean filterEnabled, boolean alternateRow, Color cellBackgroundColor) filteredBackground
(boolean alternateRow, Color cellBackgroundColor) The table foreground color associated with theTable.foreground
UI keyThe table selection background color associated with theTable.selectionBackground
UI keyvoid
update
(int leftPadding, int rightPadding) Updates the colors and border according to the current Look and Feel.
-
Method Details
-
foreground
Color foreground()The table foreground color associated with theTable.foreground
UI key- Returns:
- the foreground color
- See Also:
-
background
Color background()The table background color associated with theTable.background
UI key- Returns:
- the background color
- See Also:
-
alternateRowColor
Color alternateRowColor()The table alternate row color associated with theTable.alternateRowColor
UI key- Returns:
- the alternate row color, if any
- See Also:
-
selectionBackground
Color selectionBackground()The table selection background color associated with theTable.selectionBackground
UI key- Returns:
- the selection background color
- See Also:
-
filteredBackground
Color filteredBackground()- Returns:
- the background color to use for columns with a filter enabled
- See Also:
-
alternateBackground
Color alternateBackground()- Returns:
- the alternate background color
-
alternateFilteredBackground
Color alternateFilteredBackground()- Returns:
- the alternate background color to use for columns with a filter enabled
-
defaultCellBorder
Border defaultCellBorder()- Returns:
- the default cell border to use
-
focusedCellBorder
Border focusedCellBorder()- Returns:
- the cell border to use for the focused cell
-
background
- Parameters:
filterEnabled
- true if a filter is enabledalternateRow
- true if this is an alternate row numbercellBackgroundColor
- the cell specific background color, if any- Returns:
- the background color
-
filteredBackground
- Parameters:
alternateRow
- true if this is an alternate row numbercellBackgroundColor
- the cell specific background color, if any- Returns:
- the filtered cell background
-
alternateSelectionBackground
Color alternateSelectionBackground()- Returns:
- the alternate selection background color
-
update
void update(int leftPadding, int rightPadding) Updates the colors and border according to the current Look and Feel.- Parameters:
leftPadding
- the left padding to use for the borderrightPadding
- the right padding to use for the border
-