| java.lang.Object | ||
| ↳ | com.microstrategy.utils.GenericTreeNodeImpl<T> | |
| ↳ | com.microstrategy.utils.MutableTreeNodeImpl<T> | |
This is a mutable (changeable) Tree Node.
|
[Expand]
Inherited Fields | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.GenericTreeNodeImpl
| |||||||||||
| Public Constructors | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
|
MutableTreeNodeImpl()
Creates a new MutableTreeNodeImpl object.
| |||||||||||
|
MutableTreeNodeImpl(String name)
Creates a new MutableTreeNodeImpl object.
| |||||||||||
|
MutableTreeNodeImpl(String name, T value)
Creates a new MutableTreeNodeImpl object.
| |||||||||||
| Public Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| void |
add(MutableTreeNode<T> treeNode, int index)
Adds a node as a child of this node at a specified position.
| ||||||||||
| void |
add(MutableTreeNode<T> treeNode)
Adds a node to the end of a list of children of this node.
| ||||||||||
| void |
remove(MutableTreeNode<T> treeNode)
Removes a specific GenericTreeNode from the list of children.
| ||||||||||
| MutableTreeNode<T> |
remove(int index)
Removes a child at a specific index.
| ||||||||||
| void |
setName(String name)
Sets the name associated with this node.
| ||||||||||
| void |
setValue(T value)
Sets the value associated with this node.
| ||||||||||
|
[Expand]
Inherited Methods | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
From class
com.microstrategy.utils.GenericTreeNodeImpl
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.microstrategy.utils.GenericTreeNode
| |||||||||||
From interface
com.microstrategy.utils.MutableTreeNode
| |||||||||||
Creates a new MutableTreeNodeImpl object. Both the name and value are left undefined.
Creates a new MutableTreeNodeImpl object. The name is defined here, but the value is not.
| name | The name of the node. |
|---|
Creates a new MutableTreeNodeImpl object. Both the name and value are specified.
| name | The name of the node. |
|---|---|
| value | The value of the node. |
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. |
| ArrayIndexOutOfBoundsException | |
|---|---|
| IllegalArgumentException |
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 |
|---|
Removes a child at a specific index.
| index | The index of the child to remove. |
|---|
MutableTreeNode removed by this operation.| ArrayIndexOutOfBoundsException |
|---|
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. |
|---|