Module is.codion.swing.common.ui
Interface FilterTableCellRenderer<R,C,T>
- Type Parameters:
R- the row typeC- the column identifier typeT- the column type
- All Superinterfaces:
TableCellRenderer
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aFilterTableCellRendererstatic interfaceProvides a color to override the default color for table cells.static interfaceCustomizes a renderer component for a given cellstatic interfaceA factory forFilterTableCellRendererinstances. -
Field Summary
FieldsModifier 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<Boolean> Specifies whether if a focused cell should be indicated with a cell border.static final PropertyValue<Integer> The default horizontal alignment.static final PropertyValue<Integer> The default horizontal alignment for numerical columns.static final PropertyValue<Boolean> Specifies whether cell borders are set.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 TypeMethodDescriptionstatic <R,C> FilterTableCellRenderer.Builder.ColumnClassStep <R, C> builder()static <R,C> FilterTableCellRenderer.Factory <R, C> factory()intMethods 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.TRAILING
-
TEMPORAL_HORIZONTAL_ALIGNMENT
The default horizontal alignment for temporal columns.- Value type: Integer
- Default value:
SwingConstants.TRAILING
-
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
-
FOCUSED_CELL_INDICATOR
Specifies whether if a focused cell should be indicated with a cell border.- Value type: Boolean
- Default value: true
-
SET_BORDER
Specifies whether cell borders are set. Disable to use the table cell borders provided by the look and feel.- Value type: Boolean
- Default value: true
-
-
Method Details
-
columnClass
- Returns:
- the column class
-
horizontalAlignment
int horizontalAlignment()- Returns:
- the horizontal alignment
-
cellBorder
Border cellBorder()- Returns:
- the cell border
-
customizers
Collection<FilterTableCellRenderer.Customizer<R,C>> customizers()- Returns:
- the cell renderer customizers
-
builder
- Type Parameters:
R- the row typeC- the column identifier type- Returns:
- a
FilterTableCellRenderer.Builder.ColumnClassStepinstance
-
factory
- Type Parameters:
R- the row typeC- the column identifier type- Returns:
- a new default
FilterTableCellRenderer.Factoryinstance
-