Module is.codion.swing.common.ui
Interface FilterTableCellRenderer.Builder<R,C>
- All Known Implementing Classes:
DefaultFilterTableCellRendererBuilder
- Enclosing interface:
- FilterTableCellRenderer
public static interface FilterTableCellRenderer.Builder<R,C>
Builds a
FilterTableCellRenderer-
Method Summary
Modifier and TypeMethodDescriptionalternateRowColoring(boolean alternateRowColoring) build()cellColors(FilterTableCellRenderer.CellColors<C> cellColors) columnShading(boolean columnShading) 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
-
columnShading
- 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
-
cellColors
- Parameters:
cellColors- provides cell/row background and foreground color- Returns:
- this builder instance
-
build
FilterTableCellRenderer build()- Returns:
- a new
FilterTableCellRendererinstance based on this builder
-