Module is.codion.swing.common.ui
Interface ColumnConditionPanel.Builder<T>
- Type Parameters:
T
- the column value type
- Enclosing class:
- ColumnConditionPanel<T>
public static interface ColumnConditionPanel.Builder<T>
Builds a
ColumnConditionPanel
instance-
Method Summary
Modifier and TypeMethodDescriptionbuild()
fieldFactory
(ColumnConditionPanel.FieldFactory fieldFactory) operatorCaptions
(Function<Operator, String> operatorCaptions) Provides captions for operators, displayed in the operator combo boxtableColumn
(TableColumn tableColumn)
-
Method Details
-
fieldFactory
- Parameters:
fieldFactory
- the input field factory- Returns:
- this builder
- Throws:
IllegalArgumentException
- in case the given field factory does not support the column value type
-
operatorCaptions
Provides captions for operators, displayed in the operator combo box- Parameters:
operatorCaptions
- the operator caption function- Returns:
- this builder
-
tableColumn
- Parameters:
tableColumn
- the table column this condition panel represents- Returns:
- this builder
-
build
ColumnConditionPanel<T> build()- Returns:
- a new
ColumnConditionPanel
based on this builder
-