Module is.codion.swing.common.ui
Interface FilteredTable.Builder<R,C>
- Type Parameters:
R
- the type representing rowsC
- the type used to identify columns
- All Superinterfaces:
ComponentBuilder<Void,
FilteredTable<R, C>, FilteredTable.Builder<R, C>>
- Enclosing class:
- FilteredTable<R,
C>
public static interface FilteredTable.Builder<R,C>
extends ComponentBuilder<Void,FilteredTable<R,C>,FilteredTable.Builder<R,C>>
A builder for a
FilteredTable
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionautoResizeMode
(int autoResizeMode) autoStartsEdit
(boolean autoStartsEdit) cellRendererFactory
(FilteredTableCellRendererFactory<C> cellRendererFactory) Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer set.centerOnScroll
(FilteredTable.CenterOnScroll centerOnScroll) columnReorderingAllowed
(boolean columnReorderingAllowed) columnResizingAllowed
(boolean columnResizingAllowed) doubleClickAction
(Action doubleClickAction) filterPanelFactory
(ColumnConditionPanel.Factory<C> filterPanelFactory) scrollToSelectedItem
(boolean scrollToSelectedItem) selectionMode
(int selectionMode) sortingEnabled
(boolean sortingEnabled) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, clear, clientProperty, componentListener, componentOrientation, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, initialValue, keyEvent, keyListener, label, link, link, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, visible
-
Method Details
-
filterPanelFactory
- Parameters:
filterPanelFactory
- the column filter panel factory- Returns:
- this builder instance
-
cellRendererFactory
FilteredTable.Builder<R,C> cellRendererFactory(FilteredTableCellRendererFactory<C> cellRendererFactory) Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer set.- Parameters:
cellRendererFactory
- the table cell renderer factory- Returns:
- this builder instance
-
autoStartsEdit
- Parameters:
autoStartsEdit
- true if editing should start automatically- Returns:
- this builder instance
-
centerOnScroll
- Parameters:
centerOnScroll
- the center on scroll behavious- Returns:
- this builder instance
-
doubleClickAction
- Parameters:
doubleClickAction
- the double click action- Returns:
- this builder instance
-
scrollToSelectedItem
- Parameters:
scrollToSelectedItem
- true if this table should scroll to the selected item- Returns:
- this builder instance
-
sortingEnabled
- Parameters:
sortingEnabled
- true if sorting via clicking the header should be enbled- Returns:
- this builder instance
-
selectionMode
- Parameters:
selectionMode
- the table selection mode- Returns:
- this builder instance
-
columnReorderingAllowed
- Parameters:
columnReorderingAllowed
- true if column reordering should be allowed- Returns:
- this builder instance
-
columnResizingAllowed
- Parameters:
columnResizingAllowed
- true if column resizing should be allowed- Returns:
- this builder instance
-
autoResizeMode
- Parameters:
autoResizeMode
- the table auto column resizing mode- Returns:
- this builder instance
-