63608eab23f2bd598ccf25f25726137c343ff795.svn-base 54 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989
  1. <div class="body-wrap">
  2. <div class="top-tools">
  3. <a class="inner-link" href="#Ext.data.Node-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
  4. <a class="inner-link" href="#Ext.data.Node-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
  5. <a class="inner-link" href="#Ext.data.Node-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
  6. <a class="inner-link" href="#Ext.data.Node-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
  7. <a class="bookmark" href="../docs/?class=Ext.data.Node"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
  8. </div>
  9. <div class="inheritance res-block">
  10. <pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
  11. <img src="resources/elbow-end.gif"/>Node</pre></div>
  12. <h1>Class Ext.data.Node</h1>
  13. <table cellspacing="0">
  14. <tr><td class="label">Package:</td><td class="hd-info">Ext.data</td></tr>
  15. <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/Tree.js" target="_blank">Tree.js</a></td></tr>
  16. <tr><td class="label">Class:</td><td class="hd-info">Node</td></tr>
  17. <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">TreeNode</a></td></tr>
  18. <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr>
  19. </table>
  20. <div class="description">
  21. </div>
  22. <div class="hr"></div>
  23. <a id="Ext.data.Node-configs"></a>
  24. <h2>Config Options</h2>
  25. <table cellspacing="0" class="member-table">
  26. <tr>
  27. <th class="sig-header" colspan="2">Config Options</th>
  28. <th class="msource-header">Defined By</th>
  29. </tr>
  30. <tr class="config-row">
  31. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  32. <td class="sig">
  33. <a id="Ext.data.Node-id"></a>
  34. <b>id</b> : String <div class="mdesc">
  35. The id for this node. If one is not specified, one is generated. </div>
  36. </td>
  37. <td class="msource">Node</td>
  38. </tr>
  39. <tr class="config-row alt">
  40. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  41. <td class="sig">
  42. <a id="Ext.data.Node-leaf"></a>
  43. <b>leaf</b> : Boolean <div class="mdesc">
  44. true if this node is a leaf and does not have children </div>
  45. </td>
  46. <td class="msource">Node</td>
  47. </tr>
  48. <tr class="config-row inherited expandable">
  49. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  50. <td class="sig">
  51. <a id="Ext.data.Node-listeners"></a>
  52. <b>listeners</b> : Object <div class="mdesc">
  53. <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
  54. <div class="long">
  55. A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once. </div>
  56. </div>
  57. </td>
  58. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
  59. </tr>
  60. </table>
  61. <a id="Ext.data.Node-props"></a>
  62. <h2>Public Properties</h2>
  63. <table cellspacing="0" class="member-table">
  64. <tr>
  65. <th class="sig-header" colspan="2">Property</th>
  66. <th class="msource-header">Defined By</th>
  67. </tr>
  68. <tr class="property-row">
  69. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  70. <td class="sig">
  71. <a id="Ext.data.Node-attributes"></a>
  72. <b>attributes</b> : Object <div class="mdesc">
  73. The attributes supplied for the node. You can use this property to access any custom attributes you supplied. </div>
  74. </td>
  75. <td class="msource">Node</td>
  76. </tr>
  77. <tr class="property-row alt">
  78. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  79. <td class="sig">
  80. <a id="Ext.data.Node-childNodes"></a>
  81. <b>childNodes</b> : Array <div class="mdesc">
  82. All child nodes of this node. </div>
  83. </td>
  84. <td class="msource">Node</td>
  85. </tr>
  86. <tr class="property-row">
  87. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  88. <td class="sig">
  89. <a id="Ext.data.Node-firstChild"></a>
  90. <b>firstChild</b> : Node <div class="mdesc">
  91. The first direct child node of this node, or null if this node has no child nodes. </div>
  92. </td>
  93. <td class="msource">Node</td>
  94. </tr>
  95. <tr class="property-row alt">
  96. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  97. <td class="sig">
  98. <a id="Ext.data.Node-id"></a>
  99. <b>id</b> : String <div class="mdesc">
  100. The node id. </div>
  101. </td>
  102. <td class="msource">Node</td>
  103. </tr>
  104. <tr class="property-row">
  105. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  106. <td class="sig">
  107. <a id="Ext.data.Node-lastChild"></a>
  108. <b>lastChild</b> : Node <div class="mdesc">
  109. The last direct child node of this node, or null if this node has no child nodes. </div>
  110. </td>
  111. <td class="msource">Node</td>
  112. </tr>
  113. <tr class="property-row alt">
  114. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  115. <td class="sig">
  116. <a id="Ext.data.Node-nextSibling"></a>
  117. <b>nextSibling</b> : Node <div class="mdesc">
  118. The node immediately following this node in the tree, or null if there is no sibling node. </div>
  119. </td>
  120. <td class="msource">Node</td>
  121. </tr>
  122. <tr class="property-row">
  123. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  124. <td class="sig">
  125. <a id="Ext.data.Node-parentNode"></a>
  126. <b>parentNode</b> : Node <div class="mdesc">
  127. The parent node for this node. </div>
  128. </td>
  129. <td class="msource">Node</td>
  130. </tr>
  131. <tr class="property-row alt">
  132. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  133. <td class="sig">
  134. <a id="Ext.data.Node-previousSibling"></a>
  135. <b>previousSibling</b> : Node <div class="mdesc">
  136. The node immediately preceding this node in the tree, or null if there is no sibling node. </div>
  137. </td>
  138. <td class="msource">Node</td>
  139. </tr>
  140. </table>
  141. <a id="Ext.data.Node-methods"></a>
  142. <h2>Public Methods</h2>
  143. <table cellspacing="0" class="member-table">
  144. <tr>
  145. <th class="sig-header" colspan="2">Method</th>
  146. <th class="msource-header">Defined By</th>
  147. </tr>
  148. <tr class="method-row expandable">
  149. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  150. <td class="sig">
  151. <a id="Ext.data.Node-Node"></a>
  152. <b>Node</b>(&nbsp;<code>Object attributes</code>&nbsp;) <div class="mdesc">
  153. <div class="short"></div>
  154. <div class="long">
  155. <div class="mdetail-params">
  156. <strong>Parameters:</strong>
  157. <ul><li><code>attributes</code> : Object<div class="sub-desc">The attributes/config for the node</div></li> </ul>
  158. <strong>Returns:</strong>
  159. <ul>
  160. <li><code></code></li>
  161. </ul>
  162. </div>
  163. </div>
  164. </div>
  165. </td>
  166. <td class="msource">Node</td>
  167. </tr>
  168. <tr class="method-row inherited alt expandable">
  169. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  170. <td class="sig">
  171. <a id="Ext.data.Node-addEvents"></a>
  172. <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void <div class="mdesc">
  173. <div class="short">Used to define events on this Observable</div>
  174. <div class="long">
  175. Used to define events on this Observable <div class="mdetail-params">
  176. <strong>Parameters:</strong>
  177. <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
  178. <strong>Returns:</strong>
  179. <ul>
  180. <li><code>void</code></li>
  181. </ul>
  182. </div>
  183. </div>
  184. </div>
  185. </td>
  186. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
  187. </tr>
  188. <tr class="method-row inherited expandable">
  189. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  190. <td class="sig">
  191. <a id="Ext.data.Node-addListener"></a>
  192. <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void <div class="mdesc">
  193. <div class="short">Appends an event handler to this component</div>
  194. <div class="long">
  195. Appends an event handler to this component <div class="mdetail-params">
  196. <strong>Parameters:</strong>
  197. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
  198. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
  199. properties. This may contain any of the following properties:<ul>
  200. <li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
  201. <li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
  202. <li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
  203. <li>buffer {Number} Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
  204. by the specified number of milliseconds. If the event fires again within that time, the original
  205. handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>
  206. </ul><br>
  207. <p>
  208. <b>Combining Options</b><br>
  209. Using the options argument, it is possible to combine different types of listeners:<br>
  210. <br>
  211. A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
  212. <pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
  213. single: true,
  214. delay: 100,
  215. forumId: 4
  216. });</code></pre>
  217. <p>
  218. <b>Attaching multiple handlers in 1 call</b><br>
  219. The method also allows for a single argument to be passed which is a config object containing properties
  220. which specify multiple handlers.
  221. <p>
  222. <pre><code>foo.on({
  223. <em>'click'</em> : {
  224. fn: <b>this</b>.onClick,
  225. scope: <b>this</b>,
  226. delay: 100
  227. },
  228. <em>'mouseover'</em> : {
  229. fn: <b>this</b>.onMouseOver,
  230. scope: <b>this</b>
  231. },
  232. <em>'mouseout'</em> : {
  233. fn: <b>this</b>.onMouseOut,
  234. scope: <b>this</b>
  235. }
  236. });</code></pre>
  237. <p>
  238. Or a shorthand syntax:<br>
  239. <pre><code>foo.on({
  240. <em>'click'</em> : <b>this</b>.onClick,
  241. <em>'mouseover'</em> : <b>this</b>.onMouseOver,
  242. <em>'mouseout'</em> : <b>this</b>.onMouseOut,
  243. scope: <b>this</b>
  244. });</code></pre></div></li> </ul>
  245. <strong>Returns:</strong>
  246. <ul>
  247. <li><code>void</code></li>
  248. </ul>
  249. </div>
  250. </div>
  251. </div>
  252. </td>
  253. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
  254. </tr>
  255. <tr class="method-row alt expandable">
  256. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  257. <td class="sig">
  258. <a id="Ext.data.Node-appendChild"></a>
  259. <b>appendChild</b>(&nbsp;<code>Node/Array node</code>&nbsp;) : Node <div class="mdesc">
  260. <div class="short">Insert node(s) as the last child node of this node.</div>
  261. <div class="long">
  262. Insert node(s) as the last child node of this node. <div class="mdetail-params">
  263. <strong>Parameters:</strong>
  264. <ul><li><code>node</code> : Node/Array<div class="sub-desc">The node or Array of nodes to append</div></li> </ul>
  265. <strong>Returns:</strong>
  266. <ul>
  267. <li><code>Node</code><div class="sub-desc">The appended node if single append, or null if an array was passed</div></li>
  268. </ul>
  269. </div>
  270. </div>
  271. </div>
  272. </td>
  273. <td class="msource">Node</td>
  274. </tr>
  275. <tr class="method-row expandable">
  276. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  277. <td class="sig">
  278. <a id="Ext.data.Node-bubble"></a>
  279. <b>bubble</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : void <div class="mdesc">
  280. <div class="short">Bubbles up the tree from this node, calling the specified function with each node. The scope (this) of
  281. function call ...</div>
  282. <div class="long">
  283. Bubbles up the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of
  284. function call will be the scope provided or the current node. The arguments to the function
  285. will be the args provided or the current node. If the function returns false at any point,
  286. the bubble is stopped. <div class="mdetail-params">
  287. <strong>Parameters:</strong>
  288. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
  289. <strong>Returns:</strong>
  290. <ul>
  291. <li><code>void</code></li>
  292. </ul>
  293. </div>
  294. </div>
  295. </div>
  296. </td>
  297. <td class="msource">Node</td>
  298. </tr>
  299. <tr class="method-row alt expandable">
  300. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  301. <td class="sig">
  302. <a id="Ext.data.Node-cascade"></a>
  303. <b>cascade</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : void <div class="mdesc">
  304. <div class="short">Cascades down the tree from this node, calling the specified function with each node. The scope (this) of
  305. function ca...</div>
  306. <div class="long">
  307. Cascades down the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of
  308. function call will be the scope provided or the current node. The arguments to the function
  309. will be the args provided or the current node. If the function returns false at any point,
  310. the cascade is stopped on that branch. <div class="mdetail-params">
  311. <strong>Parameters:</strong>
  312. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
  313. <strong>Returns:</strong>
  314. <ul>
  315. <li><code>void</code></li>
  316. </ul>
  317. </div>
  318. </div>
  319. </div>
  320. </td>
  321. <td class="msource">Node</td>
  322. </tr>
  323. <tr class="method-row expandable">
  324. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  325. <td class="sig">
  326. <a id="Ext.data.Node-contains"></a>
  327. <b>contains</b>(&nbsp;<code>Node node</code>&nbsp;) : Boolean <div class="mdesc">
  328. <div class="short">Returns true if this node is an ancestor (at any point) of the passed node.</div>
  329. <div class="long">
  330. Returns true if this node is an ancestor (at any point) of the passed node. <div class="mdetail-params">
  331. <strong>Parameters:</strong>
  332. <ul><li><code>node</code> : Node<div class="sub-desc"></div></li> </ul>
  333. <strong>Returns:</strong>
  334. <ul>
  335. <li><code>Boolean</code></li>
  336. </ul>
  337. </div>
  338. </div>
  339. </div>
  340. </td>
  341. <td class="msource">Node</td>
  342. </tr>
  343. <tr class="method-row alt expandable">
  344. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  345. <td class="sig">
  346. <a id="Ext.data.Node-eachChild"></a>
  347. <b>eachChild</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Array args</code>]</span>&nbsp;) : void <div class="mdesc">
  348. <div class="short">Interates the child nodes of this node, calling the specified function with each node. The scope (this) of
  349. function c...</div>
  350. <div class="long">
  351. Interates the child nodes of this node, calling the specified function with each node. The scope (<i>this</i>) of
  352. function call will be the scope provided or the current node. The arguments to the function
  353. will be the args provided or the current node. If the function returns false at any point,
  354. the iteration stops. <div class="mdetail-params">
  355. <strong>Parameters:</strong>
  356. <ul><li><code>fn</code> : Function<div class="sub-desc">The function to call</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope of the function (defaults to current node)</div></li><li><code>args</code> : Array<div class="sub-desc">(optional) The args to call the function with (default to passing the current node)</div></li> </ul>
  357. <strong>Returns:</strong>
  358. <ul>
  359. <li><code>void</code></li>
  360. </ul>
  361. </div>
  362. </div>
  363. </div>
  364. </td>
  365. <td class="msource">Node</td>
  366. </tr>
  367. <tr class="method-row expandable">
  368. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  369. <td class="sig">
  370. <a id="Ext.data.Node-findChild"></a>
  371. <b>findChild</b>(&nbsp;<code>String attribute</code>, <code>Mixed value</code>&nbsp;) : Node <div class="mdesc">
  372. <div class="short">Finds the first child that has the attribute with the specified value.</div>
  373. <div class="long">
  374. Finds the first child that has the attribute with the specified value. <div class="mdetail-params">
  375. <strong>Parameters:</strong>
  376. <ul><li><code>attribute</code> : String<div class="sub-desc">The attribute name</div></li><li><code>value</code> : Mixed<div class="sub-desc">The value to search for</div></li> </ul>
  377. <strong>Returns:</strong>
  378. <ul>
  379. <li><code>Node</code><div class="sub-desc">The found child or null if none was found</div></li>
  380. </ul>
  381. </div>
  382. </div>
  383. </div>
  384. </td>
  385. <td class="msource">Node</td>
  386. </tr>
  387. <tr class="method-row alt expandable">
  388. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  389. <td class="sig">
  390. <a id="Ext.data.Node-findChildBy"></a>
  391. <b>findChildBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Node <div class="mdesc">
  392. <div class="short">Finds the first child by a custom function. The child matches if the function passed
  393. returns true.</div>
  394. <div class="long">
  395. Finds the first child by a custom function. The child matches if the function passed
  396. returns true. <div class="mdetail-params">
  397. <strong>Parameters:</strong>
  398. <ul><li><code>fn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  399. <strong>Returns:</strong>
  400. <ul>
  401. <li><code>Node</code><div class="sub-desc">The found child or null if none was found</div></li>
  402. </ul>
  403. </div>
  404. </div>
  405. </div>
  406. </td>
  407. <td class="msource">Node</td>
  408. </tr>
  409. <tr class="method-row inherited expandable">
  410. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  411. <td class="sig">
  412. <a id="Ext.data.Node-fireEvent"></a>
  413. <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean <div class="mdesc">
  414. <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
  415. <div class="long">
  416. Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
  417. <strong>Parameters:</strong>
  418. <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li> </ul>
  419. <strong>Returns:</strong>
  420. <ul>
  421. <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
  422. </ul>
  423. </div>
  424. </div>
  425. </div>
  426. </td>
  427. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
  428. </tr>
  429. <tr class="method-row alt expandable">
  430. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  431. <td class="sig">
  432. <a id="Ext.data.Node-getDepth"></a>
  433. <b>getDepth</b>() : Number <div class="mdesc">
  434. <div class="short">Returns depth of this node (the root node has a depth of 0)</div>
  435. <div class="long">
  436. Returns depth of this node (the root node has a depth of 0) <div class="mdetail-params">
  437. <strong>Parameters:</strong>
  438. <ul><li>None.</li> </ul>
  439. <strong>Returns:</strong>
  440. <ul>
  441. <li><code>Number</code></li>
  442. </ul>
  443. </div>
  444. </div>
  445. </div>
  446. </td>
  447. <td class="msource">Node</td>
  448. </tr>
  449. <tr class="method-row expandable">
  450. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  451. <td class="sig">
  452. <a id="Ext.data.Node-getOwnerTree"></a>
  453. <b>getOwnerTree</b>() : Tree <div class="mdesc">
  454. <div class="short">Returns the tree this node is in.</div>
  455. <div class="long">
  456. Returns the tree this node is in. <div class="mdetail-params">
  457. <strong>Parameters:</strong>
  458. <ul><li>None.</li> </ul>
  459. <strong>Returns:</strong>
  460. <ul>
  461. <li><code>Tree</code></li>
  462. </ul>
  463. </div>
  464. </div>
  465. </div>
  466. </td>
  467. <td class="msource">Node</td>
  468. </tr>
  469. <tr class="method-row alt expandable">
  470. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  471. <td class="sig">
  472. <a id="Ext.data.Node-getPath"></a>
  473. <b>getPath</b>(&nbsp;<span class="optional" title="Optional">[<code>String attr</code>]</span>&nbsp;) : String <div class="mdesc">
  474. <div class="short">Returns the path for this node. The path can be used to expand or select this node programmatically.</div>
  475. <div class="long">
  476. Returns the path for this node. The path can be used to expand or select this node programmatically. <div class="mdetail-params">
  477. <strong>Parameters:</strong>
  478. <ul><li><code>attr</code> : String<div class="sub-desc">(optional) The attr to use for the path (defaults to the node's id)</div></li> </ul>
  479. <strong>Returns:</strong>
  480. <ul>
  481. <li><code>String</code><div class="sub-desc">The path</div></li>
  482. </ul>
  483. </div>
  484. </div>
  485. </div>
  486. </td>
  487. <td class="msource">Node</td>
  488. </tr>
  489. <tr class="method-row inherited expandable">
  490. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  491. <td class="sig">
  492. <a id="Ext.data.Node-hasListener"></a>
  493. <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean <div class="mdesc">
  494. <div class="short">Checks to see if this object has any listeners for a specified event</div>
  495. <div class="long">
  496. Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
  497. <strong>Parameters:</strong>
  498. <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
  499. <strong>Returns:</strong>
  500. <ul>
  501. <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
  502. </ul>
  503. </div>
  504. </div>
  505. </div>
  506. </td>
  507. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
  508. </tr>
  509. <tr class="method-row alt expandable">
  510. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  511. <td class="sig">
  512. <a id="Ext.data.Node-indexOf"></a>
  513. <b>indexOf</b>(&nbsp;<code>Node node</code>&nbsp;) : Number <div class="mdesc">
  514. <div class="short">Returns the index of a child node</div>
  515. <div class="long">
  516. Returns the index of a child node <div class="mdetail-params">
  517. <strong>Parameters:</strong>
  518. <ul><li><code>node</code> : Node<div class="sub-desc"></div></li> </ul>
  519. <strong>Returns:</strong>
  520. <ul>
  521. <li><code>Number</code><div class="sub-desc">The index of the node or -1 if it was not found</div></li>
  522. </ul>
  523. </div>
  524. </div>
  525. </div>
  526. </td>
  527. <td class="msource">Node</td>
  528. </tr>
  529. <tr class="method-row expandable">
  530. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  531. <td class="sig">
  532. <a id="Ext.data.Node-insertBefore"></a>
  533. <b>insertBefore</b>(&nbsp;<code>Node node</code>, <code>Node refNode</code>&nbsp;) : Node <div class="mdesc">
  534. <div class="short">Inserts the first node before the second node in this nodes childNodes collection.</div>
  535. <div class="long">
  536. Inserts the first node before the second node in this nodes childNodes collection. <div class="mdetail-params">
  537. <strong>Parameters:</strong>
  538. <ul><li><code>node</code> : Node<div class="sub-desc">The node to insert</div></li><li><code>refNode</code> : Node<div class="sub-desc">The node to insert before (if null the node is appended)</div></li> </ul>
  539. <strong>Returns:</strong>
  540. <ul>
  541. <li><code>Node</code><div class="sub-desc">The inserted node</div></li>
  542. </ul>
  543. </div>
  544. </div>
  545. </div>
  546. </td>
  547. <td class="msource">Node</td>
  548. </tr>
  549. <tr class="method-row alt expandable">
  550. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  551. <td class="sig">
  552. <a id="Ext.data.Node-isAncestor"></a>
  553. <b>isAncestor</b>(&nbsp;<code>Node node</code>&nbsp;) : Boolean <div class="mdesc">
  554. <div class="short">Returns true if the passed node is an ancestor (at any point) of this node.</div>
  555. <div class="long">
  556. Returns true if the passed node is an ancestor (at any point) of this node. <div class="mdetail-params">
  557. <strong>Parameters:</strong>
  558. <ul><li><code>node</code> : Node<div class="sub-desc"></div></li> </ul>
  559. <strong>Returns:</strong>
  560. <ul>
  561. <li><code>Boolean</code></li>
  562. </ul>
  563. </div>
  564. </div>
  565. </div>
  566. </td>
  567. <td class="msource">Node</td>
  568. </tr>
  569. <tr class="method-row expandable">
  570. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  571. <td class="sig">
  572. <a id="Ext.data.Node-isFirst"></a>
  573. <b>isFirst</b>() : Boolean <div class="mdesc">
  574. <div class="short">Returns true if this node is the first child of its parent</div>
  575. <div class="long">
  576. Returns true if this node is the first child of its parent <div class="mdetail-params">
  577. <strong>Parameters:</strong>
  578. <ul><li>None.</li> </ul>
  579. <strong>Returns:</strong>
  580. <ul>
  581. <li><code>Boolean</code></li>
  582. </ul>
  583. </div>
  584. </div>
  585. </div>
  586. </td>
  587. <td class="msource">Node</td>
  588. </tr>
  589. <tr class="method-row alt expandable">
  590. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  591. <td class="sig">
  592. <a id="Ext.data.Node-isLast"></a>
  593. <b>isLast</b>() : Boolean <div class="mdesc">
  594. <div class="short">Returns true if this node is the last child of its parent</div>
  595. <div class="long">
  596. Returns true if this node is the last child of its parent <div class="mdetail-params">
  597. <strong>Parameters:</strong>
  598. <ul><li>None.</li> </ul>
  599. <strong>Returns:</strong>
  600. <ul>
  601. <li><code>Boolean</code></li>
  602. </ul>
  603. </div>
  604. </div>
  605. </div>
  606. </td>
  607. <td class="msource">Node</td>
  608. </tr>
  609. <tr class="method-row expandable">
  610. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  611. <td class="sig">
  612. <a id="Ext.data.Node-isLeaf"></a>
  613. <b>isLeaf</b>() : Boolean <div class="mdesc">
  614. <div class="short">Returns true if this node is a leaf</div>
  615. <div class="long">
  616. Returns true if this node is a leaf <div class="mdetail-params">
  617. <strong>Parameters:</strong>
  618. <ul><li>None.</li> </ul>
  619. <strong>Returns:</strong>
  620. <ul>
  621. <li><code>Boolean</code></li>
  622. </ul>
  623. </div>
  624. </div>
  625. </div>
  626. </td>
  627. <td class="msource">Node</td>
  628. </tr>
  629. <tr class="method-row alt expandable">
  630. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  631. <td class="sig">
  632. <a id="Ext.data.Node-item"></a>
  633. <b>item</b>(&nbsp;<code>Number index</code>&nbsp;) : Node <div class="mdesc">
  634. <div class="short">Returns the child node at the specified index.</div>
  635. <div class="long">
  636. Returns the child node at the specified index. <div class="mdetail-params">
  637. <strong>Parameters:</strong>
  638. <ul><li><code>index</code> : Number<div class="sub-desc"></div></li> </ul>
  639. <strong>Returns:</strong>
  640. <ul>
  641. <li><code>Node</code></li>
  642. </ul>
  643. </div>
  644. </div>
  645. </div>
  646. </td>
  647. <td class="msource">Node</td>
  648. </tr>
  649. <tr class="method-row inherited expandable">
  650. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  651. <td class="sig">
  652. <a id="Ext.data.Node-on"></a>
  653. <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void <div class="mdesc">
  654. <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
  655. <div class="long">
  656. Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
  657. <strong>Parameters:</strong>
  658. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
  659. function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  660. <strong>Returns:</strong>
  661. <ul>
  662. <li><code>void</code></li>
  663. </ul>
  664. </div>
  665. </div>
  666. </div>
  667. </td>
  668. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
  669. </tr>
  670. <tr class="method-row inherited alt expandable">
  671. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  672. <td class="sig">
  673. <a id="Ext.data.Node-purgeListeners"></a>
  674. <b>purgeListeners</b>() : void <div class="mdesc">
  675. <div class="short">Removes all listeners for this object</div>
  676. <div class="long">
  677. Removes all listeners for this object <div class="mdetail-params">
  678. <strong>Parameters:</strong>
  679. <ul><li>None.</li> </ul>
  680. <strong>Returns:</strong>
  681. <ul>
  682. <li><code>void</code></li>
  683. </ul>
  684. </div>
  685. </div>
  686. </div>
  687. </td>
  688. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
  689. </tr>
  690. <tr class="method-row expandable">
  691. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  692. <td class="sig">
  693. <a id="Ext.data.Node-remove"></a>
  694. <b>remove</b>() : Node <div class="mdesc">
  695. <div class="short">Removes this node from it's parent</div>
  696. <div class="long">
  697. Removes this node from it's parent <div class="mdetail-params">
  698. <strong>Parameters:</strong>
  699. <ul><li>None.</li> </ul>
  700. <strong>Returns:</strong>
  701. <ul>
  702. <li><code>Node</code><div class="sub-desc">this</div></li>
  703. </ul>
  704. </div>
  705. </div>
  706. </div>
  707. </td>
  708. <td class="msource">Node</td>
  709. </tr>
  710. <tr class="method-row alt expandable">
  711. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  712. <td class="sig">
  713. <a id="Ext.data.Node-removeChild"></a>
  714. <b>removeChild</b>(&nbsp;<code>Node node</code>&nbsp;) : Node <div class="mdesc">
  715. <div class="short">Removes a child node from this node.</div>
  716. <div class="long">
  717. Removes a child node from this node. <div class="mdetail-params">
  718. <strong>Parameters:</strong>
  719. <ul><li><code>node</code> : Node<div class="sub-desc">The node to remove</div></li> </ul>
  720. <strong>Returns:</strong>
  721. <ul>
  722. <li><code>Node</code><div class="sub-desc">The removed node</div></li>
  723. </ul>
  724. </div>
  725. </div>
  726. </div>
  727. </td>
  728. <td class="msource">Node</td>
  729. </tr>
  730. <tr class="method-row inherited expandable">
  731. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  732. <td class="sig">
  733. <a id="Ext.data.Node-removeListener"></a>
  734. <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  735. <div class="short">Removes a listener</div>
  736. <div class="long">
  737. Removes a listener <div class="mdetail-params">
  738. <strong>Parameters:</strong>
  739. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  740. <strong>Returns:</strong>
  741. <ul>
  742. <li><code>void</code></li>
  743. </ul>
  744. </div>
  745. </div>
  746. </div>
  747. </td>
  748. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
  749. </tr>
  750. <tr class="method-row alt expandable">
  751. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  752. <td class="sig">
  753. <a id="Ext.data.Node-replaceChild"></a>
  754. <b>replaceChild</b>(&nbsp;<code>Node newChild</code>, <code>Node oldChild</code>&nbsp;) : Node <div class="mdesc">
  755. <div class="short">Replaces one child node in this node with another.</div>
  756. <div class="long">
  757. Replaces one child node in this node with another. <div class="mdetail-params">
  758. <strong>Parameters:</strong>
  759. <ul><li><code>newChild</code> : Node<div class="sub-desc">The replacement node</div></li><li><code>oldChild</code> : Node<div class="sub-desc">The node to replace</div></li> </ul>
  760. <strong>Returns:</strong>
  761. <ul>
  762. <li><code>Node</code><div class="sub-desc">The replaced node</div></li>
  763. </ul>
  764. </div>
  765. </div>
  766. </div>
  767. </td>
  768. <td class="msource">Node</td>
  769. </tr>
  770. <tr class="method-row inherited expandable">
  771. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  772. <td class="sig">
  773. <a id="Ext.data.Node-resumeEvents"></a>
  774. <b>resumeEvents</b>() : void <div class="mdesc">
  775. <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
  776. <div class="long">
  777. Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>) <div class="mdetail-params">
  778. <strong>Parameters:</strong>
  779. <ul><li>None.</li> </ul>
  780. <strong>Returns:</strong>
  781. <ul>
  782. <li><code>void</code></li>
  783. </ul>
  784. </div>
  785. </div>
  786. </div>
  787. </td>
  788. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
  789. </tr>
  790. <tr class="method-row alt expandable">
  791. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  792. <td class="sig">
  793. <a id="Ext.data.Node-sort"></a>
  794. <b>sort</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  795. <div class="short">Sorts this nodes children using the supplied sort function</div>
  796. <div class="long">
  797. Sorts this nodes children using the supplied sort function <div class="mdetail-params">
  798. <strong>Parameters:</strong>
  799. <ul><li><code>fn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
  800. <strong>Returns:</strong>
  801. <ul>
  802. <li><code>void</code></li>
  803. </ul>
  804. </div>
  805. </div>
  806. </div>
  807. </td>
  808. <td class="msource">Node</td>
  809. </tr>
  810. <tr class="method-row inherited expandable">
  811. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  812. <td class="sig">
  813. <a id="Ext.data.Node-suspendEvents"></a>
  814. <b>suspendEvents</b>() : void <div class="mdesc">
  815. <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
  816. <div class="long">
  817. Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>) <div class="mdetail-params">
  818. <strong>Parameters:</strong>
  819. <ul><li>None.</li> </ul>
  820. <strong>Returns:</strong>
  821. <ul>
  822. <li><code>void</code></li>
  823. </ul>
  824. </div>
  825. </div>
  826. </div>
  827. </td>
  828. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
  829. </tr>
  830. <tr class="method-row inherited alt expandable">
  831. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  832. <td class="sig">
  833. <a id="Ext.data.Node-un"></a>
  834. <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void <div class="mdesc">
  835. <div class="short">Removes a listener (shorthand for removeListener)</div>
  836. <div class="long">
  837. Removes a listener (shorthand for removeListener) <div class="mdetail-params">
  838. <strong>Parameters:</strong>
  839. <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li> </ul>
  840. <strong>Returns:</strong>
  841. <ul>
  842. <li><code>void</code></li>
  843. </ul>
  844. </div>
  845. </div>
  846. </div>
  847. </td>
  848. <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
  849. </tr>
  850. </table>
  851. <a id="Ext.data.Node-events"></a>
  852. <h2>Public Events</h2>
  853. <table cellspacing="0" class="member-table">
  854. <tr>
  855. <th class="sig-header" colspan="2">Event</th>
  856. <th class="msource-header">Defined By</th>
  857. </tr>
  858. <tr class="event-row expandable">
  859. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  860. <td class="sig">
  861. <a id="Ext.data.Node-append"></a>
  862. <b>append</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>, <code>Number index</code>&nbsp;) <div class="mdesc">
  863. <div class="short">Fires when a new child node is appended</div>
  864. <div class="long">
  865. Fires when a new child node is appended <div class="mdetail-params">
  866. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  867. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The newly appended node</div></li><li><code>index</code> : Number<div class="sub-desc">The index of the newly appended node</div></li> </ul>
  868. </div>
  869. </div>
  870. </div>
  871. </td>
  872. <td class="msource">Node</td>
  873. </tr>
  874. <tr class="event-row alt expandable">
  875. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  876. <td class="sig">
  877. <a id="Ext.data.Node-beforeappend"></a>
  878. <b>beforeappend</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>&nbsp;) <div class="mdesc">
  879. <div class="short">Fires before a new child is appended, return false to cancel the append.</div>
  880. <div class="long">
  881. Fires before a new child is appended, return false to cancel the append. <div class="mdetail-params">
  882. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  883. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The child node to be appended</div></li> </ul>
  884. </div>
  885. </div>
  886. </div>
  887. </td>
  888. <td class="msource">Node</td>
  889. </tr>
  890. <tr class="event-row expandable">
  891. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  892. <td class="sig">
  893. <a id="Ext.data.Node-beforeinsert"></a>
  894. <b>beforeinsert</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>, <code>Node refNode</code>&nbsp;) <div class="mdesc">
  895. <div class="short">Fires before a new child is inserted, return false to cancel the insert.</div>
  896. <div class="long">
  897. Fires before a new child is inserted, return false to cancel the insert. <div class="mdetail-params">
  898. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  899. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The child node to be inserted</div></li><li><code>refNode</code> : Node<div class="sub-desc">The child node the node is being inserted before</div></li> </ul>
  900. </div>
  901. </div>
  902. </div>
  903. </td>
  904. <td class="msource">Node</td>
  905. </tr>
  906. <tr class="event-row alt expandable">
  907. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  908. <td class="sig">
  909. <a id="Ext.data.Node-beforemove"></a>
  910. <b>beforemove</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node oldParent</code>, <code>Node newParent</code>, <code>Number index</code>&nbsp;) <div class="mdesc">
  911. <div class="short">Fires before this node is moved to a new location in the tree. Return false to cancel the move.</div>
  912. <div class="long">
  913. Fires before this node is moved to a new location in the tree. Return false to cancel the move. <div class="mdetail-params">
  914. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  915. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>oldParent</code> : Node<div class="sub-desc">The parent of this node</div></li><li><code>newParent</code> : Node<div class="sub-desc">The new parent this node is moving to</div></li><li><code>index</code> : Number<div class="sub-desc">The index it is being moved to</div></li> </ul>
  916. </div>
  917. </div>
  918. </div>
  919. </td>
  920. <td class="msource">Node</td>
  921. </tr>
  922. <tr class="event-row expandable">
  923. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  924. <td class="sig">
  925. <a id="Ext.data.Node-beforeremove"></a>
  926. <b>beforeremove</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>&nbsp;) <div class="mdesc">
  927. <div class="short">Fires before a child is removed, return false to cancel the remove.</div>
  928. <div class="long">
  929. Fires before a child is removed, return false to cancel the remove. <div class="mdetail-params">
  930. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  931. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The child node to be removed</div></li> </ul>
  932. </div>
  933. </div>
  934. </div>
  935. </td>
  936. <td class="msource">Node</td>
  937. </tr>
  938. <tr class="event-row alt expandable">
  939. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  940. <td class="sig">
  941. <a id="Ext.data.Node-insert"></a>
  942. <b>insert</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>, <code>Node refNode</code>&nbsp;) <div class="mdesc">
  943. <div class="short">Fires when a new child node is inserted.</div>
  944. <div class="long">
  945. Fires when a new child node is inserted. <div class="mdetail-params">
  946. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  947. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The child node inserted</div></li><li><code>refNode</code> : Node<div class="sub-desc">The child node the node was inserted before</div></li> </ul>
  948. </div>
  949. </div>
  950. </div>
  951. </td>
  952. <td class="msource">Node</td>
  953. </tr>
  954. <tr class="event-row expandable">
  955. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  956. <td class="sig">
  957. <a id="Ext.data.Node-move"></a>
  958. <b>move</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node oldParent</code>, <code>Node newParent</code>, <code>Number index</code>&nbsp;) <div class="mdesc">
  959. <div class="short">Fires when this node is moved to a new location in the tree</div>
  960. <div class="long">
  961. Fires when this node is moved to a new location in the tree <div class="mdetail-params">
  962. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  963. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>oldParent</code> : Node<div class="sub-desc">The old parent of this node</div></li><li><code>newParent</code> : Node<div class="sub-desc">The new parent of this node</div></li><li><code>index</code> : Number<div class="sub-desc">The index it was moved to</div></li> </ul>
  964. </div>
  965. </div>
  966. </div>
  967. </td>
  968. <td class="msource">Node</td>
  969. </tr>
  970. <tr class="event-row alt expandable">
  971. <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
  972. <td class="sig">
  973. <a id="Ext.data.Node-remove"></a>
  974. <b>remove</b> : (&nbsp;<code>Tree tree</code>, <code>Node this</code>, <code>Node node</code>&nbsp;) <div class="mdesc">
  975. <div class="short">Fires when a child node is removed</div>
  976. <div class="long">
  977. Fires when a child node is removed <div class="mdetail-params">
  978. <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
  979. <ul><li><code>tree</code> : Tree<div class="sub-desc">The owner tree</div></li><li><code>this</code> : Node<div class="sub-desc">This node</div></li><li><code>node</code> : Node<div class="sub-desc">The removed node</div></li> </ul>
  980. </div>
  981. </div>
  982. </div>
  983. </td>
  984. <td class="msource">Node</td>
  985. </tr>
  986. </table>
  987. </div>