Package com.macrofocus.common.selection
Interface SingleSelection<E>
- Type Parameters:
E
- the type of elements that can be selected
- All Known Subinterfaces:
MutableSingleSelection<E>
- All Known Implementing Classes:
AbstractMutableSingleSelection
,BeanSingleSelection
,NullSingleSelection
,PropertySingleSelection
,SimpleSingleSelection
This interface constrains the selection to be restricted to a single element.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addSingleSelectionListener
(SingleSelectionListener<E> listener) void
void
Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.macrofocus.common.selection.Selection
addSelectionListener, addWeakSelectionListener, getSelectedCount, getSelectedSet, isActive, isEnabled, isSelected, removeSelectionListener, removeSelectionListeners
-
Method Details
-
getSelected
E getSelected() -
addSingleSelectionListener
-
addWeakSingleSelectionListener
-
removeSingleSelectionListener
-