TreeNode.addNode

Overview | Methods | This Package | All Packages

TreeNode.addNode

Adds a child node to the node.

Syntax

public TreeNode addNode( String text )

public void addNode( TreeNode node )

Parameters

text

The text for the new child node.

node

A TreeNode object that represents the child node to add to the node.

Return Value

        Returns a TreeNode object that represents the new child node.

Remarks

The added child node is placed after existing child nodes. To add a set of child nodes at one time, use the setNodes method. To insert a child node into the node at a specific position, use the insertNode method.

See Also   removeNode