- Type Parameters:
T
- the item type
- All Known Subinterfaces:
FilterComboBoxModel.ComboBoxSelection<T>
,FilterTableModel.TableSelection<R>
,MultiSelection<T>
public interface SingleSelection<T>
A selection model managing a single selected item.
-
Method Details
-
empty
ObservableState empty()- Returns:
- an
ObservableState
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
SingleSelection.Item<T> item()- Returns:
- the selected item
-
clear
void clear()Clears the selection
-