|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--TreeNode
Don't use the constructor, use the Tree.createNode routine instead.
Constructor Summary | |
TreeNode
(icon, tooltip, value, target)
|
Method Summary | |
function
|
appendChild(node)
Appends specified node to this node's children array. |
function
|
firstChild()
Returns the first child node of this node's children array. |
function
|
getAllChildren()
Returns an array containing all this node's children. |
function
|
hasChildren()
Returns true if this node has children. |
function
|
isLastSibling()
Returns true if this is the last node in the parent's children array. |
function
|
lastChild()
Returns the last child node of this node's children array. |
function
|
nextSibling()
Returns the next sibling of this node in the parent's children array |
function
|
removeChild(node)
Removes the specified node from this node's children array. |
<static> function
|
anchor(name, id)
Called when the user selects the node text. |
<static> function
|
collapseExpand(name, id)
Called when the user collapses or expands a tree node. |
<static> function
|
updateStatus(name, id)
|
<static> function
|
walk(node, array)
Fills an array that traverses the subtree rooted at the specified node in preorder. |
Constructor Detail |
function TreeNode(icon, tooltip, value, target)
Method Detail |
function appendChild(node)
node
- Node instance to append.
function firstChild()
function getAllChildren()
function hasChildren()
function isLastSibling()
function lastChild()
function nextSibling()
function removeChild(node)
node
- Node to remove.
<static> function anchor(name, id)
id
- Branch id.
name
- Name of the tree.
<static> function collapseExpand(name, id)
id
- Branch id.
name
- Name of the tree.
<static> function updateStatus(name, id)
<static> function walk(node, array)
array
- The array that will be filled with the traversed subtree.
node
- The subtree to traverse.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |