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 theOperator.EQUALandOperator.NOT_EQUALoperand, linked toColumnConditionModel.Operands.equal()createInField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing theOperator.INoperands, linked toColumnConditionModel.Operands.in()createLowerBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the lower bound operand, linked toColumnConditionModel.Operands.lowerBound()createUpperBoundField(is.codion.common.model.table.ColumnConditionModel<C, ?> conditionModel) Creates the field representing the upper bound operand, linked toColumnConditionModel.Operands.upperBound()booleansupportsType(Class<?> columnClass)
-
Method Details
-
supportsType
- Parameters:
columnClass- the column class- Returns:
- true if the type is supported
-
createEqualField
Creates the field representing theOperator.EQUALandOperator.NOT_EQUALoperand, linked toColumnConditionModel.Operands.equal()- 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 operand, linked toColumnConditionModel.Operands.upperBound()- 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 operand, linked toColumnConditionModel.Operands.lowerBound()- 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 theOperator.INoperands, linked toColumnConditionModel.Operands.in()- Returns:
- the in value field
- Throws:
IllegalArgumentException- in case the bound type is not supported
-