Package is.codion.swing.framework.model
Interface SwingEntityEditor.SwingComboBoxModels
- All Superinterfaces:
EntityEditor.ComboBoxModels
- Enclosing class:
SwingEntityEditor
Manages the combo box models used by a
SwingEntityEditor.-
Method Summary
Modifier and TypeMethodDescriptionMap<Column<?>, SwingFilterComboBoxModel<?>> column()Returns the column based combo box models initialized viaEntityEditor.ComboBoxModels.get(Column).<T> SwingFilterComboBoxModel<T> Creates a combo box model containing the current values of the given column.create(ForeignKey foreignKey) Creates a newEntityComboBoxModelfor the given foreign key.Returns the foreign key based combo box models initialized viaEntityEditor.ComboBoxModels.get(ForeignKey).<T> SwingFilterComboBoxModel<T> Returns theFilterComboBoxModelassociated with the given column.get(ForeignKey foreignKey) Returns theEntityComboBoxModelassociated with the given foreign key.Methods inherited from interface is.codion.framework.model.EntityEditor.ComboBoxModels
initialize
-
Method Details
-
foreignKey
Map<ForeignKey,SwingEntityComboBoxModel> foreignKey()Description copied from interface:EntityEditor.ComboBoxModelsReturns the foreign key based combo box models initialized viaEntityEditor.ComboBoxModels.get(ForeignKey).- Specified by:
foreignKeyin interfaceEntityEditor.ComboBoxModels- Returns:
- an unmodifiable view of the foreign key based combo box models
-
column
Map<Column<?>,SwingFilterComboBoxModel<?>> column()Description copied from interface:EntityEditor.ComboBoxModelsReturns the column based combo box models initialized viaEntityEditor.ComboBoxModels.get(Column).- Specified by:
columnin interfaceEntityEditor.ComboBoxModels- Returns:
- an unmodifiable view of the column based combo box models
-
get
Description copied from interface:EntityEditor.ComboBoxModelsReturns the
EntityComboBoxModelassociated with the given foreign key. If no such combo box model exists, one is created by callingEntityEditor.ComboBoxModels.create(ForeignKey).This method always returns the same
EntityComboBoxModelinstance, once one has been created.- Specified by:
getin interfaceEntityEditor.ComboBoxModels- Parameters:
foreignKey- the foreign key- Returns:
- the
EntityComboBoxModelassociated with the given foreign key - See Also:
-
get
Description copied from interface:EntityEditor.ComboBoxModelsReturns the
FilterComboBoxModelassociated with the given column. If no such combo box model exists, one is created by callingEntityEditor.ComboBoxModels.create(Column).This method always returns the same
FilterComboBoxModelinstance, once one has been created.- Specified by:
getin interfaceEntityEditor.ComboBoxModels- Type Parameters:
T- the value type- Parameters:
column- the column- Returns:
- the
FilterComboBoxModelassociated with the given column - See Also:
-
create
Description copied from interface:EntityEditor.ComboBoxModelsCreates a new
EntityComboBoxModelfor the given foreign key.- Specified by:
createin interfaceEntityEditor.ComboBoxModels- Parameters:
foreignKey- the foreign key for which to create aEntityComboBoxModel- Returns:
- a
EntityComboBoxModelfor the given foreign key - See Also:
-
create
Description copied from interface:EntityEditor.ComboBoxModelsCreates a combo box model containing the current values of the given column.- Specified by:
createin interfaceEntityEditor.ComboBoxModels- Type Parameters:
T- the value type- Parameters:
column- the column- Returns:
- a combo box model based on the given column
- See Also:
-