Class UndoRedoListenerAdapter
- java.lang.Object
-
- org.eclipse.nebula.widgets.ganttchart.undoredo.UndoRedoListenerAdapter
-
- All Implemented Interfaces:
IUndoRedoListener
public class UndoRedoListenerAdapter extends java.lang.Object implements IUndoRedoListener
Basic implementation ofIUndoRedoListener
.
-
-
Constructor Summary
Constructors Constructor Description UndoRedoListenerAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
canRedoChanged(boolean canRedo)
Notified when the undo/redo state has changed.void
canUndoChanged(boolean canUndo)
Notified when the undo/redo state has changed.void
commandRedone(IUndoRedoCommand command)
Notified when a redo has taken place.void
commandUndone(IUndoRedoCommand command)
Notified when an undo has taken place.void
undoableCommandAdded(IUndoRedoCommand command)
When a command is added to the stack that can be undone this is called.
-
-
-
Method Detail
-
canRedoChanged
public void canRedoChanged(boolean canRedo)
Description copied from interface:IUndoRedoListener
Notified when the undo/redo state has changed.- Specified by:
canRedoChanged
in interfaceIUndoRedoListener
- Parameters:
canRedo
- Whether it is possible to redo or not
-
canUndoChanged
public void canUndoChanged(boolean canUndo)
Description copied from interface:IUndoRedoListener
Notified when the undo/redo state has changed.- Specified by:
canUndoChanged
in interfaceIUndoRedoListener
-
commandRedone
public void commandRedone(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListener
Notified when a redo has taken place.- Specified by:
commandRedone
in interfaceIUndoRedoListener
- Parameters:
command
- Command that was redone
-
commandUndone
public void commandUndone(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListener
Notified when an undo has taken place.- Specified by:
commandUndone
in interfaceIUndoRedoListener
- Parameters:
command
- Command that was undone
-
undoableCommandAdded
public void undoableCommandAdded(IUndoRedoCommand command)
Description copied from interface:IUndoRedoListener
When a command is added to the stack that can be undone this is called. DO NOT call undo() or redo() directly on this command, always go via theGanttUndoRedoManager
.- Specified by:
undoableCommandAdded
in interfaceIUndoRedoListener
- Parameters:
command
- Command added to stack- See Also:
GanttChart.getUndoRedoManager()
-
-