Package com.macrofocus.common.selection
Class AbstractMutableSingleSelection<E>
java.lang.Object
com.macrofocus.common.selection.AbstractSelection<E>
com.macrofocus.common.selection.AbstractMutableSelection<E>
com.macrofocus.common.selection.AbstractMutableSingleSelection<E>
- All Implemented Interfaces:
MutableSelection<E>,MutableSingleSelection<E>,Selection<E>,SingleSelection<E>,Iterable<E>
- Direct Known Subclasses:
BeanSingleSelection,NullSingleSelection,PropertySingleSelection,SimpleSingleSelection
public abstract class AbstractMutableSingleSelection<E>
extends AbstractMutableSelection<E>
implements MutableSingleSelection<E>
This class provides a skeletal implementation of the MutableSelection interface to minimize the effort required to implement
this interface.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddSingleSelectionListener(SingleSelectionListener<E> listener) voidprotected voidvoidMethods inherited from class com.macrofocus.common.selection.AbstractMutableSelection
setEnabledMethods inherited from class com.macrofocus.common.selection.AbstractSelection
addSelectionListener, addWeakSelectionListener, isEnabled, notifySelectedChanged, removeSelectionListener, removeSelectionListenersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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.MutableSingleSelection
setSelectedMethods 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
getSelected
-
Constructor Details
-
AbstractMutableSingleSelection
public AbstractMutableSingleSelection()
-
-
Method Details
-
addSingleSelectionListener
- Specified by:
addSingleSelectionListenerin interfaceSingleSelection<E>
-
addWeakSingleSelectionListener
- Specified by:
addWeakSingleSelectionListenerin interfaceSingleSelection<E>
-
removeSingleSelectionListener
- Specified by:
removeSingleSelectionListenerin interfaceSingleSelection<E>
-
notifySingleSelectedChanged
-