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 TypeMethodDescriptionvoid
addSingleSelectionListener
(SingleSelectionListener<E> listener) void
protected void
void
Methods inherited from class com.macrofocus.common.selection.AbstractMutableSelection
setEnabled
Methods inherited from class com.macrofocus.common.selection.AbstractSelection
addSelectionListener, addWeakSelectionListener, isEnabled, notifySelectedChanged, removeSelectionListener, removeSelectionListeners
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
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.MutableSingleSelection
setSelected
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
getSelected
-
Constructor Details
-
AbstractMutableSingleSelection
public AbstractMutableSingleSelection()
-
-
Method Details
-
addSingleSelectionListener
- Specified by:
addSingleSelectionListener
in interfaceSingleSelection<E>
-
addWeakSingleSelectionListener
- Specified by:
addWeakSingleSelectionListener
in interfaceSingleSelection<E>
-
removeSingleSelectionListener
- Specified by:
removeSingleSelectionListener
in interfaceSingleSelection<E>
-
notifySingleSelectedChanged
-