Module is.codion.swing.common.ui
Interface FilteredTableCellRenderer
- All Superinterfaces:
TableCellRenderer
Provides TableCellRenderer implementations for FilteredTable via
builder(FilteredTableModel, Object, Class)
.-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builds aFilteredTableCellRenderer
static interface
Provides cell specific color.static class
Settings for aFilteredTableCellRenderer
-
Field Summary
FieldsModifier 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> FilteredTableCellRenderer.Builder<R, C> builder
(FilteredTableModel<R, C> tableModel, C columnIdentifier, Class<?> columnClass) Instantiates a newFilteredTableCellRenderer.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
-
columnShadingEnabled
boolean columnShadingEnabled()- 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> FilteredTableCellRenderer.Builder<R,C> builder(FilteredTableModel<R, C> tableModel, C columnIdentifier, Class<?> columnClass) Instantiates a newFilteredTableCellRenderer.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
FilteredTableCellRenderer.Builder
instance
-