Module is.codion.swing.common.ui
Interface FilterTableCellRenderer
- All Superinterfaces:
TableCellRenderer
Provides TableCellRenderer implementations for FilterTable via
builder(FilterTableModel, Object, Class)
.-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builds aFilterTableCellRenderer
static interface
Provides cell specific colors.static class
Settings for aFilterTableCellRenderer
-
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Boolean>
Specifies whether alternate row coloring is enabled by default.
Value type: Boolean
Default value: truestatic final PropertyValue<Integer>
The default horizontal alignment for boolean columns.
Value type: Integer
Default value:SwingConstants.CENTER
static final PropertyValue<Integer>
static final PropertyValue<Integer>
The default horizontal alignment for numerical columns.
Value type: Integer
Default value:SwingConstants.RIGHT
static final PropertyValue<Integer>
The default left padding for table cells.
Value type: Integer
Default value: 0static final PropertyValue<Integer>
The default right padding for table cells.
Value type: Integer
Default value: 5static final PropertyValue<Integer>
The default horizontal alignment for temporal columns.
Value type: Integer
Default value:SwingConstants.RIGHT
-
Method Summary
Modifier and TypeMethodDescriptionboolean
static <R,
C> FilterTableCellRenderer.Builder<R, C> builder
(FilterTableModel<R, C> tableModel, C columnIdentifier, Class<?> columnClass) Instantiates a newFilterTableCellRenderer.Builder
.boolean
int
Methods inherited from interface javax.swing.table.TableCellRenderer
getTableCellRendererComponent
-
Field Details
-
TABLE_CELL_LEFT_PADDING
The default left padding for table cells.
Value type: Integer
Default value: 0 -
TABLE_CELL_RIGHT_PADDING
The default right padding for table cells.
Value type: Integer
Default value: 5 -
NUMERICAL_HORIZONTAL_ALIGNMENT
The default horizontal alignment for numerical columns.
Value type: Integer
Default value:SwingConstants.RIGHT
-
TEMPORAL_HORIZONTAL_ALIGNMENT
The default horizontal alignment for temporal columns.
Value type: Integer
Default value:SwingConstants.RIGHT
-
BOOLEAN_HORIZONTAL_ALIGNMENT
The default horizontal alignment for boolean columns.
Value type: Integer
Default value:SwingConstants.CENTER
-
HORIZONTAL_ALIGNMENT
-
ALTERNATE_ROW_COLORING
Specifies whether alternate row coloring is enabled by default.
Value type: Boolean
Default value: true
-
-
Method Details
-
columnShading
boolean columnShading()- Returns:
- true if column shading is enabled
-
alternateRowColoring
boolean alternateRowColoring()- Returns:
- true if alternate row coloring is enabled
-
horizontalAlignment
int horizontalAlignment()- Returns:
- the horizontal alignment
-
builder
static <R,C> FilterTableCellRenderer.Builder<R,C> builder(FilterTableModel<R, C> tableModel, C columnIdentifier, Class<?> columnClass) Instantiates a newFilterTableCellRenderer.Builder
.- Type Parameters:
R
- the table row typeC
- the column identifier type- Parameters:
tableModel
- the table model providing the data to rendercolumnIdentifier
- the column identifiercolumnClass
- the column class- Returns:
- a new
FilterTableCellRenderer.Builder
instance
-