Package is.codion.swing.framework.model
Class SwingEntityConditionModelFactory
java.lang.Object
is.codion.framework.model.EntityConditionModelFactory
is.codion.swing.framework.model.SwingEntityConditionModelFactory
- All Implemented Interfaces:
Supplier<Map<Attribute<?>,ConditionModel<?>>>
A Swing
ConditionModel supplier using EntityComboBoxModel for foreign keys based on small datasets-
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityConditionModelFactory(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a newSwingEntityConditionModelFactory. -
Method Summary
Modifier and TypeMethodDescriptionprotected ForeignKeyConditionModelconditionModel(ForeignKey foreignKey) Only called ifEntityConditionModelFactory.include(ForeignKey)returns trueprotected EntityComboBoxModelcreateEqualComboBoxModel(ForeignKey foreignKey) Methods inherited from class is.codion.framework.model.EntityConditionModelFactory
conditionModel, connectionProvider, createEqualSearchModel, createInSearchModel, definition, definition, get, include, include
-
Constructor Details
-
SwingEntityConditionModelFactory
public SwingEntityConditionModelFactory(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a newSwingEntityConditionModelFactory.- Parameters:
entityType- the entity typeconnectionProvider- the connection provider
-
-
Method Details
-
conditionModel
Description copied from class:EntityConditionModelFactoryOnly called ifEntityConditionModelFactory.include(ForeignKey)returns true- Overrides:
conditionModelin classEntityConditionModelFactory- Parameters:
foreignKey- the foreign key- Returns:
- a
ForeignKeyConditionModelbased on the given foreign key
-
createEqualComboBoxModel
- Parameters:
foreignKey- the foreign key- Returns:
- a combo box model to use for the equal value
-