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> JComponentequal(ConditionModel<T> conditionModel) <T> JComponentin(ConditionModel<T> conditionModel) <T> JComponentlower(ConditionModel<T> conditionModel) booleansupportsType(Class<?> valueClass) <T> JComponentupper(ConditionModel<T> conditionModel)
-
Constructor Details
-
EntityConditionComponentFactory
- Parameters:
entityDefinition- the entity definitionattribute- the attribute
-
-
Method Details
-
supportsType
- Specified by:
supportsTypein interfaceColumnConditionPanel.ComponentFactory- Parameters:
valueClass- the value class- Returns:
- true if the type is supported
-
equal
- Specified by:
equalin interfaceColumnConditionPanel.ComponentFactory- Type Parameters:
T- the operand type- Parameters:
conditionModel- the condition model- Returns:
- a component linked to the equal operand
-
lower
- Specified by:
lowerin 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:
upperin 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:
inin interfaceColumnConditionPanel.ComponentFactory- Type Parameters:
T- the operand type- Parameters:
conditionModel- the condition model- Returns:
- a component linked to the in operands
-