public class MXHierarchyNode
extends java.lang.Object
implements java.io.Serializable
| Constructor and Description |
|---|
MXHierarchyNode(MXNodeElement nodeElement,
MXHierarchyNode parent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(MXHierarchyNode child)
Add a child node
|
MXHierarchyNode |
getChild(int index)
Get child node at index
|
int |
getChildCount()
Get children count
|
java.lang.String |
getId()
Get the id of the node
|
MXNodeElement |
getNodeElement()
Get node element
|
MXHierarchyNode |
getParent()
Get parent node
|
MXHierarchyNode |
removeChild(int index)
Remove child node with node index
|
void |
removeChild(MXHierarchyNode child)
Remove child node
|
void |
removeChild(java.lang.String childId)
Remove child node with nodeid parameter
|
void |
reverseChildOrder()
Reverse child node order.
|
void |
setParent(MXHierarchyNode parent)
Set the parent node
|
public MXHierarchyNode(MXNodeElement nodeElement, MXHierarchyNode parent)
nodeElement - parent - public void setParent(MXHierarchyNode parent)
parent - public void addChild(MXHierarchyNode child)
child - public java.lang.String getId()
public int getChildCount()
public MXHierarchyNode getChild(int index)
index - public MXNodeElement getNodeElement()
public MXHierarchyNode getParent()
public void removeChild(MXHierarchyNode child)
child - nodepublic void removeChild(java.lang.String childId)
child - Idpublic MXHierarchyNode removeChild(int index)
index - public void reverseChildOrder()