Module is.codion.swing.common.ui
Interface FilteredTableCellRenderer.Builder<R,C>
- All Known Implementing Classes:
DefaultFilteredTableCellRendererBuilder
- Enclosing interface:
- FilteredTableCellRenderer
public static interface FilteredTableCellRenderer.Builder<R,C>
Builds a
FilteredTableCellRenderer
-
Method Summary
Modifier and TypeMethodDescriptionalternateRowColoring
(boolean alternateRowColoring) build()
cellColorProvider
(FilteredTableCellRenderer.CellColorProvider<C> cellColorProvider) columnShadingEnabled
(boolean columnShadingEnabled) displayValueProvider
(Function<Object, Object> displayValueProvider) horizontalAlignment
(int horizontalAlignment) leftPadding
(int leftPadding) rightPadding
(int rightPadding) toolTipData
(boolean toolTipData)
-
Method Details
-
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
-
columnShadingEnabled
- Parameters:
columnShadingEnabled
- 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
-
displayValueProvider
FilteredTableCellRenderer.Builder<R,C> displayValueProvider(Function<Object, Object> displayValueProvider) - Parameters:
displayValueProvider
- provides the value to display in the cell, formatted or otherwise- Returns:
- this builder instance
-
cellColorProvider
FilteredTableCellRenderer.Builder<R,C> cellColorProvider(FilteredTableCellRenderer.CellColorProvider<C> cellColorProvider) - Parameters:
cellColorProvider
- provides cell/row background and foreground color- Returns:
- this builder instance
-
build
FilteredTableCellRenderer build()- Returns:
- a new
FilteredTableCellRenderer
instance based on this builder
-