public void addNode(TreeNode parent, final TreeNode nodeToAdd) {
        parent.addChild(nodeToAdd);
        if (parent.isExpanded()) {
            final TreeNode.BaseNodeViewHolder parentViewHolder = getViewHolderForNode(parent);
            addNode(parentViewHolder.getNodeItemsView(), nodeToAdd);
        }
    }
public void addNode ( TreeNode parent , final TreeNode nodeToAdd ) { parent . addChild ( nodeToAdd ) ; if ( parent . isExpanded ( ) ) { final TreeNode . BaseNodeViewHolder parentViewHolder = getViewHolderForNode ( parent ) ; addNode ( parentViewHolder . getNodeItemsView ( ) , nodeToAdd ) ; } }
Add / Remove