Module is.codion.swing.common.ui
Interface FilterTableCellRenderer.Builder<R,C,T>
- Type Parameters:
R
- the row typeC
- the column identifier typeT
- the cell value type
- Enclosing interface:
- FilterTableCellRenderer<T>
public static interface FilterTableCellRenderer.Builder<R,C,T>
Builds a
FilterTableCellRenderer
-
Method Summary
Modifier and TypeMethodDescriptionalternateRowColoring
(boolean alternateRowColoring) background
(FilterTableCellRenderer.ColorProvider<R, C, T> background) build()
filterIndicator
(boolean columnShading) foreground
(FilterTableCellRenderer.ColorProvider<R, C, T> foreground) horizontalAlignment
(int horizontalAlignment) leftPadding
(int leftPadding) rightPadding
(int rightPadding) toolTipData
(boolean toolTipData) uiSettings
(FilterTableCellRenderer.UISettings uiSettings)
-
Method Details
-
uiSettings
- Parameters:
uiSettings
- the ui settings- Returns:
- this builder instance
-
horizontalAlignment
- Parameters:
horizontalAlignment
- the horizontal alignment- Returns:
- this builder instance
-
toolTipData
- Parameters:
toolTipData
- true if the cell should display its contents in a tool tip- Returns:
- this builder instance
-
filterIndicator
- Parameters:
columnShading
- true if column specific shading should be enabled, for example to indicated that the column is involved in a search/filter- Returns:
- this builder instance
-
alternateRowColoring
- Parameters:
alternateRowColoring
- true if alternate row coloring should be enabled- Returns:
- this builder instance
-
leftPadding
- Parameters:
leftPadding
- the left cell padding- Returns:
- this builder instance
-
rightPadding
- Parameters:
rightPadding
- the right cell padding- Returns:
- this builder instance
-
string
- Parameters:
string
- provides a String to display for a given cell value, formatted or otherwise- Returns:
- this builder instance
-
background
FilterTableCellRenderer.Builder<R,C, backgroundT> (FilterTableCellRenderer.ColorProvider<R, C, T> background) - Parameters:
background
- provides the background color- Returns:
- this builder instance
-
foreground
FilterTableCellRenderer.Builder<R,C, foregroundT> (FilterTableCellRenderer.ColorProvider<R, C, T> foreground) - Parameters:
foreground
- provides the foreground color- Returns:
- this builder instance
-
build
FilterTableCellRenderer<T> build()- Returns:
- a new
FilterTableCellRenderer
instance based on this builder
-