Package is.codion.swing.framework.model
Class SwingAttributeConditionModelFactory
java.lang.Object
is.codion.framework.model.AttributeConditionModelFactory
is.codion.swing.framework.model.SwingAttributeConditionModelFactory
- All Implemented Interfaces:
TableConditionModel.ConditionModelFactory<Attribute<?>>
A Swing
TableConditionModel.ConditionModelFactory
implementation using EntityComboBoxModel
for foreign keys based on small datasets-
Constructor Summary
ConstructorDescriptionSwingAttributeConditionModelFactory
(EntityConnectionProvider connectionProvider) Instantiates a newSwingAttributeConditionModelFactory
. -
Method Summary
Modifier and TypeMethodDescriptionCreates aConditionModel
for a given column identifierprotected EntityComboBoxModel
createEqualComboBoxModel
(ForeignKey foreignKey) Methods inherited from class is.codion.framework.model.AttributeConditionModelFactory
connectionProvider, createEqualSearchModel, createInSearchModel, definition
-
Constructor Details
-
SwingAttributeConditionModelFactory
Instantiates a newSwingAttributeConditionModelFactory
.- Parameters:
connectionProvider
- the connection provider
-
-
Method Details
-
create
Description copied from interface:TableConditionModel.ConditionModelFactory
Creates aConditionModel
for a given column identifier- Specified by:
create
in interfaceTableConditionModel.ConditionModelFactory<Attribute<?>>
- Overrides:
create
in classAttributeConditionModelFactory
- Parameters:
attribute
- the column identifier for which to create aConditionModel
- Returns:
- a
ConditionModel
for the given identifier or an empty optional if none is provided
-
createEqualComboBoxModel
- Parameters:
foreignKey
- the foreign key- Returns:
- a combo box model to use for the equal value
-