getChildCount

getChildren

Returns an unmodifiable list of all child tree nodes of the current tree node. Adding new children should be
done by the addChild(Object) method. Adding/inserting/removing elements is not supported on the list.

Returns:

An unmodifiable list of all child tree nodes of the current tree node.

getLevel

int getLevel()

Returns the level of the current tree node. The root node has level 0.

Returns:

The level of the current tree node.

getIndex

java.lang.String getIndex()

Returns the zero-based unique index of the current tree node. This is an underscore separated representation of
the position of the node in the tree hierarchy. The root node has index of null. The first child has
index 0. The second child of first child has index 0_1. The first child of second child of
third child has index 2_1_0.

Returns:

The unique index of the current tree node.

isRoot

boolean isRoot()

Returns whether the current tree node is the root node. That is, when it has no parent.

Returns:

true if the current tree node is the root node, otherwise false.

isLeaf

boolean isLeaf()

Returns whether the current tree node is a leaf node. That is, when it has no children.

Returns:

true if the current tree node is a leaf node, otherwise false.

isFirst

boolean isFirst()

Returns whether the current tree node is the first child of its parent, if any.

Returns:

true if the current tree node is the first child of its parent, otherwise false.

isLast

boolean isLast()

Returns whether the current tree node is the last child of its parent, if any.

Returns:

true if the current tree node is the last child of its parent, otherwise false.