Module is.codion.swing.common.ui
Interface FilterTable.Builder<R,C>
- Type Parameters:
R
- the type representing rowsC
- the type used to identify columns
- All Superinterfaces:
ComponentBuilder<Void,
FilterTable<R, C>, FilterTable.Builder<R, C>>
- Enclosing class:
- FilterTable<R,
C>
public static interface FilterTable.Builder<R,C>
extends ComponentBuilder<Void,FilterTable<R,C>,FilterTable.Builder<R,C>>
A builder for a
FilterTable
-
Field Summary
Fields inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
COMPONENT_VALUE, TRANSFER_FOCUS_ON_ENTER
-
Method Summary
Modifier and TypeMethodDescriptionautoResizeMode
(int autoResizeMode) autoStartsEdit
(boolean autoStartsEdit) <T> FilterTable.Builder<R,
C> cellEditor
(C identifier, FilterTableCellEditor<T> cellEditor) the cell renderer for the given column, overridescellEditorFactory(FilterTableCellEditor.Factory)
.cellEditorFactory
(FilterTableCellEditor.Factory<C> cellEditorFactory) Note that this factory is only used to create cell editors for columns which do not already have a cell editor and is overridden by any editor set viacellEditor(Object, FilterTableCellEditor)
.<T> FilterTable.Builder<R,
C> cellRenderer
(C identifier, FilterTableCellRenderer<T> cellRenderer) The cell renderer for the given column, overridescellRendererFactory(FilterTableCellRenderer.Factory)
.cellRendererFactory
(FilterTableCellRenderer.Factory<R, C> cellRendererFactory) Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer and is overridden by any renderer set viacellRenderer(Object, FilterTableCellRenderer)
.centerOnScroll
(FilterTable.CenterOnScroll centerOnScroll) columnReorderingAllowed
(boolean columnReorderingAllowed) columnResizingAllowed
(boolean columnResizingAllowed) doubleClickAction
(Action doubleClickAction) filterFieldFactory
(ColumnConditionPanel.FieldFactory filterFieldFactory) filterPanelFactory
(TableConditionPanel.Factory<C> filterPanelFactory) filterView
(ConditionPanel.ConditionView filterView) keyStroke
(ControlKey<?> controlKey, KeyStroke keyStroke) resizeRowToFitEditor
(boolean resizeRowToFitEditor) Only applicable toFilterTableCellEditor
scrollToSelectedItem
(boolean scrollToSelectedItem) selectionMode
(int selectionMode) sortingEnabled
(boolean sortingEnabled) summaryValuesFactory
(SummaryModel.SummaryValues.Factory<C> summaryValuesFactory) Methods inherited from interface is.codion.swing.common.ui.component.builder.ComponentBuilder
background, border, build, build, buildValue, buildValue, clientProperty, componentListener, componentOrientation, consumer, enabled, enabled, focusable, focusCycleRoot, focusListener, font, foreground, keyEvent, keyListener, label, link, link, listener, maximumHeight, maximumSize, maximumWidth, minimumHeight, minimumSize, minimumWidth, mouseListener, mouseMotionListener, mouseWheelListener, onBuild, onBuildValue, onSetVisible, opaque, popupMenu, popupMenuControl, popupMenuControls, preferredHeight, preferredSize, preferredWidth, propertyChangeListener, propertyChangeListener, scrollPane, toolTipText, transferFocusOnEnter, transferHandler, validator, value, visible
-
Method Details
-
summaryValuesFactory
FilterTable.Builder<R,C> summaryValuesFactory(SummaryModel.SummaryValues.Factory<C> summaryValuesFactory) - Parameters:
summaryValuesFactory
- the column summary values factory- Returns:
- this builder instance
-
filterPanelFactory
- Parameters:
filterPanelFactory
- the table filter condition panel factory- Returns:
- this builder instance
-
filterFieldFactory
- Parameters:
filterFieldFactory
- the column filter field factory- Returns:
- this builder instance
- See Also:
-
cellRenderer
The cell renderer for the given column, overridescellRendererFactory(FilterTableCellRenderer.Factory)
.- Type Parameters:
T
- the column type- Parameters:
identifier
- the column identifiercellRenderer
- the cell renderer to use for the given column- Returns:
- this builder instance
-
cellRendererFactory
FilterTable.Builder<R,C> cellRendererFactory(FilterTableCellRenderer.Factory<R, C> cellRendererFactory) Note that this factory is only used to create cell renderers for columns which do not already have a cell renderer and is overridden by any renderer set viacellRenderer(Object, FilterTableCellRenderer)
.- Parameters:
cellRendererFactory
- the table cell renderer factory- Returns:
- this builder instance
-
cellEditor
the cell renderer for the given column, overridescellEditorFactory(FilterTableCellEditor.Factory)
.- Type Parameters:
T
- the column type- Parameters:
identifier
- the column identifiercellEditor
- the cell editor to use for the given column- Returns:
- this builder instance
-
cellEditorFactory
Note that this factory is only used to create cell editors for columns which do not already have a cell editor and is overridden by any editor set viacellEditor(Object, FilterTableCellEditor)
.- Parameters:
cellEditorFactory
- the table cell editor 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
- See Also:
-
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
-
resizeRowToFitEditor
Only applicable toFilterTableCellEditor
- Parameters:
resizeRowToFitEditor
- true if the row should be resized to fit the editor- Returns:
- this builder instance
-
filterView
- Parameters:
filterView
- the initial filter condition view- Returns:
- this builder instance
-
keyStroke
- Parameters:
controlKey
- the control keykeyStroke
- the keyStroke to assign to the given control- Returns:
- this builder instance
-