Class ChangeTitleCommand

  • All Implemented Interfaces:
    ICommand

    public class ChangeTitleCommand
    extends AbstractCommand
    A command used to modify the title of a document.
    Author:
    eric.wittmann@gmail.com
    • Field Detail

      • _newTitle

        public String _newTitle
      • _oldTitle

        public String _oldTitle
      • _nullInfo

        public boolean _nullInfo
    • Constructor Detail

      • ChangeTitleCommand

        public ChangeTitleCommand()
        Constructor.
      • ChangeTitleCommand

        public ChangeTitleCommand​(String newTitle)
        Constructor.
        Parameters:
        newTitle -
    • Method Detail

      • execute

        public void execute​(Document document)
        Description copied from interface: ICommand
        Called to execute the command against the given document.
      • undo

        public void undo​(Document document)
        Description copied from interface: ICommand
        Called to undo the command (restore the document to a previous state).