Interface ICommand

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void execute​(Document document)
      Called to execute the command against the given document.
      String type()
      Returns the type of the command (i.e. the command's class name).
      void undo​(Document document)
      Called to undo the command (restore the document to a previous state).
    • Method Detail

      • execute

        void execute​(Document document)
        Called to execute the command against the given document.
        Parameters:
        document -
      • undo

        void undo​(Document document)
        Called to undo the command (restore the document to a previous state).
        Parameters:
        document -
      • type

        String type()
        Returns the type of the command (i.e. the command's class name).