| com.microstrategy.utils.MutableTreeNode<T> |
Known Indirect Subclasses
|
This interface extends the concept of a "generic" tree node GenericTreeNode by providing a set of methods that
change its contents. This includes changing the name and value, adding and
removing children.
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| abstract void |
add(MutableTreeNode<T> treeNode, int index)
Adds a node as a child of this node at a specified position.
| ||||||||||
| abstract void |
add(MutableTreeNode<T> treeNode)
Adds a node to the end of a list of children of this node.
| ||||||||||
| abstract void |
remove(MutableTreeNode<T> treeNode)
Removes a specific GenericTreeNode from the list of children.
| ||||||||||
| abstract MutableTreeNode<T> |
remove(int index)
Removes a child at a specific index.
| ||||||||||
| abstract void |
setName(String name)
Sets the name associated with this node.
| ||||||||||
| abstract void |
setValue(T value)
Sets the value associated with this node.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.microstrategy.utils.GenericTreeNode
| |||||||||||
Adds a node as a child of this node at a specified position.
| treeNode | The MutableTreeNode to add. |
|---|---|
| index | The position in the children list to add into. |
| IllegalArgumentException | If the 'treeNode' parameter is null or is an ancestor of this node. |
|---|---|
| ArrayIndexOutOfBoundsException | If the 'index' parameter is less than 0 or greater than the number of children currently in the list. |
Adds a node to the end of a list of children of this node. This is merely a shortcut to using the full version of this method #add(GenericTreeNode, int) See it for more details.
| treeNode | The MutableTreeNode to add. |
|---|
Removes a specific GenericTreeNode from the list of children.
| treeNode | The MutableTreeNode to remove. |
|---|
| IllegalArgumentException | If 'treeNode' is either null or NOT a child of this node. |
|---|
Removes a child at a specific index.
| index | The index of the child to remove. |
|---|
MutableTreeNode removed by this operation.| ArrayIndexOutOfBoundsException | If the index is less than 0 or greater than or equal to the number of children currently in the list. |
|---|
Sets the name associated with this node.
| name | The name to associate with this node. |
|---|
Sets the value associated with this node.
| value | The value to associate with this node. |
|---|