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 final class EntityConditionComponentFactory
extends Object
implements ColumnConditionPanel.ComponentFactory
A default component factory implementation for attributes.
-
Constructor Summary
ConstructorDescriptionEntityConditionComponentFactory
(EntityDefinition entityDefinition, Attribute<?> attribute) -
Method Summary
Modifier and TypeMethodDescription<T> JComponent
component
(ConditionModel<T> conditionModel, Value<T> operand) <T> JComponent
component
(ConditionModel<T> conditionModel, ValueSet<T> operands) boolean
supportsType
(Class<?> valueClass)
-
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
-
component
- Specified by:
component
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition modeloperand
- the operand value to link to the component- Returns:
- a component linked to the given operand value
-
component
- Specified by:
component
in interfaceColumnConditionPanel.ComponentFactory
- Type Parameters:
T
- the operand type- Parameters:
conditionModel
- the condition modeloperands
- the operands value to link to the component- Returns:
- a component linked to the given operands value
-