Module is.codion.swing.common.ui
Interface FilterTableCellRenderer<T>
- Type Parameters:
T
- the column type
- All Superinterfaces:
TableCellRenderer
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Builds aFilterTableCellRenderer
static interface
Provides a color to override the default color for table cells.static class
A defaultFilterTableCellRenderer.UISettings
implementation.static interface
A factory forFilterTableCellRenderer
instances.static interface
Represents the UI cell colors according to the look and feel. -
Field Summary
Modifier and TypeFieldDescriptionstatic final PropertyValue<Boolean>
Specifies whether alternate row coloring is enabled by default.static final PropertyValue<Integer>
The default horizontal alignment for boolean columns.static final PropertyValue<Integer>
The default horizontal alignment.static final PropertyValue<Integer>
The default horizontal alignment for numerical columns.static final PropertyValue<Integer>
The default left padding for table cells.static final PropertyValue<Integer>
The default right padding for table cells.static final PropertyValue<Integer>
The default horizontal alignment for temporal columns. -
Method Summary
Modifier and TypeMethodDescriptionboolean
static <R,
C, T> FilterTableCellRenderer.Builder<R, C, T> Instantiates a newFilterTableCellRenderer.Builder
.static <R,
C> FilterTableCellRenderer.Factory<R, C> factory()
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
The default horizontal alignment.- Value type: Integer
- Default value:
SwingConstants.LEADING
-
ALTERNATE_ROW_COLORING
Specifies whether alternate row coloring is enabled by default.- Value type: Boolean
- Default value: true
-
-
Method Details
-
columnClass
- Returns:
- the column class
-
filterIndicator
boolean filterIndicator()- Returns:
- true if an enabled filter should be indicated
-
alternateRowColoring
boolean alternateRowColoring()- Returns:
- true if alternate row coloring is enabled
-
horizontalAlignment
int horizontalAlignment()- Returns:
- the horizontal alignment
-
builder
Instantiates a newFilterTableCellRenderer.Builder
.- Type Parameters:
R
- the row typeC
- the column identifier typeT
- the cell value type- Parameters:
columnClass
- the column class- Returns:
- a new
FilterTableCellRenderer.Builder
instance
-
factory
- Type Parameters:
R
- the row typeC
- the column identifier type- Returns:
- a new default
FilterTableCellRenderer.Factory
instance
-