Package is.codion.swing.framework.model
Class SwingEntityConditions
java.lang.Object
is.codion.framework.model.EntityConditions
is.codion.swing.framework.model.SwingEntityConditions
- All Implemented Interfaces:
Supplier<Map<Attribute<?>,ConditionModel<?>>>
A Swing
ConditionModel supplier using EntityComboBoxModel for foreign keys based on small datasets-
Constructor Summary
ConstructorsConstructorDescriptionSwingEntityConditions(EntityType entityType, EntityConnectionProvider connectionProvider) Instantiates a newSwingEntityConditions. -
Method Summary
Modifier and TypeMethodDescriptionprotected ForeignKeyConditionModelcondition(ForeignKey foreignKey) Only called ifEntityConditions.include(ForeignKey)returns trueprotected EntityComboBoxModelcreateEqualComboBoxModel(ForeignKey foreignKey) Methods inherited from class is.codion.framework.model.EntityConditions
condition, connectionProvider, createEqualSearchModel, createInSearchModel, definition, definition, get, include, include
-
Constructor Details
-
SwingEntityConditions
Instantiates a newSwingEntityConditions.- Parameters:
entityType- the entity typeconnectionProvider- the connection provider
-
-
Method Details
-
condition
Description copied from class:EntityConditionsOnly called ifEntityConditions.include(ForeignKey)returns true- Overrides:
conditionin classEntityConditions- 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
-