Module is.codion.swing.common.ui
Interface FilterTableCellRenderer
- All Superinterfaces:
TableCellRenderer
Provides TableCellRenderer implementations for FilterTable via
builder(FilterTableModel, Object, Class).-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aFilterTableCellRendererstatic interfaceProvides cell specific colors.static classSettings for aFilterTableCellRenderer -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final is.codion.common.property.PropertyValue<Boolean>Specifies whether alternate row coloring is enabled by default.
Value type: Boolean
Default value: truestatic final is.codion.common.property.PropertyValue<Integer>The default horizontal alignment for boolean columns.
Value type: Integer
Default value:SwingConstants.CENTERstatic final is.codion.common.property.PropertyValue<Integer>static final is.codion.common.property.PropertyValue<Integer>The default horizontal alignment for numerical columns.
Value type: Integer
Default value:SwingConstants.RIGHTstatic final is.codion.common.property.PropertyValue<Integer>The default left padding for table cells.
Value type: Integer
Default value: 0static final is.codion.common.property.PropertyValue<Integer>The default right padding for table cells.
Value type: Integer
Default value: 5static final is.codion.common.property.PropertyValue<Integer>The default horizontal alignment for temporal columns.
Value type: Integer
Default value:SwingConstants.RIGHT -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic <R,C> FilterTableCellRenderer.Builder<R, C> builder(is.codion.swing.common.model.component.table.FilterTableModel<R, C> tableModel, C columnIdentifier, Class<?> columnClass) Instantiates a newFilterTableCellRenderer.Builder.booleanintMethods 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(is.codion.swing.common.model.component.table.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.Builderinstance
-