public class TLcdUndoSupport extends Object implements ILcdUndoableSource
ILcdUndoableListener
s.Constructor and Description |
---|
TLcdUndoSupport(Object aSource)
Constructs a new
TLcdUndoSupport with the specified source. |
Modifier and Type | Method and Description |
---|---|
void |
addUndoableListener(ILcdUndoableListener aListener)
Adds
aListener to the list. |
ILcdUndoableListener |
asListener()
Returns an undoable listener that forwards all received events to the registered listeners.
|
void |
fireUndoableHappened(ILcdUndoable aUndoable)
Notify all listeners in the list that
aUndoable has happened. |
void |
removeUndoableListener(ILcdUndoableListener aListener)
Removes
aListener from the list. |
public TLcdUndoSupport(Object aSource)
TLcdUndoSupport
with the specified source.aSource
- The source that will be used as the source of the generated
TLcdUndoableEvent
objects.public void addUndoableListener(ILcdUndoableListener aListener)
aListener
to the list.addUndoableListener
in interface ILcdUndoableSource
aListener
- The listener to add to the list.public void removeUndoableListener(ILcdUndoableListener aListener)
aListener
from the list.removeUndoableListener
in interface ILcdUndoableSource
aListener
- The listener to remove from the list.public void fireUndoableHappened(ILcdUndoable aUndoable)
aUndoable
has happened.aUndoable
- The undoable of which the listeners should be notified.public final ILcdUndoableListener asListener()