Class CompoundCommand

    • Field Detail

      • commands

        protected Command[] commands
    • Constructor Detail

      • CompoundCommand

        public CompoundCommand​(Command... commands)
    • Method Detail

      • getCommands

        public Command[] getCommands()
      • execute

        public void execute()
      • undo

        public void undo()
      • getModifiedElement

        public Element getModifiedElement()
        Returns:
        the modified element or its closest relative (sibling or parent) if the element is not displayed.