Class Undo

  • All Implemented Interfaces:
    Command

    public class Undo
    extends CommandImpl
    A command that undoes a command.
    Author:
    Arnaud BLOUIN
    • Constructor Detail

      • Undo

        public Undo()
        Initialises an Undo command.
    • Method Detail

      • canDo

        public boolean canDo()
        Description copied from interface: Command
        Checks whether the command can be executed.
        Specified by:
        canDo in interface Command
        Overrides:
        canDo in class CommandImpl
        Returns:
        True if the command can be executed.
      • doCmdBody

        protected void doCmdBody()
        Description copied from class: CommandImpl
        This method contains the statements to execute the command. This method is automatically called by DoIt and must not be called explicitly.
        Specified by:
        doCmdBody in class CommandImpl