Class AbstractCompoundCommand

    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected java.util.ArrayList atomCommands
      The atom UndoableCommand command list.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addCommand​(UndoableCommand command)
      Adds the given command to the atomCommand list.
      void execute()
      Executes this command.
      int getCommandNumber()
      Returns the command number that this compound command contains.
      void redo()
      Performs redo for this command.
      boolean shouldExecute()
      Tests if the command can be executed.
      void undo()
      Performs undo for this command.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait