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