Module is.codion.swing.framework.ui
Package is.codion.swing.framework.ui
Class EntityConditionPanelFactory
java.lang.Object
is.codion.swing.framework.ui.EntityConditionPanelFactory
- All Implemented Interfaces:
ColumnConditionPanel.Factory<Attribute<?>>
public class EntityConditionPanelFactory
extends Object
implements ColumnConditionPanel.Factory<Attribute<?>>
A default
ColumnConditionPanel.Factory
implementation.
Override createConditionPanel(ColumnConditionModel)
to provide custom condition panels.-
Constructor Summary
ConstructorsConstructorDescriptionEntityConditionPanelFactory
(EntityDefinition entityDefinition) Instantiates a newEntityConditionPanelFactory
EntityConditionPanelFactory
(EntityComponents entityComponents) Instantiates a newEntityConditionPanelFactory
-
Method Summary
Modifier and TypeMethodDescription<T> Optional<ColumnConditionPanel<Attribute<?>,
T>> createConditionPanel
(ColumnConditionModel<Attribute<?>, T> conditionModel) Creates a ColumnConditionPanel for the given column, returns an empty Optional if none is available
-
Constructor Details
-
EntityConditionPanelFactory
Instantiates a newEntityConditionPanelFactory
- Parameters:
entityDefinition
- the entity definition
-
EntityConditionPanelFactory
Instantiates a newEntityConditionPanelFactory
- Parameters:
entityComponents
- theEntityComponents
instance to use when creating bound fields
-
-
Method Details
-
createConditionPanel
public <T> Optional<ColumnConditionPanel<Attribute<?>,T>> createConditionPanel(ColumnConditionModel<Attribute<?>, T> conditionModel) Description copied from interface:ColumnConditionPanel.Factory
Creates a ColumnConditionPanel for the given column, returns an empty Optional if none is available- Specified by:
createConditionPanel
in interfaceColumnConditionPanel.Factory<Attribute<?>>
- Type Parameters:
T
- the column value type- Parameters:
conditionModel
- the column condition model- Returns:
- a ColumnConditionPanel or an empty Optional if none is available for the given column
-