Package com.macrofocus.common.selection
Interface MutableSingleSelection<E>
- All Superinterfaces:
Iterable<E>
,MutableSelection<E>
,Selection<E>
,SingleSelection<E>
- All Known Implementing Classes:
AbstractMutableSingleSelection
,BeanSingleSelection
,NullSingleSelection
,PropertySingleSelection
,SimpleSingleSelection
Defines the requirements for a single selection that can change.
-
Method Summary
Modifier and TypeMethodDescriptionvoid
setSelected
(E element) Change the selection to the given element.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
Methods inherited from interface com.macrofocus.common.selection.MutableSelection
clearSelection, setEnabled, setSelectedElements, setSelectedElementsState, setSelectedIterable, setSelectedIterableState, setSelectedState
Methods inherited from interface com.macrofocus.common.selection.Selection
addSelectionListener, addWeakSelectionListener, getSelectedCount, getSelectedSet, isActive, isEnabled, isSelected, removeSelectionListener, removeSelectionListeners
Methods inherited from interface com.macrofocus.common.selection.SingleSelection
addSingleSelectionListener, addWeakSingleSelectionListener, getSelected, removeSingleSelectionListener
-
Method Details
-
setSelected
Change the selection to the given element.- Specified by:
setSelected
in interfaceMutableSelection<E>
- Parameters:
element
- the element to replace the current selection.
-