Module is.codion.common.model
Interface FilterComboBoxModel<T>
- Type Parameters:
T- the type of values in this combo box model
- All Superinterfaces:
FilterModel<T>
- All Known Subinterfaces:
EntityComboBoxModel,SwingEntityComboBoxModel,SwingFilterComboBoxModel<T>
A UI-agnostic combo box model based on
FilterModel. The Swing-specific
is.codion.swing.common.model.component.combobox.SwingFilterComboBoxModel extends this with
javax.swing.ComboBoxModel (mirroring how SwingFilterTableModel extends TableModel).- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilds aFilterComboBoxModelstatic interfaceThe items of aFilterComboBoxModel.static interfaceBuildsFilterComboBoxModelimplementations based on theItemclass.static interfaceResponsible for finding an item of typeFilterComboBoxModel.ItemFinderby a single value of typeFilterComboBoxModel.ItemFinder.Nested classes/interfaces inherited from interface is.codion.common.model.filter.FilterModel
FilterModel.FilteredItems<T>, FilterModel.IncludedItems<T>, FilterModel.IncludePredicate<T>, FilterModel.Items<T>, FilterModel.Refresher<T>, FilterModel.Sort<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PropertyValue<String> Specifies the caption used by default to represent the null item in combo box models.Fields inherited from interface is.codion.common.model.filter.FilterModel
ASYNC -
Method Summary
Methods inherited from interface is.codion.common.model.filter.FilterModel
selection, sort
-
Field Details
-
NULL_CAPTION
Specifies the caption used by default to represent the null item in combo box models.- Value type: String
- Default value: -
- See Also:
-
-
Method Details
-
items
FilterComboBoxModel.ComboBoxItems<T> items()- Specified by:
itemsin interfaceFilterModel<T>- Returns:
- the model items
-
selectedItem
- Returns:
- the selected item, N.B. this can include the
nullItemin case it has been set viaFilterComboBoxModel.Builder.nullItem(Object),SingleSelection.item()is usually what you want
-
selector
- Type Parameters:
V- the value type- Parameters:
itemFinder- responsible for finding the item to select- Returns:
- a new
Valuelinked to the selected item using the givenFilterComboBoxModel.ItemFinderinstance
-
builder
- Returns:
- a new
FilterComboBoxModel.Builder.ItemsStepinstance
-