Interface PositionAwareTreeController<T>

    • Method Detail

      • move

        void move​(Tree tree,
                  T node,
                  T target,
                  boolean addAsChild,
                  boolean append)
        Moves given node in place of 'target' node.
        Parameters:
        tree - after successful movement, tree will be notified to update itself
        node - to be moved
        target - node to be shifted. In place of this 'target' node the 'node' will be moved.
        addAsChild - flag indicating whether node should be added as a child or not.
        append - if true the element will be placed after (addAsChild false) or in the very end (addAsChild true)