Interface UndoableCommand

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute()
      Executes this command.
      java.lang.String getName()
      Gets the command name.
      void redo()
      Performs redo for this command.
      boolean shouldExecute()
      Tests if the command can be executed.
      void undo()
      Performs undo for this command.
    • Method Detail

      • execute

        void execute()
        Executes this command.
      • undo

        void undo()
        Performs undo for this command.
      • redo

        void redo()
        Performs redo for this command.
      • getName

        java.lang.String getName()
        Gets the command name.
      • shouldExecute

        boolean shouldExecute()
        Tests if the command can be executed.
        Returns:
        True if command should be executed