Class ForwardUndoCompoundCommand


  • public class ForwardUndoCompoundCommand
    extends CompoundCommand
    A CompoundCommand that performs undo on its contained Commands in the same order in which they were executed.
    • Constructor Detail

      • ForwardUndoCompoundCommand

        public ForwardUndoCompoundCommand()
        Constructs a ForwardUndoCompoundCommand with no label
      • ForwardUndoCompoundCommand

        public ForwardUndoCompoundCommand​(java.lang.String label)
        Constructs a ForwardUndoCompoundCommand with the specified label
        Parameters:
        label - the label
    • Method Detail

      • undo

        public void undo()
        Undo the command. For a Preorder compound command this means undoing all of the commands that it contains. Do it in the same order as applied.
        Overrides:
        undo in class CompoundCommand
        See Also:
        Command.undo()