Class MoveTemplateCommand

  • All Implemented Interfaces:
    Command

    public class MoveTemplateCommand
    extends AbstractCommand
    A transaction command for inserting elements. The transaction supports optionally setting a position, repeatedly.
    • Constructor Detail

      • MoveTemplateCommand

        public MoveTemplateCommand​(Node parent,
                                   Node position,
                                   Node element)
    • Method Detail

      • 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.