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-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuild()componentFactory(ColumnConditionPanel.ComponentFactory componentFactory) operatorCaptions(Function<Operator, String> operatorCaptions) Provides captions for operators, displayed in the operator combo boxtableColumn(TableColumn tableColumn)
-
Method Details
-
componentFactory
ColumnConditionPanel.Builder<T> componentFactory(ColumnConditionPanel.ComponentFactory componentFactory) - Parameters:
componentFactory- the input component factory- Returns:
- this builder
- Throws:
IllegalArgumentException- in case the given component 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
ColumnConditionPanelbased on this builder
-