Upgrade to ExtJS 4.0.0 - Released 04/26/2011
[extjs.git] / docs / api / Ext.data.NodeInterface.html
1 <!DOCTYPE html><html><head><title>Ext.data.NodeInterface | Ext JS 4.0 Documentation</title><script type="text/javascript" src="../ext-all.js"></script><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../scrollbars.css" type="text/css"><link rel="stylesheet" href="../docs.css" type="text/css"><link id="styleCss" rel="stylesheet" href="../style.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script><link rel="stylesheet" href="../prettify.css" type="text/css"><!-- link(rel: 'stylesheet', href: req.baseURL + '/css/ext4.css', type: 'text/css')--><link rel="shortcut icon" type="image/ico" href="../favicon.ico"><!--[if IE]>
2 <style type="text/css">.head-band { display: none; }
3 .header { border: 0; top: 0; left: 0px; background: url(../header.gif) repeat-x; }
4 .doc-tab .members .member a.more { background-color: #efefef; }
5 </style><link rel="stylesheet" href="/new/css/ie.css" type="text/css"><![endif]-->
6 </head><body id="ext-body" class="iScroll"><div id="notice" class="notice">For up to date documentation and features, visit 
7 <a href="http://docs.sencha.com/ext-js/4-0">http://docs.sencha.com/ext-js/4-0</a></div><div class="wrapper"><div class="head-band"></div><div class="header"><h2><a href="../index.html">Sencha Documentation</a></h2></div><div id="search"><form><input type="text" placeholder="Search" id="search-field" autocomplete="off" name="q"></form><div id="search-box"></div></div><div id="treePanel"></div><div id="container"><script type="text/javascript">
8
9     req = {
10         liveURL: '.',
11         standAloneMode: true,
12         origDocClass: 'Ext.data.NodeInterface',
13         docClass: 'Ext.data.NodeInterface',
14         docReq: 'Ext.data.NodeInterface',
15         version: '4.0',
16         baseURL: '.',
17         baseDocURL: '.',
18         baseProdURL: '.'
19     };
20
21     clsInfo = {};
22
23
24
25 </script>
26
27 <script type="text/javascript" src="../search.js"></script>
28 <!--script type="text/javascript" src="/new/javascripts/app/examples.js"></script-->
29 <script type="text/javascript" src="../class_tree.js"></script>
30 <script type="text/javascript" src="../class_doc.js"></script>
31 <script type="text/javascript">
32     req.source = 'NodeInterface.html#Ext-data.NodeInterface';
33     clsInfo = {"methods":["appendChild","bubble","cascadeBy","collapse","collapseChildren","contains","copy","createNode","decorate","destroy","eachChild","expand","expandChildren","findChild","findChildBy","getChildAt","getDepth","hasChildNodes","indexOf","insertBefore","insertChild","isAncestor","isExpandable","isExpanded","isFirst","isLast","isLeaf","isLoaded","isLoading","isRoot","isVisible","remove","removeAll","removeChild","replaceChild","sort","updateInfo"],"cfgs":[],"properties":[],"events":["append","beforeappend","beforecollapse","beforeexpand","beforeinsert","beforemove","beforeremove","collapse","expand","insert","move","remove"],"subclasses":[]};
34     Ext.onReady(function() {
35         Ext.create('Docs.classPanel');
36     });
37 </script><div id="top-block" class="top-block"><h1 id="clsTitle" class="cls"><a href="../source/NodeInterface.html#Ext-data.NodeInterface" target="_blank">Ext.data.NodeInterface</a></h1></div><div id="docContent"><div id="doc-overview-content"><div class="lft"><p>This class is meant to be used as a set of methods that are applied to the prototype of a
38 Record to decorate it with a Node API. This means that models used in conjunction with a tree
39 will have all of the tree related methods available on the model. In general this class will
40 not be used directly by the developer.</p>
41 <div class="members"><div class="m-methods"><a name="methods"></a><div class="definedBy">Defined By</div><h3 class="mth p">Methods</h3><div id="method-appendChild" class="member f ni"><a href="Ext.data.NodeInterface.html#method-appendChild" rel="method-appendChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-appendChild" class="viewSource">view source</a></div><a name="appendChild"></a><a name="method-appendChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-appendChild" class="cls expand">appendChild</a>(
42 <span class="pre">Node/Array node, Object suppressEvents, Object suppressNodeUpdate</span>)
43  : Node</div><div class="description"><div class="short">Insert node(s) as the last child node of this node.
44
45
46 If the node was previously a child node of another parent node,...</div><div class="long"><p>Insert node(s) as the last child node of this node.</p>
47
48
49 <p>If the node was previously a child node of another parent node, it will be removed from that node first.</p>
50
51 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node/Array<div class="sub-desc"><p>The node or Array of nodes to append</p>
52 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
53 </div></li><li><span class="pre">suppressNodeUpdate</span> : Object<div class="sub-desc">
54 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The appended node if single append, or null if an array was passed</p>
55 </li></ul></div></div></div><div id="method-bubble" class="member ni"><a href="Ext.data.NodeInterface.html#method-bubble" rel="method-bubble" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-bubble" class="viewSource">view source</a></div><a name="bubble"></a><a name="method-bubble"></a><a href="Ext.data.NodeInterface.html#" rel="method-bubble" class="cls expand">bubble</a>(
56 <span class="pre">Function fn, [Object scope], [Array args]</span>)
57  : void</div><div class="description"><div class="short">Bubbles up the tree from this node, calling the specified function with each node. The arguments to the function
58 will...</div><div class="long"><p>Bubbles up the tree from this node, calling the specified function with each node. The arguments to the function
59 will be the args provided or the current node. If the function returns false at any point,
60 the bubble is stopped.</p>
61 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call</p>
62 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the current Node.</p>
63 </div></li><li><span class="pre">args</span> : Array<div class="sub-desc"><p>(optional) The args to call the function with (default to passing the current Node)</p>
64 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
65 </li></ul></div></div></div><div id="method-cascadeBy" class="member ni"><a href="Ext.data.NodeInterface.html#method-cascadeBy" rel="method-cascadeBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-cascadeBy" class="viewSource">view source</a></div><a name="cascadeBy"></a><a name="method-cascadeBy"></a><a href="Ext.data.NodeInterface.html#" rel="method-cascadeBy" class="cls expand">cascadeBy</a>(
66 <span class="pre">Function fn, [Object scope], [Array args]</span>)
67  : void</div><div class="description"><div class="short">Cascades down the tree from this node, calling the specified function with each node. The arguments to the function
68 w...</div><div class="long"><p>Cascades down the tree from this node, calling the specified function with each node. The arguments to the function
69 will be the args provided or the current node. If the function returns false at any point,
70 the cascade is stopped on that branch.</p>
71 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call</p>
72 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the current Node.</p>
73 </div></li><li><span class="pre">args</span> : Array<div class="sub-desc"><p>(optional) The args to call the function with (default to passing the current Node)</p>
74 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
75 </li></ul></div></div></div><div id="method-collapse" class="member ni"><a href="Ext.data.NodeInterface.html#method-collapse" rel="method-collapse" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-collapse" class="viewSource">view source</a></div><a name="collapse"></a><a name="method-collapse"></a><a href="Ext.data.NodeInterface.html#" rel="method-collapse" class="cls expand">collapse</a>(
76 <span class="pre">Function recursive, Function callback, Object scope</span>)
77  : void</div><div class="description"><div class="short"><p>Collapse this node.</p>
78 </div><div class="long"><p>Collapse this node.</p>
79 <h3 class="pa">Parameters</h3><ul><li><span class="pre">recursive</span> : Function<div class="sub-desc"><p>(Optional) True to recursively collapse all the children</p>
80 </div></li><li><span class="pre">callback</span> : Function<div class="sub-desc"><p>(Optional) The function to execute once the collapse completes</p>
81 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(Optional) The scope to run the callback in</p>
82 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
83 </li></ul></div></div></div><div id="method-collapseChildren" class="member ni"><a href="Ext.data.NodeInterface.html#method-collapseChildren" rel="method-collapseChildren" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-collapseChildren" class="viewSource">view source</a></div><a name="collapseChildren"></a><a name="method-collapseChildren"></a><a href="Ext.data.NodeInterface.html#" rel="method-collapseChildren" class="cls expand">collapseChildren</a>(
84 <span class="pre">Function recursive, Function callback, Object scope</span>)
85  : void</div><div class="description"><div class="short"><p>Collapse all the children of this node.</p>
86 </div><div class="long"><p>Collapse all the children of this node.</p>
87 <h3 class="pa">Parameters</h3><ul><li><span class="pre">recursive</span> : Function<div class="sub-desc"><p>(Optional) True to recursively collapse all the children</p>
88 </div></li><li><span class="pre">callback</span> : Function<div class="sub-desc"><p>(Optional) The function to execute once all the children are collapsed</p>
89 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(Optional) The scope to run the callback in</p>
90 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
91 </li></ul></div></div></div><div id="method-contains" class="member ni"><a href="Ext.data.NodeInterface.html#method-contains" rel="method-contains" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-contains" class="viewSource">view source</a></div><a name="contains"></a><a name="method-contains"></a><a href="Ext.data.NodeInterface.html#" rel="method-contains" class="cls expand">contains</a>(
92 <span class="pre">Node node</span>)
93  : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is an ancestor (at any point) of the passed node.</p>
94 </div><div class="long"><p>Returns true if this node is an ancestor (at any point) of the passed node.</p>
95 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc">
96 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
97 </li></ul></div></div></div><div id="method-copy" class="member ni"><a href="Ext.data.NodeInterface.html#method-copy" rel="method-copy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-copy" class="viewSource">view source</a></div><a name="copy"></a><a name="method-copy"></a><a href="Ext.data.NodeInterface.html#" rel="method-copy" class="cls expand">copy</a>(
98 <span class="pre">[String id], [Boolean deep]</span>)
99  : Node</div><div class="description"><div class="short"><p>Creates a copy (clone) of this Node.</p>
100 </div><div class="long"><p>Creates a copy (clone) of this Node.</p>
101 <h3 class="pa">Parameters</h3><ul><li><span class="pre">id</span> : String<div class="sub-desc"><p>(optional) A new id, defaults to this Node's id. See <code><a href="Ext.data.NodeInterface.html#id" rel="Ext.data.NodeInterface#id" class="docClass">id</a></code>.</p>
102 </div></li><li><span class="pre">deep</span> : Boolean<div class="sub-desc"><p>(optional) <p>If passed as <code>true</code>, all child Nodes are recursively copied into the new Node.</p></p>
103
104 <p>If omitted or false, the copy will have no child Nodes.</p>
105
106 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>A copy of this Node.</p>
107 </li></ul></div></div></div><div id="method-createNode" class="member ni"><a href="Ext.data.NodeInterface.html#method-createNode" rel="method-createNode" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-createNode" class="viewSource">view source</a></div><a name="createNode"></a><a name="method-createNode"></a><a href="Ext.data.NodeInterface.html#" rel="method-createNode" class="cls expand">createNode</a>(
108 <span class="pre">Object node</span>)
109  : Boolean</div><div class="description"><div class="short"><p>Ensures that the passed object is an instance of a Record with the NodeInterface applied</p>
110 </div><div class="long"><p>Ensures that the passed object is an instance of a Record with the NodeInterface applied</p>
111 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Object<div class="sub-desc">
112 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
113 </li></ul></div></div></div><div id="method-decorate" class="member ni"><a href="Ext.data.NodeInterface.html#method-decorate" rel="method-decorate" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-decorate" class="viewSource">view source</a></div><a name="decorate"></a><a name="method-decorate"></a><a href="Ext.data.NodeInterface.html#" rel="method-decorate" class="cls expand">decorate</a>(
114 <span class="pre">Ext.data.Record record</span>)
115  : void</div><div class="description"><div class="short">This method allows you to decorate a Record's prototype to implement the NodeInterface.
116 This adds a set of methods, n...</div><div class="long"><p>This method allows you to decorate a Record's prototype to implement the NodeInterface.
117 This adds a set of methods, new events, new properties and new fields on every Record
118 with the same Model as the passed Record.</p>
119 <h3 class="pa">Parameters</h3><ul><li><span class="pre">record</span> : Ext.data.Record<div class="sub-desc"><p>The Record you want to decorate the prototype of.</p>
120 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
121 </li></ul></div></div></div><div id="method-destroy" class="member ni"><a href="Ext.data.NodeInterface.html#method-destroy" rel="method-destroy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-destroy" class="viewSource">view source</a></div><a name="destroy"></a><a name="method-destroy"></a><a href="Ext.data.NodeInterface.html#" rel="method-destroy" class="cls expand">destroy</a>(
122 <span class="pre">Object silent</span>)
123  : void</div><div class="description"><div class="short"><p>Destroys the node.</p>
124 </div><div class="long"><p>Destroys the node.</p>
125 <h3 class="pa">Parameters</h3><ul><li><span class="pre">silent</span> : Object<div class="sub-desc">
126 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
127 </li></ul></div></div></div><div id="method-eachChild" class="member ni"><a href="Ext.data.NodeInterface.html#method-eachChild" rel="method-eachChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-eachChild" class="viewSource">view source</a></div><a name="eachChild"></a><a name="method-eachChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-eachChild" class="cls expand">eachChild</a>(
128 <span class="pre">Function fn, [Object scope], [Array args]</span>)
129  : void</div><div class="description"><div class="short">Interates the child nodes of this node, calling the specified function with each node. The arguments to the function
130 ...</div><div class="long"><p>Interates the child nodes of this node, calling the specified function with each node. The arguments to the function
131 will be the args provided or the current node. If the function returns false at any point,
132 the iteration stops.</p>
133 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>The function to call</p>
134 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the current Node in the iteration.</p>
135 </div></li><li><span class="pre">args</span> : Array<div class="sub-desc"><p>(optional) The args to call the function with (default to passing the current Node)</p>
136 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
137 </li></ul></div></div></div><div id="method-expand" class="member ni"><a href="Ext.data.NodeInterface.html#method-expand" rel="method-expand" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-expand" class="viewSource">view source</a></div><a name="expand"></a><a name="method-expand"></a><a href="Ext.data.NodeInterface.html#" rel="method-expand" class="cls expand">expand</a>(
138 <span class="pre">Function recursive, Function callback, Object scope</span>)
139  : void</div><div class="description"><div class="short"><p>Expand this node.</p>
140 </div><div class="long"><p>Expand this node.</p>
141 <h3 class="pa">Parameters</h3><ul><li><span class="pre">recursive</span> : Function<div class="sub-desc"><p>(Optional) True to recursively expand all the children</p>
142 </div></li><li><span class="pre">callback</span> : Function<div class="sub-desc"><p>(Optional) The function to execute once the expand completes</p>
143 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(Optional) The scope to run the callback in</p>
144 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
145 </li></ul></div></div></div><div id="method-expandChildren" class="member ni"><a href="Ext.data.NodeInterface.html#method-expandChildren" rel="method-expandChildren" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-expandChildren" class="viewSource">view source</a></div><a name="expandChildren"></a><a name="method-expandChildren"></a><a href="Ext.data.NodeInterface.html#" rel="method-expandChildren" class="cls expand">expandChildren</a>(
146 <span class="pre">Function recursive, Function callback, Object scope</span>)
147  : void</div><div class="description"><div class="short"><p>Expand all the children of this node.</p>
148 </div><div class="long"><p>Expand all the children of this node.</p>
149 <h3 class="pa">Parameters</h3><ul><li><span class="pre">recursive</span> : Function<div class="sub-desc"><p>(Optional) True to recursively expand all the children</p>
150 </div></li><li><span class="pre">callback</span> : Function<div class="sub-desc"><p>(Optional) The function to execute once all the children are expanded</p>
151 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(Optional) The scope to run the callback in</p>
152 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
153 </li></ul></div></div></div><div id="method-findChild" class="member ni"><a href="Ext.data.NodeInterface.html#method-findChild" rel="method-findChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-findChild" class="viewSource">view source</a></div><a name="findChild"></a><a name="method-findChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-findChild" class="cls expand">findChild</a>(
154 <span class="pre">String attribute, Mixed value, Boolean deep</span>)
155  : Node</div><div class="description"><div class="short"><p>Finds the first child that has the attribute with the specified value.</p>
156 </div><div class="long"><p>Finds the first child that has the attribute with the specified value.</p>
157 <h3 class="pa">Parameters</h3><ul><li><span class="pre">attribute</span> : String<div class="sub-desc"><p>The attribute name</p>
158 </div></li><li><span class="pre">value</span> : Mixed<div class="sub-desc"><p>The value to search for</p>
159 </div></li><li><span class="pre">deep</span> : Boolean<div class="sub-desc"><p>(Optional) True to search through nodes deeper than the immediate children</p>
160 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The found child or null if none was found</p>
161 </li></ul></div></div></div><div id="method-findChildBy" class="member ni"><a href="Ext.data.NodeInterface.html#method-findChildBy" rel="method-findChildBy" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-findChildBy" class="viewSource">view source</a></div><a name="findChildBy"></a><a name="method-findChildBy"></a><a href="Ext.data.NodeInterface.html#" rel="method-findChildBy" class="cls expand">findChildBy</a>(
162 <span class="pre">Function fn, [Object scope], Boolean deep</span>)
163  : Node</div><div class="description"><div class="short"><p>Finds the first child by a custom function. The child matches if the function passed returns <code>true</code>.</p>
164 </div><div class="long"><p>Finds the first child by a custom function. The child matches if the function passed returns <code>true</code>.</p>
165 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>A function which must return <code>true</code> if the passed Node is the required Node.</p>
166 </div></li><li><span class="pre">scope</span> : Object<div class="sub-desc"><p>(optional) The scope (<code>this</code> reference) in which the function is executed. Defaults to the Node being tested.</p>
167 </div></li><li><span class="pre">deep</span> : Boolean<div class="sub-desc"><p>(Optional) True to search through nodes deeper than the immediate children</p>
168 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The found child or null if none was found</p>
169 </li></ul></div></div></div><div id="method-getChildAt" class="member ni"><a href="Ext.data.NodeInterface.html#method-getChildAt" rel="method-getChildAt" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-getChildAt" class="viewSource">view source</a></div><a name="getChildAt"></a><a name="method-getChildAt"></a><a href="Ext.data.NodeInterface.html#" rel="method-getChildAt" class="cls expand">getChildAt</a>(
170 <span class="pre">Number index</span>)
171  : Node</div><div class="description"><div class="short"><p>Returns the child node at the specified index.</p>
172 </div><div class="long"><p>Returns the child node at the specified index.</p>
173 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc">
174 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;
175 </li></ul></div></div></div><div id="method-getDepth" class="member ni"><a href="Ext.data.NodeInterface.html#method-getDepth" rel="method-getDepth" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-getDepth" class="viewSource">view source</a></div><a name="getDepth"></a><a name="method-getDepth"></a><a href="Ext.data.NodeInterface.html#" rel="method-getDepth" class="cls expand">getDepth</a> : Number</div><div class="description"><div class="short"><p>Returns depth of this node (the root node has a depth of 0)</p>
176 </div><div class="long"><p>Returns depth of this node (the root node has a depth of 0)</p>
177 <h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;
178 </li></ul></div></div></div><div id="method-hasChildNodes" class="member ni"><a href="Ext.data.NodeInterface.html#method-hasChildNodes" rel="method-hasChildNodes" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-hasChildNodes" class="viewSource">view source</a></div><a name="hasChildNodes"></a><a name="method-hasChildNodes"></a><a href="Ext.data.NodeInterface.html#" rel="method-hasChildNodes" class="cls expand">hasChildNodes</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node has one or more child nodes, else false.</p>
179 </div><div class="long"><p>Returns true if this node has one or more child nodes, else false.</p>
180 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
181 </li></ul></div></div></div><div id="method-indexOf" class="member ni"><a href="Ext.data.NodeInterface.html#method-indexOf" rel="method-indexOf" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-indexOf" class="viewSource">view source</a></div><a name="indexOf"></a><a name="method-indexOf"></a><a href="Ext.data.NodeInterface.html#" rel="method-indexOf" class="cls expand">indexOf</a>(
182 <span class="pre">Node node</span>)
183  : Number</div><div class="description"><div class="short"><p>Returns the index of a child node</p>
184 </div><div class="long"><p>Returns the index of a child node</p>
185 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc">
186 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Number</span>&nbsp; &nbsp;<p>The index of the node or -1 if it was not found</p>
187 </li></ul></div></div></div><div id="method-insertBefore" class="member ni"><a href="Ext.data.NodeInterface.html#method-insertBefore" rel="method-insertBefore" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-insertBefore" class="viewSource">view source</a></div><a name="insertBefore"></a><a name="method-insertBefore"></a><a href="Ext.data.NodeInterface.html#" rel="method-insertBefore" class="cls expand">insertBefore</a>(
188 <span class="pre">Node node, Node refNode, Object suppressEvents</span>)
189  : Node</div><div class="description"><div class="short"><p>Inserts the first node before the second node in this nodes childNodes collection.</p>
190 </div><div class="long"><p>Inserts the first node before the second node in this nodes childNodes collection.</p>
191 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The node to insert</p>
192 </div></li><li><span class="pre">refNode</span> : Node<div class="sub-desc"><p>The node to insert before (if null the node is appended)</p>
193 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
194 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The inserted node</p>
195 </li></ul></div></div></div><div id="method-insertChild" class="member ni"><a href="Ext.data.NodeInterface.html#method-insertChild" rel="method-insertChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-insertChild" class="viewSource">view source</a></div><a name="insertChild"></a><a name="method-insertChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-insertChild" class="cls expand">insertChild</a>(
196 <span class="pre">Number index, Ext.data.Model node</span>)
197  : Ext.data.Record</div><div class="description"><div class="short"><p>Insert a node into this node</p>
198 </div><div class="long"><p>Insert a node into this node</p>
199 <h3 class="pa">Parameters</h3><ul><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The zero-based index to insert the node at</p>
200 </div></li><li><span class="pre">node</span> : Ext.data.Model<div class="sub-desc"><p>The node to insert</p>
201 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Ext.data.Record</span>&nbsp; &nbsp;<p>The record you just inserted</p>
202 </li></ul></div></div></div><div id="method-isAncestor" class="member ni"><a href="Ext.data.NodeInterface.html#method-isAncestor" rel="method-isAncestor" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isAncestor" class="viewSource">view source</a></div><a name="isAncestor"></a><a name="method-isAncestor"></a><a href="Ext.data.NodeInterface.html#" rel="method-isAncestor" class="cls expand">isAncestor</a>(
203 <span class="pre">Node node</span>)
204  : Boolean</div><div class="description"><div class="short"><p>Returns true if the passed node is an ancestor (at any point) of this node.</p>
205 </div><div class="long"><p>Returns true if the passed node is an ancestor (at any point) of this node.</p>
206 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc">
207 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
208 </li></ul></div></div></div><div id="method-isExpandable" class="member ni"><a href="Ext.data.NodeInterface.html#method-isExpandable" rel="method-isExpandable" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isExpandable" class="viewSource">view source</a></div><a name="isExpandable"></a><a name="method-isExpandable"></a><a href="Ext.data.NodeInterface.html#" rel="method-isExpandable" class="cls expand">isExpandable</a> : Boolean</div><div class="description"><div class="short">Returns true if this node has one or more child nodes, or if the expandable
209 node attribute is explicitly specified as...</div><div class="long"><p>Returns true if this node has one or more child nodes, or if the <tt>expandable</tt>
210 node attribute is explicitly specified as true (see <a href="Ext.data.NodeInterface.html#attributes" rel="Ext.data.NodeInterface#attributes" class="docClass">attributes</a>), otherwise returns false.</p>
211 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
212 </li></ul></div></div></div><div id="method-isExpanded" class="member ni"><a href="Ext.data.NodeInterface.html#method-isExpanded" rel="method-isExpanded" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isExpanded" class="viewSource">view source</a></div><a name="isExpanded"></a><a name="method-isExpanded"></a><a href="Ext.data.NodeInterface.html#" rel="method-isExpanded" class="cls expand">isExpanded</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is expaned</p>
213 </div><div class="long"><p>Returns true if this node is expaned</p>
214 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
215 </li></ul></div></div></div><div id="method-isFirst" class="member ni"><a href="Ext.data.NodeInterface.html#method-isFirst" rel="method-isFirst" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isFirst" class="viewSource">view source</a></div><a name="isFirst"></a><a name="method-isFirst"></a><a href="Ext.data.NodeInterface.html#" rel="method-isFirst" class="cls expand">isFirst</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is the first child of its parent</p>
216 </div><div class="long"><p>Returns true if this node is the first child of its parent</p>
217 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
218 </li></ul></div></div></div><div id="method-isLast" class="member ni"><a href="Ext.data.NodeInterface.html#method-isLast" rel="method-isLast" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isLast" class="viewSource">view source</a></div><a name="isLast"></a><a name="method-isLast"></a><a href="Ext.data.NodeInterface.html#" rel="method-isLast" class="cls expand">isLast</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is the last child of its parent</p>
219 </div><div class="long"><p>Returns true if this node is the last child of its parent</p>
220 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
221 </li></ul></div></div></div><div id="method-isLeaf" class="member ni"><a href="Ext.data.NodeInterface.html#method-isLeaf" rel="method-isLeaf" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isLeaf" class="viewSource">view source</a></div><a name="isLeaf"></a><a name="method-isLeaf"></a><a href="Ext.data.NodeInterface.html#" rel="method-isLeaf" class="cls expand">isLeaf</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is a leaf</p>
222 </div><div class="long"><p>Returns true if this node is a leaf</p>
223 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
224 </li></ul></div></div></div><div id="method-isLoaded" class="member ni"><a href="Ext.data.NodeInterface.html#method-isLoaded" rel="method-isLoaded" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isLoaded" class="viewSource">view source</a></div><a name="isLoaded"></a><a name="method-isLoaded"></a><a href="Ext.data.NodeInterface.html#" rel="method-isLoaded" class="cls expand">isLoaded</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is loaded</p>
225 </div><div class="long"><p>Returns true if this node is loaded</p>
226 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
227 </li></ul></div></div></div><div id="method-isLoading" class="member ni"><a href="Ext.data.NodeInterface.html#method-isLoading" rel="method-isLoading" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isLoading" class="viewSource">view source</a></div><a name="isLoading"></a><a name="method-isLoading"></a><a href="Ext.data.NodeInterface.html#" rel="method-isLoading" class="cls expand">isLoading</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is loading</p>
228 </div><div class="long"><p>Returns true if this node is loading</p>
229 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
230 </li></ul></div></div></div><div id="method-isRoot" class="member ni"><a href="Ext.data.NodeInterface.html#method-isRoot" rel="method-isRoot" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isRoot" class="viewSource">view source</a></div><a name="isRoot"></a><a name="method-isRoot"></a><a href="Ext.data.NodeInterface.html#" rel="method-isRoot" class="cls expand">isRoot</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is the root node</p>
231 </div><div class="long"><p>Returns true if this node is the root node</p>
232 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
233 </li></ul></div></div></div><div id="method-isVisible" class="member ni"><a href="Ext.data.NodeInterface.html#method-isVisible" rel="method-isVisible" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-isVisible" class="viewSource">view source</a></div><a name="isVisible"></a><a name="method-isVisible"></a><a href="Ext.data.NodeInterface.html#" rel="method-isVisible" class="cls expand">isVisible</a> : Boolean</div><div class="description"><div class="short"><p>Returns true if this node is visible</p>
234 </div><div class="long"><p>Returns true if this node is visible</p>
235 <h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
236 </li></ul></div></div></div><div id="method-remove" class="member ni"><a href="Ext.data.NodeInterface.html#method-remove" rel="method-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="method-remove"></a><a href="Ext.data.NodeInterface.html#" rel="method-remove" class="cls expand">remove</a>(
237 <span class="pre">Boolean destroy, Object suppressEvents</span>)
238  : Node</div><div class="description"><div class="short"><p>Removes this node from its parent</p>
239 </div><div class="long"><p>Removes this node from its parent</p>
240 <h3 class="pa">Parameters</h3><ul><li><span class="pre">destroy</span> : Boolean<div class="sub-desc"><p><tt>true</tt> to destroy the node upon removal. Defaults to <tt>false</tt>.</p>
241 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
242 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>this</p>
243 </li></ul></div></div></div><div id="method-removeAll" class="member ni"><a href="Ext.data.NodeInterface.html#method-removeAll" rel="method-removeAll" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-removeAll" class="viewSource">view source</a></div><a name="removeAll"></a><a name="method-removeAll"></a><a href="Ext.data.NodeInterface.html#" rel="method-removeAll" class="cls expand">removeAll</a>(
244 <span class="pre">Boolean destroy, Object suppressEvents</span>)
245  : Node</div><div class="description"><div class="short"><p>Removes all child nodes from this node.</p>
246 </div><div class="long"><p>Removes all child nodes from this node.</p>
247 <h3 class="pa">Parameters</h3><ul><li><span class="pre">destroy</span> : Boolean<div class="sub-desc"><p><tt>true</tt> to destroy the node upon removal. Defaults to <tt>false</tt>.</p>
248 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
249 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>this</p>
250 </li></ul></div></div></div><div id="method-removeChild" class="member ni"><a href="Ext.data.NodeInterface.html#method-removeChild" rel="method-removeChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-removeChild" class="viewSource">view source</a></div><a name="removeChild"></a><a name="method-removeChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-removeChild" class="cls expand">removeChild</a>(
251 <span class="pre">Node node, Boolean destroy, Object suppressEvents, Object suppressNodeUpdate</span>)
252  : Node</div><div class="description"><div class="short"><p>Removes a child node from this node.</p>
253 </div><div class="long"><p>Removes a child node from this node.</p>
254 <h3 class="pa">Parameters</h3><ul><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The node to remove</p>
255 </div></li><li><span class="pre">destroy</span> : Boolean<div class="sub-desc"><p><tt>true</tt> to destroy the node upon removal. Defaults to <tt>false</tt>.</p>
256 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
257 </div></li><li><span class="pre">suppressNodeUpdate</span> : Object<div class="sub-desc">
258 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The removed node</p>
259 </li></ul></div></div></div><div id="method-replaceChild" class="member ni"><a href="Ext.data.NodeInterface.html#method-replaceChild" rel="method-replaceChild" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-replaceChild" class="viewSource">view source</a></div><a name="replaceChild"></a><a name="method-replaceChild"></a><a href="Ext.data.NodeInterface.html#" rel="method-replaceChild" class="cls expand">replaceChild</a>(
260 <span class="pre">Node newChild, Node oldChild, Object suppressEvents</span>)
261  : Node</div><div class="description"><div class="short"><p>Replaces one child node in this node with another.</p>
262 </div><div class="long"><p>Replaces one child node in this node with another.</p>
263 <h3 class="pa">Parameters</h3><ul><li><span class="pre">newChild</span> : Node<div class="sub-desc"><p>The replacement node</p>
264 </div></li><li><span class="pre">oldChild</span> : Node<div class="sub-desc"><p>The node to replace</p>
265 </div></li><li><span class="pre">suppressEvents</span> : Object<div class="sub-desc">
266 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Node</span>&nbsp; &nbsp;<p>The replaced node</p>
267 </li></ul></div></div></div><div id="method-sort" class="member ni"><a href="Ext.data.NodeInterface.html#method-sort" rel="method-sort" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-sort" class="viewSource">view source</a></div><a name="sort"></a><a name="method-sort"></a><a href="Ext.data.NodeInterface.html#" rel="method-sort" class="cls expand">sort</a>(
268 <span class="pre">Function fn, Boolean recursive, Boolean suppressEvent</span>)
269  : void</div><div class="description"><div class="short"><p>Sorts this nodes children using the supplied sort function.</p>
270 </div><div class="long"><p>Sorts this nodes children using the supplied sort function.</p>
271 <h3 class="pa">Parameters</h3><ul><li><span class="pre">fn</span> : Function<div class="sub-desc"><p>A function which, when passed two Nodes, returns -1, 0 or 1 depending upon required sort order.</p>
272 </div></li><li><span class="pre">recursive</span> : Boolean<div class="sub-desc"><p>Whether or not to apply this sort recursively</p>
273 </div></li><li><span class="pre">suppressEvent</span> : Boolean<div class="sub-desc"><p>Set to true to not fire a sort event.</p>
274 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">void</span>&nbsp; &nbsp;
275 </li></ul></div></div></div><div id="method-updateInfo" class="member ni"><a href="Ext.data.NodeInterface.html#method-updateInfo" rel="method-updateInfo" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-method-updateInfo" class="viewSource">view source</a></div><a name="updateInfo"></a><a name="method-updateInfo"></a><a href="Ext.data.NodeInterface.html#" rel="method-updateInfo" class="cls expand">updateInfo</a>(
276 <span class="pre">Object silent</span>)
277  : Boolean</div><div class="description"><div class="short">Updates general data of this node like isFirst, isLast, depth. This
278 method is internally called after a node is moved...</div><div class="long"><p>Updates general data of this node like isFirst, isLast, depth. This
279 method is internally called after a node is moved. This shouldn't
280 have to be called by the developer unless they are creating custom
281 Tree plugins.</p>
282 <h3 class="pa">Parameters</h3><ul><li><span class="pre">silent</span> : Object<div class="sub-desc">
283 </div></li></ul><h3 class="pa">Returns</h3><ul><li><span class="pre">Boolean</span>&nbsp; &nbsp;
284 </li></ul></div></div></div></div><div class="m-events"><a name="events"></a><div class="definedBy">Defined By</div><h3 class="evt p">Events</h3><div id="event-append" class="member f ni"><a href="Ext.data.NodeInterface.html#event-append" rel="event-append" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-append" class="viewSource">view source</a></div><a name="append"></a><a name="event-append"></a><a href="Ext.data.NodeInterface.html#" rel="event-append" class="cls expand">append</a>(
285 <span class="pre">Node this, Node node, Number index</span>)
286 </div><div class="description"><div class="short"><p>Fires when a new child node is appended</p>
287 </div><div class="long"><p>Fires when a new child node is appended</p>
288 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
289 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The newly appended node</p>
290 </div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index of the newly appended node</p>
291 </div></li></ul></div></div></div><div id="event-beforeappend" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforeappend" rel="event-beforeappend" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforeappend" class="viewSource">view source</a></div><a name="beforeappend"></a><a name="event-beforeappend"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforeappend" class="cls expand">beforeappend</a>(
292 <span class="pre">Node this, Node node</span>)
293 </div><div class="description"><div class="short"><p>Fires before a new child is appended, return false to cancel the append.</p>
294 </div><div class="long"><p>Fires before a new child is appended, return false to cancel the append.</p>
295 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
296 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be appended</p>
297 </div></li></ul></div></div></div><div id="event-beforecollapse" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforecollapse" rel="event-beforecollapse" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforecollapse" class="viewSource">view source</a></div><a name="beforecollapse"></a><a name="event-beforecollapse"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforecollapse" class="cls expand">beforecollapse</a>(
298 <span class="pre">Node this</span>)
299 </div><div class="description"><div class="short"><p>Fires before this node is collapsed.</p>
300 </div><div class="long"><p>Fires before this node is collapsed.</p>
301 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The collapsing node</p>
302 </div></li></ul></div></div></div><div id="event-beforeexpand" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforeexpand" rel="event-beforeexpand" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforeexpand" class="viewSource">view source</a></div><a name="beforeexpand"></a><a name="event-beforeexpand"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforeexpand" class="cls expand">beforeexpand</a>(
303 <span class="pre">Node this</span>)
304 </div><div class="description"><div class="short"><p>Fires before this node is expanded.</p>
305 </div><div class="long"><p>Fires before this node is expanded.</p>
306 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The expanding node</p>
307 </div></li></ul></div></div></div><div id="event-beforeinsert" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforeinsert" rel="event-beforeinsert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforeinsert" class="viewSource">view source</a></div><a name="beforeinsert"></a><a name="event-beforeinsert"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforeinsert" class="cls expand">beforeinsert</a>(
308 <span class="pre">Node this, Node node, Node refNode</span>)
309 </div><div class="description"><div class="short"><p>Fires before a new child is inserted, return false to cancel the insert.</p>
310 </div><div class="long"><p>Fires before a new child is inserted, return false to cancel the insert.</p>
311 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
312 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be inserted</p>
313 </div></li><li><span class="pre">refNode</span> : Node<div class="sub-desc"><p>The child node the node is being inserted before</p>
314 </div></li></ul></div></div></div><div id="event-beforemove" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforemove" rel="event-beforemove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforemove" class="viewSource">view source</a></div><a name="beforemove"></a><a name="event-beforemove"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforemove" class="cls expand">beforemove</a>(
315 <span class="pre">Node this, Node oldParent, Node newParent, Number index</span>)
316 </div><div class="description"><div class="short"><p>Fires before this node is moved to a new location in the tree. Return false to cancel the move.</p>
317 </div><div class="long"><p>Fires before this node is moved to a new location in the tree. Return false to cancel the move.</p>
318 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
319 </div></li><li><span class="pre">oldParent</span> : Node<div class="sub-desc"><p>The parent of this node</p>
320 </div></li><li><span class="pre">newParent</span> : Node<div class="sub-desc"><p>The new parent this node is moving to</p>
321 </div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index it is being moved to</p>
322 </div></li></ul></div></div></div><div id="event-beforeremove" class="member ni"><a href="Ext.data.NodeInterface.html#event-beforeremove" rel="event-beforeremove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-beforeremove" class="viewSource">view source</a></div><a name="beforeremove"></a><a name="event-beforeremove"></a><a href="Ext.data.NodeInterface.html#" rel="event-beforeremove" class="cls expand">beforeremove</a>(
323 <span class="pre">Node this, Node node</span>)
324 </div><div class="description"><div class="short"><p>Fires before a child is removed, return false to cancel the remove.</p>
325 </div><div class="long"><p>Fires before a child is removed, return false to cancel the remove.</p>
326 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
327 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node to be removed</p>
328 </div></li></ul></div></div></div><div id="event-collapse" class="member ni"><a href="Ext.data.NodeInterface.html#event-collapse" rel="event-collapse" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-collapse" class="viewSource">view source</a></div><a name="collapse"></a><a name="event-collapse"></a><a href="Ext.data.NodeInterface.html#" rel="event-collapse" class="cls expand">collapse</a>(
329 <span class="pre">Node this</span>)
330 </div><div class="description"><div class="short"><p>Fires when this node is collapsed.</p>
331 </div><div class="long"><p>Fires when this node is collapsed.</p>
332 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The collapsing node</p>
333 </div></li></ul></div></div></div><div id="event-expand" class="member ni"><a href="Ext.data.NodeInterface.html#event-expand" rel="event-expand" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-expand" class="viewSource">view source</a></div><a name="expand"></a><a name="event-expand"></a><a href="Ext.data.NodeInterface.html#" rel="event-expand" class="cls expand">expand</a>(
334 <span class="pre">Node this</span>)
335 </div><div class="description"><div class="short"><p>Fires when this node is expanded.</p>
336 </div><div class="long"><p>Fires when this node is expanded.</p>
337 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>The expanding node</p>
338 </div></li></ul></div></div></div><div id="event-insert" class="member ni"><a href="Ext.data.NodeInterface.html#event-insert" rel="event-insert" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-insert" class="viewSource">view source</a></div><a name="insert"></a><a name="event-insert"></a><a href="Ext.data.NodeInterface.html#" rel="event-insert" class="cls expand">insert</a>(
339 <span class="pre">Node this, Node node, Node refNode</span>)
340 </div><div class="description"><div class="short"><p>Fires when a new child node is inserted.</p>
341 </div><div class="long"><p>Fires when a new child node is inserted.</p>
342 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
343 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The child node inserted</p>
344 </div></li><li><span class="pre">refNode</span> : Node<div class="sub-desc"><p>The child node the node was inserted before</p>
345 </div></li></ul></div></div></div><div id="event-move" class="member ni"><a href="Ext.data.NodeInterface.html#event-move" rel="event-move" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-move" class="viewSource">view source</a></div><a name="move"></a><a name="event-move"></a><a href="Ext.data.NodeInterface.html#" rel="event-move" class="cls expand">move</a>(
346 <span class="pre">Node this, Node oldParent, Node newParent, Number index</span>)
347 </div><div class="description"><div class="short"><p>Fires when this node is moved to a new location in the tree</p>
348 </div><div class="long"><p>Fires when this node is moved to a new location in the tree</p>
349 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
350 </div></li><li><span class="pre">oldParent</span> : Node<div class="sub-desc"><p>The old parent of this node</p>
351 </div></li><li><span class="pre">newParent</span> : Node<div class="sub-desc"><p>The new parent of this node</p>
352 </div></li><li><span class="pre">index</span> : Number<div class="sub-desc"><p>The index it was moved to</p>
353 </div></li></ul></div></div></div><div id="event-remove" class="member ni"><a href="Ext.data.NodeInterface.html#event-remove" rel="event-remove" class="expand more ar"><span>&nbsp;</span></a><div class="title"><div class="meta"><a href="Ext.data.NodeInterface.html" class="definedIn docClass">Ext.data.NodeInterface</a><br/><a href="../source/NodeInterface.html#Ext-data.NodeInterface-event-remove" class="viewSource">view source</a></div><a name="remove"></a><a name="event-remove"></a><a href="Ext.data.NodeInterface.html#" rel="event-remove" class="cls expand">remove</a>(
354 <span class="pre">Node this, Node node</span>)
355 </div><div class="description"><div class="short"><p>Fires when a child node is removed</p>
356 </div><div class="long"><p>Fires when a child node is removed</p>
357 <h3 class="pa">Parameters</h3><ul><li><span class="pre">this</span> : Node<div class="sub-desc"><p>This node</p>
358 </div></li><li><span class="pre">node</span> : Node<div class="sub-desc"><p>The removed node</p>
359 </div></li></ul></div></div></div></div></div></div></div><div id="pageContent"></div></div></div></div></body></html>