Module is.codion.swing.common.ui
Interface FilterColumnConditionPanel.FieldFactory<C>
- Enclosing class:
- FilterColumnConditionPanel<C,
T>
public static interface FilterColumnConditionPanel.FieldFactory<C>
Provides equal, upper and lower bound input fields for a ColumnConditionPanel
-
Method Summary
Modifier and TypeMethodDescriptioncreateEqualField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the equal value, linked toColumnConditionModel.equalValue()createInField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the in values, linked toColumnConditionModel.inValues()createLowerBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the lower bound value, linked toColumnConditionModel.lowerBoundValue()createUpperBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the upper bound value, linked toColumnConditionModel.upperBoundValue()booleansupportsType(Class<?> columnClass)
-
Method Details
-
supportsType
- Parameters:
columnClass- the column class- Returns:
- true if the type is supported
-
createEqualField
Creates the field representing the equal value, linked toColumnConditionModel.equalValue()- Returns:
- the equal value field
- Throws:
IllegalArgumentException- in case the bound type is not supported
-
createUpperBoundField
Optional<JComponent> createUpperBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the upper bound value, linked toColumnConditionModel.upperBoundValue()- Returns:
- an upper bound input field, or an empty Optional if it does not apply to the bound type
- Throws:
IllegalArgumentException- in case the bound type is not supported
-
createLowerBoundField
Optional<JComponent> createLowerBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the lower bound value, linked toColumnConditionModel.lowerBoundValue()- Returns:
- a lower bound input field, or an empty Optional if it does not apply to the bound type
- Throws:
IllegalArgumentException- in case the bound type is not supported
-
createInField
Creates the field representing the in values, linked toColumnConditionModel.inValues()- Returns:
- the in value field
- Throws:
IllegalArgumentException- in case the bound type is not supported
-