|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object | +--EntityNode
This class represents a tree node within the entity/indentity hierarchy.
Field Summary | |
<static> var |
collapsedNodeChildren
Flag to filter out children of collapsed tree nodes. |
<static> var |
expandedNodesWithChildren
Flag to filter out expanded nodes that have children (not leafs). |
<static> var |
nodesWithChildren
Flag to filter out nodes that have children (not leafs). |
Constructor Summary | |
EntityNode
(type, value, key)
|
Method Summary | |
function
|
appendChild(node)
Appends specified node to this node's children array. |
function
|
getLeafs(node)
Traverses the subtree rooted at the specified node to find all the leafs. |
function
|
hasChild(value)
Returns the first child node of this node's children array with the name that equals the specified value. |
<static> function
|
walk(node, filter, array)
Fills an array that traverses the subtree rooted at the specified node in preorder. |
Field Detail |
<static> var collapsedNodeChildren
<static> var expandedNodesWithChildren
<static> var nodesWithChildren
Constructor Detail |
function EntityNode(type, value, key)
Method Detail |
function appendChild(node)
node
- Node instance to append.
function getLeafs(node)
node
- The subtree to traverse.
function hasChild(value)
value
- Name of the node to retrieve.
<static> function walk(node, filter, array)
filter
- The array content depends on the filter flags set.
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 |