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 TypeMethodDescriptionvoidsetSelected(E element) Change the selection to the given element.Methods inherited from interface java.lang.Iterable
forEach, iterator, spliteratorMethods inherited from interface com.macrofocus.common.selection.MutableSelection
clearSelection, setEnabled, setSelectedElements, setSelectedElementsState, setSelectedIterable, setSelectedIterableState, setSelectedStateMethods inherited from interface com.macrofocus.common.selection.Selection
addSelectionListener, addWeakSelectionListener, getSelectedCount, getSelectedSet, isActive, isEnabled, isSelected, removeSelectionListener, removeSelectionListenersMethods inherited from interface com.macrofocus.common.selection.SingleSelection
addSingleSelectionListener, addWeakSingleSelectionListener, getSelected, removeSingleSelectionListener
-
Method Details
-
setSelected
Change the selection to the given element.- Specified by:
setSelectedin interfaceMutableSelection<E>- Parameters:
element- the element to replace the current selection.
-