Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityConditionComponentFactory
java.lang.Object
is.codion.swing.framework.ui.EntityConditionComponentFactory
- All Implemented Interfaces:
ColumnConditionPanel.ComponentFactory
public class EntityConditionComponentFactory
extends Object
implements ColumnConditionPanel.ComponentFactory
A default component factory implementation for attributes.
-
Constructor Summary
ConstructorsConstructorDescriptionEntityConditionComponentFactory
(EntityDefinition entityDefinition, Attribute<?> attribute) -
Method Summary
Modifier and TypeMethodDescription<T> JComponent
equal
(ConditionModel<T> conditionModel) <T> JComponent
in
(ConditionModel<T> conditionModel) <T> JComponent
lower
(ConditionModel<T> conditionModel) boolean
supportsType
(Class<?> valueClass) <T> JComponent
upper
(ConditionModel<T> conditionModel)
-
Constructor Details
-
EntityConditionComponentFactory
- Parameters:
entityDefinition
- the entity definitionattribute
- the attribute
-
-
Method Details
-
supportsType
- Specified by:
supportsType
in interfaceColumnConditionPanel.ComponentFactory
- Parameters:
valueClass
- the value class- Returns:
- true if the type is supported
-
equal
- Specified by:
equal
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition model- Returns:
- a component linked to the equal operand
-
lower
- Specified by:
lower
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition model- Returns:
- a component linked to the lower bound operand
-
upper
- Specified by:
upper
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition model- Returns:
- a component linked to the upper bound operand
-
in
- Specified by:
in
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition model- Returns:
- a component linked to the in operands
-