Class ChangeDescriptionCommand

  • All Implemented Interfaces:
    ICommand

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

      • _newDescription

        public String _newDescription
      • _oldDescription

        public String _oldDescription
      • _nullInfo

        public boolean _nullInfo
    • Constructor Detail

      • ChangeDescriptionCommand

        public ChangeDescriptionCommand()
        Constructor.
      • ChangeDescriptionCommand

        public ChangeDescriptionCommand​(String newDescription)
        Constructor.
        Parameters:
        newDescription -
    • 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).