Module is.codion.common.model
Package is.codion.common.model.selection
Interface SingleItemSelection<T>
- Type Parameters:
T
- the item type
- All Known Subinterfaces:
FilterComboBoxModel.ComboBoxSelection<T>
,FilterTableModel.TableSelection<R>
,MultiItemSelection<T>
public interface SingleItemSelection<T>
A selection model for managing a single selected item
-
Method Details
-
empty
StateObserver empty()- Returns:
- a
StateObserver
indicating whether the selection is empty
-
changing
Observer<?> changing()To prevent a selection change, add a listener throwing aCancelException
.- Returns:
- an observer notified when the selection is about to change
-
item
- Returns:
- a
Mutable
controlling the selected item
-
clear
void clear()Clears the selection
-