Class AbstractMutableSingleSelection<E>
- java.lang.Object
-
- com.macrofocus.selection.implementation.AbstractSelection<E>
-
- com.macrofocus.selection.implementation.AbstractMutableSelection<E>
-
- com.macrofocus.selection.implementation.AbstractMutableSingleSelection<E>
-
- All Implemented Interfaces:
MutableSelection<E>
,MutableSingleSelection<E>
,Selection<E>
,SingleSelection<E>
,java.lang.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 Constructor Description AbstractMutableSingleSelection()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addSingleSelectionListener(SingleSelectionListener<E> listener)
void
addWeakSingleSelectionListener(SingleSelectionListener<E> listener)
protected void
notifySingleSelectedChanged(SingleSelectionEvent<E> event)
void
removeSingleSelectionListener(SingleSelectionListener<E> listener)
-
Methods inherited from class com.macrofocus.selection.implementation.AbstractMutableSelection
setEnabled
-
Methods inherited from class com.macrofocus.selection.implementation.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 com.macrofocus.selection.MutableSelection
clearSelection, setEnabled, setSelected, setSelected, setSelected, setSelectedElements, setSelectedIterable
-
Methods inherited from interface com.macrofocus.selection.MutableSingleSelection
setSelected
-
Methods inherited from interface com.macrofocus.selection.Selection
addSelectionListener, addWeakSelectionListener, getSelectedCount, getSelectedSet, isActive, isEnabled, isSelected, removeSelectionListener, removeSelectionListeners
-
Methods inherited from interface com.macrofocus.selection.SingleSelection
getSelected
-
-
-
-
Method Detail
-
addSingleSelectionListener
public void addSingleSelectionListener(SingleSelectionListener<E> listener)
- Specified by:
addSingleSelectionListener
in interfaceSingleSelection<E>
-
addWeakSingleSelectionListener
public void addWeakSingleSelectionListener(SingleSelectionListener<E> listener)
- Specified by:
addWeakSingleSelectionListener
in interfaceSingleSelection<E>
-
removeSingleSelectionListener
public void removeSingleSelectionListener(SingleSelectionListener<E> listener)
- Specified by:
removeSingleSelectionListener
in interfaceSingleSelection<E>
-
notifySingleSelectedChanged
protected void notifySingleSelectedChanged(SingleSelectionEvent<E> event)
-
-