Class Redo

  • All Implemented Interfaces:
    Command

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

      • Redo

        public Redo()
        Initialises a Redo 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