Module is.codion.swing.common.model
Interface FilterComboBoxModel.ComboBoxItems<T>
- Type Parameters:
T
- the item type
- All Superinterfaces:
FilterModel.Items<T>
,Mutable<Collection<T>>
,Observable<Collection<T>>
,Observer<Collection<T>>
- Enclosing interface:
- FilterComboBoxModel<T>
-
Method Summary
Methods inherited from interface is.codion.common.model.FilterModel.Items
addItem, addItems, contains, count, filter, filtered, removeItem, removeItems, visible
Methods inherited from interface is.codion.common.observer.Observable
addConsumer, addListener, addWeakConsumer, addWeakListener, get, observer, optional, removeConsumer, removeListener, removeWeakConsumer, removeWeakListener
-
Method Details
-
replace
Replaces the given item in this combo box model- Parameters:
item
- the item to replacereplacement
- the replacement item- Throws:
IllegalArgumentException
- in case the replacement item fails validation
-
cleared
boolean cleared()- Returns:
- true if the items have been cleared and need to be refreshed
-
nullItem
FilterComboBoxModel.NullItem<T> nullItem()- Returns:
- the null item
-