Interface IUndoRedoListener

All Known Implementing Classes:
UndoRedoListenerAdapter

public interface IUndoRedoListener
  • 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

      void undoableCommandAdded​(IUndoRedoCommand command)
      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 the GanttUndoRedoManager.
      Parameters:
      command - Command added to stack
      See Also:
      GanttChart.getUndoRedoManager()
    • commandUndone

      void commandUndone​(IUndoRedoCommand command)
      Notified when an undo has taken place.
      Parameters:
      command - Command that was undone
    • commandRedone

      void commandRedone​(IUndoRedoCommand command)
      Notified when a redo has taken place.
      Parameters:
      command - Command that was redone