Module is.codion.swing.common.ui
Interface FilterTableColumn.Builder<C>
- Type Parameters:
C- the column identifier type
- Enclosing class:
FilterTableColumn<C>
public static interface FilterTableColumn.Builder<C>
A builder for
FilterTableColumn instances.-
Method Summary
Modifier and TypeMethodDescriptioncellEditor(@Nullable TableCellEditor cellEditor) cellRenderer(@Nullable TableCellRenderer cellRenderer) The cell renderer is used as is, without the rendering settings of the table, such as the selection and alternate row colors.fixedWidth(int fixedWidth) Sets both the minimum and maximum widths.headerRenderer(@Nullable TableCellRenderer headerRenderer) headerValue(@Nullable Object headerValue) maxWidth(int maxWidth) minWidth(int minWidth) preferredWidth(int preferredWidth) resizable(boolean resizable) toolTipText(@Nullable String toolTipText) width(int width)
-
Method Details
-
fixedWidth
Sets both the minimum and maximum widths.- Parameters:
fixedWidth- the fixed width- Returns:
- this builder instance
- See Also:
-
preferredWidth
- Parameters:
preferredWidth- the preferred column width- Returns:
- this builder instance
-
maxWidth
- Parameters:
maxWidth- the maximum column width- Returns:
- this builder instance
-
minWidth
- Parameters:
minWidth- the minimum column width- Returns:
- this builder instance
-
width
- Parameters:
width- the column width- Returns:
- this builder instance
-
resizable
- Parameters:
resizable- true if the column should be resizable- Returns:
- this builder instance
-
headerValue
- Parameters:
headerValue- the header value- Returns:
- this builder instance
-
headerRenderer
- Parameters:
headerRenderer- the header renderer- Returns:
- this builder instance
-
toolTipText
- Parameters:
toolTipText- the column tool tip text- Returns:
- this builder instance
-
cellEditor
- Parameters:
cellEditor- the cell editor- Returns:
- this builder instance
-
cellRenderer
The cell renderer is used as is, without the rendering settings of the table, such as the selection and alternate row colors. To keep those, wrap it viaFilterTable.Builder.cellRenderer(Object, Class, java.util.function.Consumer)andFilterTableCellRenderer.Builder.renderer(TableCellRenderer).- Parameters:
cellRenderer- the cell renderer- Returns:
- this builder instance
-
identifier
C identifier()- Returns:
- the column identifier this builder is based on
-