Interface IUndoRedoListener
- All Known Implementing Classes:
UndoRedoListenerAdapter
public interface IUndoRedoListener
-
Method Summary
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 Details
-
canRedoChanged
void canRedoChanged(boolean canRedo)Notified when the undo/redo state has changed.- Parameters:
canRedo
- Whether it is possible to redo or not
-
canUndoChanged
void canUndoChanged(boolean canUndo)Notified when the undo/redo state has changed.- Parameters:
canRedo
- Whether it is possible to undo or not
-
undoableCommandAdded
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
.- Parameters:
command
- Command added to stack- See Also:
GanttChart.getUndoRedoManager()
-
commandUndone
Notified when an undo has taken place.- Parameters:
command
- Command that was undone
-
commandRedone
Notified when a redo has taken place.- Parameters:
command
- Command that was redone
-