Class InsertElementCommand

    • Field Detail

      • parent

        protected Node parent
      • element

        protected Node element
      • position

        protected Node position
    • Constructor Detail

      • InsertElementCommand

        public InsertElementCommand​(CommandManager commandManager,
                                    Node parent,
                                    Node position,
                                    Node element)
        Constructor
        Parameters:
        commandManager - - The command manager
        parent - - The parent node
        position - - The position
        element - - The new element
    • Method Detail

      • getElement

        public Element getElement()
        Get the element
        Returns:
        element - The element
      • getModifiedElement

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