TreeNode Properties

 

Property Name Getter/Setter Class Description
attributes getter/setter Object The associate array of the node's attributes.
branch getter/setter Boolean Whether the node is a branch or not.
childNodes getter/setter Array The array of the node's TreeNode childNodes.
emptyIconGraphic getter/setter Class The class to use to draw the node's icon for a branch node with no child nodes.
firstChild getter TreeNode The first childNode of the node.
iconGraphic getter/setter Class The class to use to draw the node's icon.
index getter uint The position in the node's parent's childNodes array.
lastChild getter TreeNode The last childNode of the node.
nextSibling getter TreeNode The TreeNode after the node in the parent's childNodes array.
nodeGraphic getter/setter Class The class to use to draw the node's graphic, if any, behind the node label.
nodeLevel getter uint The depth level within the tree hierarchy where the node is located.
nodeName getter/setter String The name of the node which is used as the nodeName when the node is turned to XML.
nodeValue getter/setter String The value of the node which is used as the nodeValue when the node is turned to XML.
numChildren getter uint The number of childNodes in the node.
open getter/setter Boolean Whether a node is open or not. The AdvancedTree must be refreshed to see changes.
parentNode getter TreeNode The parent TreeNode of the node.
previousSibling getter TreeNode The TreeNode before the node in the parent's childNodes array.
selected getter Boolean Whether the node is selected in the tree.
siblings getter Array The other TreeNodes present in the parent's childNodes array.
styleFormat getter/setter StyleFormat The StyleFormat instance that should be applied to the node. If this value is undefined, the StyleFormat instance applied to the node level or tree will be used.
tree getter Tree A reference to the AdvancedTree instance displaying the node.