1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
7 <meta http-equiv="content-type" content="text/html; charset=undefined" />
8 <meta name="generator" content="JsDoc Toolkit" />
11 <title>JsDoc Reference - Roo.data.Node</title>
14 <link rel="stylesheet" type="text/css" href="../../css/roojs.css" />
15 <link rel="stylesheet" type="text/css" href="../default.css" />
18 <script type="text/javascript" src="../page.js">
25 <body onload="RooDocsPage.onload();">
28 <div class="body-wrap">
30 <!-- ============================== links to methods. ================================= -->
32 <div class="top-tools">
34 <a class="inner-link" href="#Roo.data.Node-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.data.Node-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.data.Node-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.data.Node-configs"><img src="resources/s.gif" class="item-icon icon-config">Config Options</a>
38 <a class="bookmark" href="NEED_TO_CREATE_DIRECT_LINK_HREF"><img src="resources/s.gif" class="item-icon icon-fav">Direct Link</a>
43 <!-- ============================== inheritance Block. ================================= -->
45 <div class="inheritance res-block">
46 <pre class="res-block-inner"><a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
47 <img src="../../images/default/s.gif" height="1" width="20"/><img class="elbow" src="../../images/default/tree/elbow-end.gif"/>Roo.data.Node
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo.data</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_data_Tree.js.html">Roo/data/Tree.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">Node</td></tr>
72 <tr><td class="label">Subclasses:</td><td class="hd-info">
73 <a href="./Roo.tree.AsyncTreeNode.html#constructor" roo:cls="Roo.tree.AsyncTreeNode.html#constructor">Roo.tree.AsyncTreeNode</a>, <a href="./Roo.tree.TreeNode.html#constructor" roo:cls="Roo.tree.TreeNode.html#constructor">Roo.tree.TreeNode</a>
81 <tr><td class="label">Extends:</td><td class="hd-info">
82 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
90 <!-- ============================== class summary ========================== -->
91 <div class="description">
96 <!-- ============================== Class comment block... ========================== -->
98 <div class="comments">
99 <b>Class Comments / Notes</B> =>
100 <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.Node';">[Add Your comment/notes about this class]</u>
102 <iframe frameborder="0" id="comments-Roo.data" style="border: none;width:100%;"
103 src="/blog.php/GtkDjsComments/Roo.data.Node.html"></iframe>
108 <!-- ============================== config options ========================== -->
113 <div class="hr"></div>
114 <a id="Roo.data.Node-configs"></a>
120 <table cellspacing="0" class="member-table">
121 <caption>Config Options (Usually are also Properties)</caption>
125 <th class="sig-header" colspan="2">Options</th>
127 <th class="msource-header">Defined By</th>
134 <tr class="config-row expandable config-row-alt0 notInherited">
135 <td class="micon"><a class="exi" href="#expand"> </a></td>
138 <a id="Roo.data.Node-cfg-id" name=".id"></a>
139 <div class="fixedFont">
140 <b class="itemname">id</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
146 <div class="short">The id for this node.</div>
151 The id for this node. If one is not specified, one is generated.
167 <tr class="config-row expandable config-row-alt1 notInherited">
168 <td class="micon"><a class="exi" href="#expand"> </a></td>
171 <a id="Roo.data.Node-cfg-leaf" name=".leaf"></a>
172 <div class="fixedFont">
173 <b class="itemname">leaf</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
179 <div class="short">true if this node is a leaf and does not have children</div>
184 true if this node is a leaf and does not have children
200 <tr class="config-row expandable config-row-alt0">
201 <td class="micon"><a class="exi" href="#expand"> </a></td>
204 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
205 <div class="fixedFont">
206 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
212 <div class="short">list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> .</div>
217 list of events and functions to call for this object, <br/>For example :<br/><pre><code><br/> listeners : { <br/> 'click' : function(e) {<br/> ..... <br/> } ,<br/> .... <br/> } <br/> </code></pre>
227 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
243 <!-- ============================== public properties ==================== -->
247 <a id="Roo.data.Node-props"></a>
253 <table cellspacing="0" class="member-table">
254 <caption class="Empty">Public Properties - Has None</caption>
260 <!-- ============================== methods summary / details ======================== -->
263 <a id="Roo.data.Node-methods"></a>
264 <!-- constructor?? -->
271 <!-- then dynamics first -->
278 <table cellspacing="0" class="member-table">
279 <caption>Public Methods</caption>
281 <th class="sig-header" colspan="2">Method</th>
282 <th class="msource-header">Defined By</th>
292 <tr class="method-row config-row-alt0 expandable notInherited">
293 <td class="micon"><a class="exi" href="#expand"> </a></td>
297 <a id="Roo.data-method-Node" name=".Node"></a>
298 <div class="fixedFont">
299 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">Node</b>
301 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>attributes</i></B>)
309 <div class="short">Create a new Roo.data.Node</div>
316 Create a new Roo.data.Node
319 <dl class="detailList">
320 <dt class="heading">Parameters:</dt>
323 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>attributes</b>
326 <dd>The attributes/config for the node</dd>
350 <tr class="method-row config-row-alt1 expandable">
351 <td class="micon"><a class="exi" href="#expand"> </a></td>
355 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
356 <div class="fixedFont">
357 <span class="attributes"></span><b class="itemname">addEvents</b>
359 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
366 <div class="short">Used to define events on this Observable</div>
372 Used to define events on this Observable
379 <dl class="detailList">
380 <dt class="heading">Parameters:</dt>
383 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>object</b>
386 <dd>The object with the events defined</dd>
406 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
412 <tr class="method-row config-row-alt0 expandable">
413 <td class="micon"><a class="exi" href="#expand"> </a></td>
417 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
418 <div class="fixedFont">
419 <span class="attributes"></span><b class="itemname">addListener</b>
421 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
428 <div class="short">Appends an event handler to this component</div>
434 Appends an event handler to this component
441 <dl class="detailList">
442 <dt class="heading">Parameters:</dt>
445 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
448 <dd>The type of event to listen for</dd>
451 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
454 <dd>The method the event invokes</dd>
457 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
460 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
463 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
466 <dd>(optional) An object containing handler configuration<br/>properties. This may contain any of the following properties:<ul><br/><li>scope {Object} The scope in which to execute the handler function. The handler function's "this" context.</li><br/><li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li><br/><li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li><br/><li>buffer {Number} Causes the handler to be scheduled to run in an {<b>link</b> Roo.util.DelayedTask} delayed<br/>by the specified number of milliseconds. If the event fires again within that time, the original<br/>handler is <em>not</em> invoked, but the new handler is scheduled in its place.</li><br/></ul><br><br/><p><br/><b>Combining Options</b><br><br/>Using the options argument, it is possible to combine different types of listeners:<br><br/><br><br/>A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)<br/> <pre><code><br/> el.on('click', this.onClick, this, {<br/> single: true,<br/> delay: 100,<br/> forumId: 4<br/> });<br/> </code></pre><br/><p><br/><b>Attaching multiple handlers in 1 call</b><br><br/>The method also allows for a single argument to be passed which is a config object containing properties<br/>which specify multiple handlers.<br/><pre><code><br/> el.on({<br/> 'click': {<br/> fn: this.onClick,<br/> scope: this,<br/> delay: 100<br/> }, <br/> 'mouseover': {<br/> fn: this.onMouseOver,<br/> scope: this<br/> },<br/> 'mouseout': {<br/> fn: this.onMouseOut,<br/> scope: this<br/> }<br/> });<br/> </code></pre><br/><p><br/>Or a shorthand syntax which passes the same scope object to all handlers:<br/> <pre><code><br/> el.on({<br/> 'click': this.onClick,<br/> 'mouseover': this.onMouseOver,<br/> 'mouseout': this.onMouseOut,<br/> scope: this<br/> });<br/> </code></pre></dd>
486 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
492 <tr class="method-row config-row-alt1 expandable notInherited">
493 <td class="micon"><a class="exi" href="#expand"> </a></td>
497 <a id="Roo.data.Node-method-appendChild" name=".appendChild"></a>
498 <div class="fixedFont">
499 <span class="attributes"></span><b class="itemname">appendChild</b>
501 (Node/Array <B><i>node</i></B>)
516 <div class="short">Insert node(s) as the last child node of this node.</div>
522 Insert node(s) as the last child node of this node.
529 <dl class="detailList">
530 <dt class="heading">Parameters:</dt>
533 <span class="fixedFont">Node/Array</span> <b>node</b>
536 <dd>The node or Array of nodes to append</dd>
544 <dl class="detailList">
545 <dt class="heading">Returns:</dt>
547 <dd><span class="fixedFont">Node</span> The appended node if single append, or null if an array was passed</dd>
569 <tr class="method-row config-row-alt0 expandable notInherited">
570 <td class="micon"><a class="exi" href="#expand"> </a></td>
574 <a id="Roo.data.Node-method-bubble" name=".bubble"></a>
575 <div class="fixedFont">
576 <span class="attributes"></span><b class="itemname">bubble</b>
578 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>args</i></B>)
585 <div class="short">Bubbles up the tree from this node, calling the specified function with each node.</div>
591 Bubbles up the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of<br/>function call will be the scope provided or the current node. The arguments to the function<br/>will be the args provided or the current node. If the function returns false at any point,<br/>the bubble is stopped.
598 <dl class="detailList">
599 <dt class="heading">Parameters:</dt>
602 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
605 <dd>The function to call</dd>
608 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
611 <dd>(optional) The scope of the function (defaults to current node)</dd>
614 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
617 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
643 <tr class="method-row config-row-alt1 expandable notInherited">
644 <td class="micon"><a class="exi" href="#expand"> </a></td>
648 <a id="Roo.data.Node-method-cascade" name=".cascade"></a>
649 <div class="fixedFont">
650 <span class="attributes"></span><b class="itemname">cascade</b>
652 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>args</i></B>)
659 <div class="short">Cascades down the tree from this node, calling the specified function with each node.</div>
665 Cascades down the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of<br/>function call will be the scope provided or the current node. The arguments to the function<br/>will be the args provided or the current node. If the function returns false at any point,<br/>the cascade is stopped on that branch.
672 <dl class="detailList">
673 <dt class="heading">Parameters:</dt>
676 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
679 <dd>The function to call</dd>
682 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
685 <dd>(optional) The scope of the function (defaults to current node)</dd>
688 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
691 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
717 <tr class="method-row config-row-alt0 expandable notInherited">
718 <td class="micon"><a class="exi" href="#expand"> </a></td>
722 <a id="Roo.data.Node-method-contains" name=".contains"></a>
723 <div class="fixedFont">
724 <span class="attributes"></span><b class="itemname">contains</b>
726 (Node <B><i>node</i></B>)
732 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
741 <div class="short">Returns true if this node is an ancestor (at any point) of the passed node.</div>
747 Returns true if this node is an ancestor (at any point) of the passed node.
754 <dl class="detailList">
755 <dt class="heading">Parameters:</dt>
758 <span class="fixedFont">Node</span> <b>node</b>
769 <dl class="detailList">
770 <dt class="heading">Returns:</dt>
772 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
794 <tr class="method-row config-row-alt1 expandable notInherited">
795 <td class="micon"><a class="exi" href="#expand"> </a></td>
799 <a id="Roo.data.Node-method-eachChild" name=".eachChild"></a>
800 <div class="fixedFont">
801 <span class="attributes"></span><b class="itemname">eachChild</b>
803 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a> <B><i>args</i></B>)
810 <div class="short">Interates the child nodes of this node, calling the specified function with each node.</div>
816 Interates the child nodes of this node, calling the specified function with each node. The scope (<i>this</i>) of<br/>function call will be the scope provided or the current node. The arguments to the function<br/>will be the args provided or the current node. If the function returns false at any point,<br/>the iteration stops.
823 <dl class="detailList">
824 <dt class="heading">Parameters:</dt>
827 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
830 <dd>The function to call</dd>
833 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
836 <dd>(optional) The scope of the function (defaults to current node)</dd>
839 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
842 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
868 <tr class="method-row config-row-alt0 expandable notInherited">
869 <td class="micon"><a class="exi" href="#expand"> </a></td>
873 <a id="Roo.data.Node-method-findChild" name=".findChild"></a>
874 <div class="fixedFont">
875 <span class="attributes"></span><b class="itemname">findChild</b>
877 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>attribute</i></B>, Mixed <B><i>value</i></B>)
892 <div class="short">Finds the first child that has the attribute with the specified value.</div>
898 Finds the first child that has the attribute with the specified value.
905 <dl class="detailList">
906 <dt class="heading">Parameters:</dt>
909 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>attribute</b>
912 <dd>The attribute name</dd>
915 <span class="fixedFont">Mixed</span> <b>value</b>
918 <dd>The value to search for</dd>
926 <dl class="detailList">
927 <dt class="heading">Returns:</dt>
929 <dd><span class="fixedFont">Node</span> The found child or null if none was found</dd>
951 <tr class="method-row config-row-alt1 expandable notInherited">
952 <td class="micon"><a class="exi" href="#expand"> </a></td>
956 <a id="Roo.data.Node-method-findChildBy" name=".findChildBy"></a>
957 <div class="fixedFont">
958 <span class="attributes"></span><b class="itemname">findChildBy</b>
960 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
975 <div class="short">Finds the first child by a custom function.</div>
981 Finds the first child by a custom function. The child matches if the function passed<br/>returns true.
988 <dl class="detailList">
989 <dt class="heading">Parameters:</dt>
992 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
998 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1009 <dl class="detailList">
1010 <dt class="heading">Returns:</dt>
1012 <dd><span class="fixedFont">Node</span> The found child or null if none was found</dd>
1026 <td class="msource">
1034 <tr class="method-row config-row-alt0 expandable">
1035 <td class="micon"><a class="exi" href="#expand"> </a></td>
1039 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1040 <div class="fixedFont">
1041 <span class="attributes"></span><b class="itemname">fireEvent</b>
1043 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a> <B><i>args</i></B>)
1049 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1058 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1064 Fires the specified event with the passed parameters (minus the event name).
1071 <dl class="detailList">
1072 <dt class="heading">Parameters:</dt>
1075 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1081 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object...</a></span> <b>args</b>
1084 <dd>Variable number of parameters are passed to handlers</dd>
1092 <dl class="detailList">
1093 <dt class="heading">Returns:</dt>
1095 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> returns false if any of the handlers return false otherwise it returns true</dd>
1109 <td class="msource">
1111 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1117 <tr class="method-row config-row-alt1 expandable notInherited">
1118 <td class="micon"><a class="exi" href="#expand"> </a></td>
1122 <a id="Roo.data.Node-method-getDepth" name=".getDepth"></a>
1123 <div class="fixedFont">
1124 <span class="attributes"></span><b class="itemname">getDepth</b>
1132 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1141 <div class="short">Returns depth of this node (the root node has a depth of 0)</div>
1147 Returns depth of this node (the root node has a depth of 0)
1158 <dl class="detailList">
1159 <dt class="heading">Returns:</dt>
1161 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1175 <td class="msource">
1183 <tr class="method-row config-row-alt0 expandable notInherited">
1184 <td class="micon"><a class="exi" href="#expand"> </a></td>
1188 <a id="Roo.data.Node-method-getOwnerTree" name=".getOwnerTree"></a>
1189 <div class="fixedFont">
1190 <span class="attributes"></span><b class="itemname">getOwnerTree</b>
1207 <div class="short">Returns the tree this node is in.</div>
1213 Returns the tree this node is in.
1224 <dl class="detailList">
1225 <dt class="heading">Returns:</dt>
1227 <dd><span class="fixedFont">Tree</span> </dd>
1241 <td class="msource">
1249 <tr class="method-row config-row-alt1 expandable notInherited">
1250 <td class="micon"><a class="exi" href="#expand"> </a></td>
1254 <a id="Roo.data.Node-method-getPath" name=".getPath"></a>
1255 <div class="fixedFont">
1256 <span class="attributes"></span><b class="itemname">getPath</b>
1258 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>attr</i></B>)
1264 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1273 <div class="short">Returns the path for this node.</div>
1279 Returns the path for this node. The path can be used to expand or select this node programmatically.
1286 <dl class="detailList">
1287 <dt class="heading">Parameters:</dt>
1290 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>attr</b>
1293 <dd>(optional) The attr to use for the path (defaults to the node's id)</dd>
1301 <dl class="detailList">
1302 <dt class="heading">Returns:</dt>
1304 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The path</dd>
1318 <td class="msource">
1326 <tr class="method-row config-row-alt0 expandable">
1327 <td class="micon"><a class="exi" href="#expand"> </a></td>
1331 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1332 <div class="fixedFont">
1333 <span class="attributes"></span><b class="itemname">hasListener</b>
1335 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1341 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1350 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1356 Checks to see if this object has any listeners for a specified event
1363 <dl class="detailList">
1364 <dt class="heading">Parameters:</dt>
1367 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1370 <dd>The name of the event to check for</dd>
1378 <dl class="detailList">
1379 <dt class="heading">Returns:</dt>
1381 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> True if the event is being listened for, else false</dd>
1395 <td class="msource">
1397 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1403 <tr class="method-row config-row-alt1 expandable notInherited">
1404 <td class="micon"><a class="exi" href="#expand"> </a></td>
1408 <a id="Roo.data.Node-method-indexOf" name=".indexOf"></a>
1409 <div class="fixedFont">
1410 <span class="attributes"></span><b class="itemname">indexOf</b>
1412 (Node <B><i>node</i></B>)
1418 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1427 <div class="short">Returns the index of a child node</div>
1433 Returns the index of a child node
1440 <dl class="detailList">
1441 <dt class="heading">Parameters:</dt>
1444 <span class="fixedFont">Node</span> <b>node</b>
1455 <dl class="detailList">
1456 <dt class="heading">Returns:</dt>
1458 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> The index of the node or -1 if it was not found</dd>
1472 <td class="msource">
1480 <tr class="method-row config-row-alt0 expandable notInherited">
1481 <td class="micon"><a class="exi" href="#expand"> </a></td>
1485 <a id="Roo.data.Node-method-insertBefore" name=".insertBefore"></a>
1486 <div class="fixedFont">
1487 <span class="attributes"></span><b class="itemname">insertBefore</b>
1489 (Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
1504 <div class="short">Inserts the first node before the second node in this nodes childNodes collection.</div>
1510 Inserts the first node before the second node in this nodes childNodes collection.
1517 <dl class="detailList">
1518 <dt class="heading">Parameters:</dt>
1521 <span class="fixedFont">Node</span> <b>node</b>
1524 <dd>The node to insert</dd>
1527 <span class="fixedFont">Node</span> <b>refNode</b>
1530 <dd>The node to insert before (if null the node is appended)</dd>
1538 <dl class="detailList">
1539 <dt class="heading">Returns:</dt>
1541 <dd><span class="fixedFont">Node</span> The inserted node</dd>
1555 <td class="msource">
1563 <tr class="method-row config-row-alt1 expandable notInherited">
1564 <td class="micon"><a class="exi" href="#expand"> </a></td>
1568 <a id="Roo.data.Node-method-isAncestor" name=".isAncestor"></a>
1569 <div class="fixedFont">
1570 <span class="attributes"></span><b class="itemname">isAncestor</b>
1572 (Node <B><i>node</i></B>)
1578 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1587 <div class="short">Returns true if the passed node is an ancestor (at any point) of this node.</div>
1593 Returns true if the passed node is an ancestor (at any point) of this node.
1600 <dl class="detailList">
1601 <dt class="heading">Parameters:</dt>
1604 <span class="fixedFont">Node</span> <b>node</b>
1615 <dl class="detailList">
1616 <dt class="heading">Returns:</dt>
1618 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1632 <td class="msource">
1640 <tr class="method-row config-row-alt0 expandable notInherited">
1641 <td class="micon"><a class="exi" href="#expand"> </a></td>
1645 <a id="Roo.data.Node-method-isFirst" name=".isFirst"></a>
1646 <div class="fixedFont">
1647 <span class="attributes"></span><b class="itemname">isFirst</b>
1655 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1664 <div class="short">Returns true if this node is the first child of its parent</div>
1670 Returns true if this node is the first child of its parent
1681 <dl class="detailList">
1682 <dt class="heading">Returns:</dt>
1684 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1698 <td class="msource">
1706 <tr class="method-row config-row-alt1 expandable notInherited">
1707 <td class="micon"><a class="exi" href="#expand"> </a></td>
1711 <a id="Roo.data.Node-method-isLast" name=".isLast"></a>
1712 <div class="fixedFont">
1713 <span class="attributes"></span><b class="itemname">isLast</b>
1721 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1730 <div class="short">Returns true if this node is the last child of its parent</div>
1736 Returns true if this node is the last child of its parent
1747 <dl class="detailList">
1748 <dt class="heading">Returns:</dt>
1750 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1764 <td class="msource">
1772 <tr class="method-row config-row-alt0 expandable notInherited">
1773 <td class="micon"><a class="exi" href="#expand"> </a></td>
1777 <a id="Roo.data.Node-method-isLeaf" name=".isLeaf"></a>
1778 <div class="fixedFont">
1779 <span class="attributes"></span><b class="itemname">isLeaf</b>
1787 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1796 <div class="short">Returns true if this node is a leaf</div>
1802 Returns true if this node is a leaf
1813 <dl class="detailList">
1814 <dt class="heading">Returns:</dt>
1816 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1830 <td class="msource">
1838 <tr class="method-row config-row-alt1 expandable notInherited">
1839 <td class="micon"><a class="exi" href="#expand"> </a></td>
1843 <a id="Roo.data.Node-method-item" name=".item"></a>
1844 <div class="fixedFont">
1845 <span class="attributes"></span><b class="itemname">item</b>
1847 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1862 <div class="short">Returns the child node at the specified index.</div>
1868 Returns the child node at the specified index.
1875 <dl class="detailList">
1876 <dt class="heading">Parameters:</dt>
1879 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1890 <dl class="detailList">
1891 <dt class="heading">Returns:</dt>
1893 <dd><span class="fixedFont">Node</span> </dd>
1907 <td class="msource">
1915 <tr class="method-row config-row-alt0 expandable">
1916 <td class="micon"><a class="exi" href="#expand"> </a></td>
1920 <a id="Roo.util.Observable-method-on" name=".on"></a>
1921 <div class="fixedFont">
1922 <span class="attributes"></span><b class="itemname">on</b>
1924 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>options</i></B>)
1931 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1937 Appends an event handler to this element (shorthand for addListener)
1944 <dl class="detailList">
1945 <dt class="heading">Parameters:</dt>
1948 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1951 <dd>The type of event to listen for</dd>
1954 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1957 <dd>The method the event invokes</dd>
1960 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
1963 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1966 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>options</b>
1987 <td class="msource">
1989 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1995 <tr class="method-row config-row-alt1 expandable">
1996 <td class="micon"><a class="exi" href="#expand"> </a></td>
2000 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
2001 <div class="fixedFont">
2002 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2011 <div class="short">Removes all listeners for this object</div>
2017 Removes all listeners for this object
2038 <td class="msource">
2040 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2046 <tr class="method-row config-row-alt0 expandable notInherited">
2047 <td class="micon"><a class="exi" href="#expand"> </a></td>
2051 <a id="Roo.data.Node-method-removeChild" name=".removeChild"></a>
2052 <div class="fixedFont">
2053 <span class="attributes"></span><b class="itemname">removeChild</b>
2055 (Node <B><i>node</i></B>)
2070 <div class="short">Removes a child node from this node.</div>
2076 Removes a child node from this node.
2083 <dl class="detailList">
2084 <dt class="heading">Parameters:</dt>
2087 <span class="fixedFont">Node</span> <b>node</b>
2090 <dd>The node to remove</dd>
2098 <dl class="detailList">
2099 <dt class="heading">Returns:</dt>
2101 <dd><span class="fixedFont">Node</span> The removed node</dd>
2115 <td class="msource">
2123 <tr class="method-row config-row-alt1 expandable">
2124 <td class="micon"><a class="exi" href="#expand"> </a></td>
2128 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2129 <div class="fixedFont">
2130 <span class="attributes"></span><b class="itemname">removeListener</b>
2132 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2139 <div class="short">Removes a listener</div>
2152 <dl class="detailList">
2153 <dt class="heading">Parameters:</dt>
2156 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2159 <dd>The type of event to listen for</dd>
2162 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2165 <dd>The handler to remove</dd>
2168 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2171 <dd>(optional) The scope (this object) for the handler</dd>
2189 <td class="msource">
2191 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2197 <tr class="method-row config-row-alt0 expandable notInherited">
2198 <td class="micon"><a class="exi" href="#expand"> </a></td>
2202 <a id="Roo.data.Node-method-replaceChild" name=".replaceChild"></a>
2203 <div class="fixedFont">
2204 <span class="attributes"></span><b class="itemname">replaceChild</b>
2206 (Node <B><i>newChild</i></B>, Node <B><i>oldChild</i></B>)
2221 <div class="short">Replaces one child node in this node with another.</div>
2227 Replaces one child node in this node with another.
2234 <dl class="detailList">
2235 <dt class="heading">Parameters:</dt>
2238 <span class="fixedFont">Node</span> <b>newChild</b>
2241 <dd>The replacement node</dd>
2244 <span class="fixedFont">Node</span> <b>oldChild</b>
2247 <dd>The node to replace</dd>
2255 <dl class="detailList">
2256 <dt class="heading">Returns:</dt>
2258 <dd><span class="fixedFont">Node</span> The replaced node</dd>
2272 <td class="msource">
2280 <tr class="method-row config-row-alt1 expandable notInherited">
2281 <td class="micon"><a class="exi" href="#expand"> </a></td>
2285 <a id="Roo.data.Node-method-sort" name=".sort"></a>
2286 <div class="fixedFont">
2287 <span class="attributes"></span><b class="itemname">sort</b>
2289 (<a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>fn</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2296 <div class="short">Sorts this nodes children using the supplied sort function</div>
2302 Sorts this nodes children using the supplied sort function
2309 <dl class="detailList">
2310 <dt class="heading">Parameters:</dt>
2313 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2319 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2340 <td class="msource">
2348 <tr class="method-row config-row-alt0 expandable">
2349 <td class="micon"><a class="exi" href="#expand"> </a></td>
2353 <a id="Roo.util.Observable-method-un" name=".un"></a>
2354 <div class="fixedFont">
2355 <span class="attributes"></span><b class="itemname">un</b>
2357 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>handler</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>scope</i></B>)
2364 <div class="short">Removes a listener (shorthand for removeListener)</div>
2370 Removes a listener (shorthand for removeListener)
2377 <dl class="detailList">
2378 <dt class="heading">Parameters:</dt>
2381 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2384 <dd>The type of event to listen for</dd>
2387 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2390 <dd>The handler to remove</dd>
2393 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>scope</b>
2396 <dd>(optional) The scope (this object) for the handler</dd>
2414 <td class="msource">
2416 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2425 <!-- ============================== events summary / details ======================== -->
2428 <a id="Roo.data.Node-events"></a>
2437 <table cellspacing="0" class="member-table">
2438 <caption>Events</caption>
2441 <th class="sig-header" colspan="2">Event</th>
2442 <th class="msource-header">Defined By</th>
2451 <tr class="method-row expandable config-row-alt0 notInherited">
2452 <td class="micon"><a class="exi" href="#expand"> </a></td>
2455 <a id="Roo.data.Node-event-*append"></a>
2457 <div class="fixedFont">
2458 <b class="itemname">append</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2464 <div class="short">Fires when a new child node is appended
2470 Fires when a new child node is appended
2476 <dl class="detailList">
2477 <dt class="heading">Parameters:</dt>
2480 <span class="fixedFont">Tree</span> <b>tree</b>
2483 <dd>The owner tree</dd>
2486 <span class="fixedFont">Node</span> <b>this</b>
2492 <span class="fixedFont">Node</span> <b>node</b>
2495 <dd>The newly appended node</dd>
2498 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2501 <dd>The index of the newly appended node</dd>
2519 <td class="msource">
2524 <tr class="method-row expandable config-row-alt1 notInherited">
2525 <td class="micon"><a class="exi" href="#expand"> </a></td>
2528 <a id="Roo.data.Node-event-*beforeappend"></a>
2530 <div class="fixedFont">
2531 <b class="itemname">beforeappend</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2537 <div class="short">Fires before a new child is appended, return false to cancel the append.
2543 Fires before a new child is appended, return false to cancel the append.
2549 <dl class="detailList">
2550 <dt class="heading">Parameters:</dt>
2553 <span class="fixedFont">Tree</span> <b>tree</b>
2556 <dd>The owner tree</dd>
2559 <span class="fixedFont">Node</span> <b>this</b>
2565 <span class="fixedFont">Node</span> <b>node</b>
2568 <dd>The child node to be appended</dd>
2586 <td class="msource">
2591 <tr class="method-row expandable config-row-alt0 notInherited">
2592 <td class="micon"><a class="exi" href="#expand"> </a></td>
2595 <a id="Roo.data.Node-event-*beforeinsert"></a>
2597 <div class="fixedFont">
2598 <b class="itemname">beforeinsert</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
2604 <div class="short">Fires before a new child is inserted, return false to cancel the insert.
2610 Fires before a new child is inserted, return false to cancel the insert.
2616 <dl class="detailList">
2617 <dt class="heading">Parameters:</dt>
2620 <span class="fixedFont">Tree</span> <b>tree</b>
2623 <dd>The owner tree</dd>
2626 <span class="fixedFont">Node</span> <b>this</b>
2632 <span class="fixedFont">Node</span> <b>node</b>
2635 <dd>The child node to be inserted</dd>
2638 <span class="fixedFont">Node</span> <b>refNode</b>
2641 <dd>The child node the node is being inserted before</dd>
2659 <td class="msource">
2664 <tr class="method-row expandable config-row-alt1 notInherited">
2665 <td class="micon"><a class="exi" href="#expand"> </a></td>
2668 <a id="Roo.data.Node-event-*beforemove"></a>
2670 <div class="fixedFont">
2671 <b class="itemname">beforemove</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>oldParent</i></B>, Node <B><i>newParent</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2677 <div class="short">Fires before this node is moved to a new location in the tree.
2683 Fires before this node is moved to a new location in the tree. Return false to cancel the move.
2689 <dl class="detailList">
2690 <dt class="heading">Parameters:</dt>
2693 <span class="fixedFont">Tree</span> <b>tree</b>
2696 <dd>The owner tree</dd>
2699 <span class="fixedFont">Node</span> <b>this</b>
2705 <span class="fixedFont">Node</span> <b>oldParent</b>
2708 <dd>The parent of this node</dd>
2711 <span class="fixedFont">Node</span> <b>newParent</b>
2714 <dd>The new parent this node is moving to</dd>
2717 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2720 <dd>The index it is being moved to</dd>
2738 <td class="msource">
2743 <tr class="method-row expandable config-row-alt0 notInherited">
2744 <td class="micon"><a class="exi" href="#expand"> </a></td>
2747 <a id="Roo.data.Node-event-*beforeremove"></a>
2749 <div class="fixedFont">
2750 <b class="itemname">beforeremove</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2756 <div class="short">Fires before a child is removed, return false to cancel the remove.
2762 Fires before a child is removed, return false to cancel the remove.
2768 <dl class="detailList">
2769 <dt class="heading">Parameters:</dt>
2772 <span class="fixedFont">Tree</span> <b>tree</b>
2775 <dd>The owner tree</dd>
2778 <span class="fixedFont">Node</span> <b>this</b>
2784 <span class="fixedFont">Node</span> <b>node</b>
2787 <dd>The child node to be removed</dd>
2805 <td class="msource">
2810 <tr class="method-row expandable config-row-alt1 notInherited">
2811 <td class="micon"><a class="exi" href="#expand"> </a></td>
2814 <a id="Roo.data.Node-event-*insert"></a>
2816 <div class="fixedFont">
2817 <b class="itemname">insert</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
2823 <div class="short">Fires when a new child node is inserted.
2829 Fires when a new child node is inserted.
2835 <dl class="detailList">
2836 <dt class="heading">Parameters:</dt>
2839 <span class="fixedFont">Tree</span> <b>tree</b>
2842 <dd>The owner tree</dd>
2845 <span class="fixedFont">Node</span> <b>this</b>
2851 <span class="fixedFont">Node</span> <b>node</b>
2854 <dd>The child node inserted</dd>
2857 <span class="fixedFont">Node</span> <b>refNode</b>
2860 <dd>The child node the node was inserted before</dd>
2878 <td class="msource">
2883 <tr class="method-row expandable config-row-alt0 notInherited">
2884 <td class="micon"><a class="exi" href="#expand"> </a></td>
2887 <a id="Roo.data.Node-event-*move"></a>
2889 <div class="fixedFont">
2890 <b class="itemname">move</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>oldParent</i></B>, Node <B><i>newParent</i></B>, <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
2896 <div class="short">Fires when this node is moved to a new location in the tree
2902 Fires when this node is moved to a new location in the tree
2908 <dl class="detailList">
2909 <dt class="heading">Parameters:</dt>
2912 <span class="fixedFont">Tree</span> <b>tree</b>
2915 <dd>The owner tree</dd>
2918 <span class="fixedFont">Node</span> <b>this</b>
2924 <span class="fixedFont">Node</span> <b>oldParent</b>
2927 <dd>The old parent of this node</dd>
2930 <span class="fixedFont">Node</span> <b>newParent</b>
2933 <dd>The new parent of this node</dd>
2936 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2939 <dd>The index it was moved to</dd>
2957 <td class="msource">
2962 <tr class="method-row expandable config-row-alt1 notInherited">
2963 <td class="micon"><a class="exi" href="#expand"> </a></td>
2966 <a id="Roo.data.Node-event-*remove"></a>
2968 <div class="fixedFont">
2969 <b class="itemname">remove</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2975 <div class="short">Fires when a child node is removed
2981 Fires when a child node is removed
2987 <dl class="detailList">
2988 <dt class="heading">Parameters:</dt>
2991 <span class="fixedFont">Tree</span> <b>tree</b>
2994 <dd>The owner tree</dd>
2997 <span class="fixedFont">Node</span> <b>this</b>
3003 <span class="fixedFont">Node</span> <b>node</b>
3006 <dd>The removed node</dd>
3024 <td class="msource">
3036 <!-- ============================== footer ================================= -->
3037 <div class="fineprint" style="clear:both">
3039 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Tue Mar 08 2016 12:35:12 GMT+0800 (HKT)
3041 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>