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>
150 <div class="long">The id for this node. If one is not specified, one is generated.</div>
164 <tr class="config-row expandable config-row-alt1 notInherited">
165 <td class="micon"><a class="exi" href="#expand"> </a></td>
168 <a id="Roo.data.Node-cfg-leaf" name=".leaf"></a>
169 <div class="fixedFont">
170 <b class="itemname">leaf</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
176 <div class="short">true if this node is a leaf and does not have children</div>
180 <div class="long">true if this node is a leaf and does not have children</div>
194 <tr class="config-row expandable config-row-alt0">
195 <td class="micon"><a class="exi" href="#expand"> </a></td>
198 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
199 <div class="fixedFont">
200 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
206 <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>
210 <div class="long">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></div>
218 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
234 <!-- ============================== public properties ==================== -->
238 <a id="Roo.data.Node-props"></a>
244 <table cellspacing="0" class="member-table">
245 <caption class="Empty">Public Properties - Has None</caption>
251 <!-- ============================== methods summary / details ======================== -->
254 <a id="Roo.data.Node-methods"></a>
255 <!-- constructor?? -->
262 <!-- then dynamics first -->
269 <table cellspacing="0" class="member-table">
270 <caption>Public Methods</caption>
272 <th class="sig-header" colspan="2">Method</th>
273 <th class="msource-header">Defined By</th>
283 <tr class="method-row config-row-alt0 expandable notInherited">
284 <td class="micon"><a class="exi" href="#expand"> </a></td>
288 <a id="Roo.data-method-Node" name=".Node"></a>
289 <div class="fixedFont">
290 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">Node</b>
292 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>attributes</i></B>)
300 <div class="short">Create a new Roo.data.Node</div>
307 Create a new Roo.data.Node
310 <dl class="detailList">
311 <dt class="heading">Parameters:</dt>
314 <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>
317 <dd>The attributes/config for the node</dd>
341 <tr class="method-row config-row-alt1 expandable">
342 <td class="micon"><a class="exi" href="#expand"> </a></td>
346 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
347 <div class="fixedFont">
348 <span class="attributes"></span><b class="itemname">addEvents</b>
350 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
357 <div class="short">Used to define events on this Observable</div>
363 Used to define events on this Observable
370 <dl class="detailList">
371 <dt class="heading">Parameters:</dt>
374 <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>
377 <dd>The object with the events defined</dd>
397 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
403 <tr class="method-row config-row-alt0 expandable">
404 <td class="micon"><a class="exi" href="#expand"> </a></td>
408 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
409 <div class="fixedFont">
410 <span class="attributes"></span><b class="itemname">addListener</b>
412 (<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>)
419 <div class="short">Appends an event handler to this component</div>
425 Appends an event handler to this component
432 <dl class="detailList">
433 <dt class="heading">Parameters:</dt>
436 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
439 <dd>The type of event to listen for</dd>
442 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
445 <dd>The method the event invokes</dd>
448 <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>
451 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
454 <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>
457 <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>
477 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
483 <tr class="method-row config-row-alt1 expandable notInherited">
484 <td class="micon"><a class="exi" href="#expand"> </a></td>
488 <a id="Roo.data.Node-method-appendChild" name=".appendChild"></a>
489 <div class="fixedFont">
490 <span class="attributes"></span><b class="itemname">appendChild</b>
492 (Node/Array <B><i>node</i></B>)
507 <div class="short">Insert node(s) as the last child node of this node.</div>
513 Insert node(s) as the last child node of this node.
520 <dl class="detailList">
521 <dt class="heading">Parameters:</dt>
524 <span class="fixedFont">Node/Array</span> <b>node</b>
527 <dd>The node or Array of nodes to append</dd>
535 <dl class="detailList">
536 <dt class="heading">Returns:</dt>
538 <dd><span class="fixedFont">Node</span> The appended node if single append, or null if an array was passed</dd>
560 <tr class="method-row config-row-alt0 expandable notInherited">
561 <td class="micon"><a class="exi" href="#expand"> </a></td>
565 <a id="Roo.data.Node-method-bubble" name=".bubble"></a>
566 <div class="fixedFont">
567 <span class="attributes"></span><b class="itemname">bubble</b>
569 (<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>)
576 <div class="short">Bubbles up the tree from this node, calling the specified function with each node.</div>
582 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.
589 <dl class="detailList">
590 <dt class="heading">Parameters:</dt>
593 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
596 <dd>The function to call</dd>
599 <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>
602 <dd>(optional) The scope of the function (defaults to current node)</dd>
605 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
608 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
634 <tr class="method-row config-row-alt1 expandable notInherited">
635 <td class="micon"><a class="exi" href="#expand"> </a></td>
639 <a id="Roo.data.Node-method-cascade" name=".cascade"></a>
640 <div class="fixedFont">
641 <span class="attributes"></span><b class="itemname">cascade</b>
643 (<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>)
650 <div class="short">Cascades down the tree from this node, calling the specified function with each node.</div>
656 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.
663 <dl class="detailList">
664 <dt class="heading">Parameters:</dt>
667 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
670 <dd>The function to call</dd>
673 <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>
676 <dd>(optional) The scope of the function (defaults to current node)</dd>
679 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
682 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
708 <tr class="method-row config-row-alt0 expandable notInherited">
709 <td class="micon"><a class="exi" href="#expand"> </a></td>
713 <a id="Roo.data.Node-method-contains" name=".contains"></a>
714 <div class="fixedFont">
715 <span class="attributes"></span><b class="itemname">contains</b>
717 (Node <B><i>node</i></B>)
723 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
732 <div class="short">Returns true if this node is an ancestor (at any point) of the passed node.</div>
738 Returns true if this node is an ancestor (at any point) of the passed node.
745 <dl class="detailList">
746 <dt class="heading">Parameters:</dt>
749 <span class="fixedFont">Node</span> <b>node</b>
760 <dl class="detailList">
761 <dt class="heading">Returns:</dt>
763 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
785 <tr class="method-row config-row-alt1 expandable notInherited">
786 <td class="micon"><a class="exi" href="#expand"> </a></td>
790 <a id="Roo.data.Node-method-eachChild" name=".eachChild"></a>
791 <div class="fixedFont">
792 <span class="attributes"></span><b class="itemname">eachChild</b>
794 (<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>)
801 <div class="short">Interates the child nodes of this node, calling the specified function with each node.</div>
807 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.
814 <dl class="detailList">
815 <dt class="heading">Parameters:</dt>
818 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
821 <dd>The function to call</dd>
824 <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>
827 <dd>(optional) The scope of the function (defaults to current node)</dd>
830 <span class="fixedFont"><a href="./Array.html#constructor" roo:cls="Array.html#constructor">Array</a></span> <b>args</b>
833 <dd>(optional) The args to call the function with (default to passing the current node)</dd>
859 <tr class="method-row config-row-alt0 expandable notInherited">
860 <td class="micon"><a class="exi" href="#expand"> </a></td>
864 <a id="Roo.data.Node-method-findChild" name=".findChild"></a>
865 <div class="fixedFont">
866 <span class="attributes"></span><b class="itemname">findChild</b>
868 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>attribute</i></B>, Mixed <B><i>value</i></B>)
883 <div class="short">Finds the first child that has the attribute with the specified value.</div>
889 Finds the first child that has the attribute with the specified value.
896 <dl class="detailList">
897 <dt class="heading">Parameters:</dt>
900 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>attribute</b>
903 <dd>The attribute name</dd>
906 <span class="fixedFont">Mixed</span> <b>value</b>
909 <dd>The value to search for</dd>
917 <dl class="detailList">
918 <dt class="heading">Returns:</dt>
920 <dd><span class="fixedFont">Node</span> The found child or null if none was found</dd>
942 <tr class="method-row config-row-alt1 expandable notInherited">
943 <td class="micon"><a class="exi" href="#expand"> </a></td>
947 <a id="Roo.data.Node-method-findChildBy" name=".findChildBy"></a>
948 <div class="fixedFont">
949 <span class="attributes"></span><b class="itemname">findChildBy</b>
951 (<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>)
966 <div class="short">Finds the first child by a custom function.</div>
972 Finds the first child by a custom function. The child matches if the function passed<br/>returns true.
979 <dl class="detailList">
980 <dt class="heading">Parameters:</dt>
983 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
989 <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>
1000 <dl class="detailList">
1001 <dt class="heading">Returns:</dt>
1003 <dd><span class="fixedFont">Node</span> The found child or null if none was found</dd>
1017 <td class="msource">
1025 <tr class="method-row config-row-alt0 expandable">
1026 <td class="micon"><a class="exi" href="#expand"> </a></td>
1030 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
1031 <div class="fixedFont">
1032 <span class="attributes"></span><b class="itemname">fireEvent</b>
1034 (<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>)
1040 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1049 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
1055 Fires the specified event with the passed parameters (minus the event name).
1062 <dl class="detailList">
1063 <dt class="heading">Parameters:</dt>
1066 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1072 <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>
1075 <dd>Variable number of parameters are passed to handlers</dd>
1083 <dl class="detailList">
1084 <dt class="heading">Returns:</dt>
1086 <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>
1100 <td class="msource">
1102 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1108 <tr class="method-row config-row-alt1 expandable notInherited">
1109 <td class="micon"><a class="exi" href="#expand"> </a></td>
1113 <a id="Roo.data.Node-method-getDepth" name=".getDepth"></a>
1114 <div class="fixedFont">
1115 <span class="attributes"></span><b class="itemname">getDepth</b>
1123 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1132 <div class="short">Returns depth of this node (the root node has a depth of 0)</div>
1138 Returns depth of this node (the root node has a depth of 0)
1149 <dl class="detailList">
1150 <dt class="heading">Returns:</dt>
1152 <dd><span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> </dd>
1166 <td class="msource">
1174 <tr class="method-row config-row-alt0 expandable notInherited">
1175 <td class="micon"><a class="exi" href="#expand"> </a></td>
1179 <a id="Roo.data.Node-method-getOwnerTree" name=".getOwnerTree"></a>
1180 <div class="fixedFont">
1181 <span class="attributes"></span><b class="itemname">getOwnerTree</b>
1198 <div class="short">Returns the tree this node is in.</div>
1204 Returns the tree this node is in.
1215 <dl class="detailList">
1216 <dt class="heading">Returns:</dt>
1218 <dd><span class="fixedFont">Tree</span> </dd>
1232 <td class="msource">
1240 <tr class="method-row config-row-alt1 expandable notInherited">
1241 <td class="micon"><a class="exi" href="#expand"> </a></td>
1245 <a id="Roo.data.Node-method-getPath" name=".getPath"></a>
1246 <div class="fixedFont">
1247 <span class="attributes"></span><b class="itemname">getPath</b>
1249 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>attr</i></B>)
1255 <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
1264 <div class="short">Returns the path for this node.</div>
1270 Returns the path for this node. The path can be used to expand or select this node programmatically.
1277 <dl class="detailList">
1278 <dt class="heading">Parameters:</dt>
1281 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>attr</b>
1284 <dd>(optional) The attr to use for the path (defaults to the node's id)</dd>
1292 <dl class="detailList">
1293 <dt class="heading">Returns:</dt>
1295 <dd><span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> The path</dd>
1309 <td class="msource">
1317 <tr class="method-row config-row-alt0 expandable">
1318 <td class="micon"><a class="exi" href="#expand"> </a></td>
1322 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
1323 <div class="fixedFont">
1324 <span class="attributes"></span><b class="itemname">hasListener</b>
1326 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
1332 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1341 <div class="short">Checks to see if this object has any listeners for a specified event</div>
1347 Checks to see if this object has any listeners for a specified event
1354 <dl class="detailList">
1355 <dt class="heading">Parameters:</dt>
1358 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1361 <dd>The name of the event to check for</dd>
1369 <dl class="detailList">
1370 <dt class="heading">Returns:</dt>
1372 <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>
1386 <td class="msource">
1388 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1394 <tr class="method-row config-row-alt1 expandable notInherited">
1395 <td class="micon"><a class="exi" href="#expand"> </a></td>
1399 <a id="Roo.data.Node-method-indexOf" name=".indexOf"></a>
1400 <div class="fixedFont">
1401 <span class="attributes"></span><b class="itemname">indexOf</b>
1403 (Node <B><i>node</i></B>)
1409 <a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a>
1418 <div class="short">Returns the index of a child node</div>
1424 Returns the index of a child node
1431 <dl class="detailList">
1432 <dt class="heading">Parameters:</dt>
1435 <span class="fixedFont">Node</span> <b>node</b>
1446 <dl class="detailList">
1447 <dt class="heading">Returns:</dt>
1449 <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>
1463 <td class="msource">
1471 <tr class="method-row config-row-alt0 expandable notInherited">
1472 <td class="micon"><a class="exi" href="#expand"> </a></td>
1476 <a id="Roo.data.Node-method-insertBefore" name=".insertBefore"></a>
1477 <div class="fixedFont">
1478 <span class="attributes"></span><b class="itemname">insertBefore</b>
1480 (Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
1495 <div class="short">Inserts the first node before the second node in this nodes childNodes collection.</div>
1501 Inserts the first node before the second node in this nodes childNodes collection.
1508 <dl class="detailList">
1509 <dt class="heading">Parameters:</dt>
1512 <span class="fixedFont">Node</span> <b>node</b>
1515 <dd>The node to insert</dd>
1518 <span class="fixedFont">Node</span> <b>refNode</b>
1521 <dd>The node to insert before (if null the node is appended)</dd>
1529 <dl class="detailList">
1530 <dt class="heading">Returns:</dt>
1532 <dd><span class="fixedFont">Node</span> The inserted node</dd>
1546 <td class="msource">
1554 <tr class="method-row config-row-alt1 expandable notInherited">
1555 <td class="micon"><a class="exi" href="#expand"> </a></td>
1559 <a id="Roo.data.Node-method-isAncestor" name=".isAncestor"></a>
1560 <div class="fixedFont">
1561 <span class="attributes"></span><b class="itemname">isAncestor</b>
1563 (Node <B><i>node</i></B>)
1569 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1578 <div class="short">Returns true if the passed node is an ancestor (at any point) of this node.</div>
1584 Returns true if the passed node is an ancestor (at any point) of this node.
1591 <dl class="detailList">
1592 <dt class="heading">Parameters:</dt>
1595 <span class="fixedFont">Node</span> <b>node</b>
1606 <dl class="detailList">
1607 <dt class="heading">Returns:</dt>
1609 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1623 <td class="msource">
1631 <tr class="method-row config-row-alt0 expandable notInherited">
1632 <td class="micon"><a class="exi" href="#expand"> </a></td>
1636 <a id="Roo.data.Node-method-isFirst" name=".isFirst"></a>
1637 <div class="fixedFont">
1638 <span class="attributes"></span><b class="itemname">isFirst</b>
1646 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1655 <div class="short">Returns true if this node is the first child of its parent</div>
1661 Returns true if this node is the first child of its parent
1672 <dl class="detailList">
1673 <dt class="heading">Returns:</dt>
1675 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1689 <td class="msource">
1697 <tr class="method-row config-row-alt1 expandable notInherited">
1698 <td class="micon"><a class="exi" href="#expand"> </a></td>
1702 <a id="Roo.data.Node-method-isLast" name=".isLast"></a>
1703 <div class="fixedFont">
1704 <span class="attributes"></span><b class="itemname">isLast</b>
1712 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1721 <div class="short">Returns true if this node is the last child of its parent</div>
1727 Returns true if this node is the last child of its parent
1738 <dl class="detailList">
1739 <dt class="heading">Returns:</dt>
1741 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1755 <td class="msource">
1763 <tr class="method-row config-row-alt0 expandable notInherited">
1764 <td class="micon"><a class="exi" href="#expand"> </a></td>
1768 <a id="Roo.data.Node-method-isLeaf" name=".isLeaf"></a>
1769 <div class="fixedFont">
1770 <span class="attributes"></span><b class="itemname">isLeaf</b>
1778 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
1787 <div class="short">Returns true if this node is a leaf</div>
1793 Returns true if this node is a leaf
1804 <dl class="detailList">
1805 <dt class="heading">Returns:</dt>
1807 <dd><span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a></span> </dd>
1821 <td class="msource">
1829 <tr class="method-row config-row-alt1 expandable notInherited">
1830 <td class="micon"><a class="exi" href="#expand"> </a></td>
1834 <a id="Roo.data.Node-method-item" name=".item"></a>
1835 <div class="fixedFont">
1836 <span class="attributes"></span><b class="itemname">item</b>
1838 (<a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a> <B><i>index</i></B>)
1853 <div class="short">Returns the child node at the specified index.</div>
1859 Returns the child node at the specified index.
1866 <dl class="detailList">
1867 <dt class="heading">Parameters:</dt>
1870 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1881 <dl class="detailList">
1882 <dt class="heading">Returns:</dt>
1884 <dd><span class="fixedFont">Node</span> </dd>
1898 <td class="msource">
1906 <tr class="method-row config-row-alt0 expandable">
1907 <td class="micon"><a class="exi" href="#expand"> </a></td>
1911 <a id="Roo.util.Observable-method-on" name=".on"></a>
1912 <div class="fixedFont">
1913 <span class="attributes"></span><b class="itemname">on</b>
1915 (<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>)
1922 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
1928 Appends an event handler to this element (shorthand for addListener)
1935 <dl class="detailList">
1936 <dt class="heading">Parameters:</dt>
1939 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1942 <dd>The type of event to listen for</dd>
1945 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1948 <dd>The method the event invokes</dd>
1951 <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>
1954 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
1957 <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>
1978 <td class="msource">
1980 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1986 <tr class="method-row config-row-alt1 expandable">
1987 <td class="micon"><a class="exi" href="#expand"> </a></td>
1991 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
1992 <div class="fixedFont">
1993 <span class="attributes"></span><b class="itemname">purgeListeners</b>
2002 <div class="short">Removes all listeners for this object</div>
2008 Removes all listeners for this object
2029 <td class="msource">
2031 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2037 <tr class="method-row config-row-alt0 expandable notInherited">
2038 <td class="micon"><a class="exi" href="#expand"> </a></td>
2042 <a id="Roo.data.Node-method-removeChild" name=".removeChild"></a>
2043 <div class="fixedFont">
2044 <span class="attributes"></span><b class="itemname">removeChild</b>
2046 (Node <B><i>node</i></B>)
2061 <div class="short">Removes a child node from this node.</div>
2067 Removes a child node from this node.
2074 <dl class="detailList">
2075 <dt class="heading">Parameters:</dt>
2078 <span class="fixedFont">Node</span> <b>node</b>
2081 <dd>The node to remove</dd>
2089 <dl class="detailList">
2090 <dt class="heading">Returns:</dt>
2092 <dd><span class="fixedFont">Node</span> The removed node</dd>
2106 <td class="msource">
2114 <tr class="method-row config-row-alt1 expandable">
2115 <td class="micon"><a class="exi" href="#expand"> </a></td>
2119 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
2120 <div class="fixedFont">
2121 <span class="attributes"></span><b class="itemname">removeListener</b>
2123 (<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>)
2130 <div class="short">Removes a listener</div>
2143 <dl class="detailList">
2144 <dt class="heading">Parameters:</dt>
2147 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2150 <dd>The type of event to listen for</dd>
2153 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2156 <dd>The handler to remove</dd>
2159 <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>
2162 <dd>(optional) The scope (this object) for the handler</dd>
2180 <td class="msource">
2182 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2188 <tr class="method-row config-row-alt0 expandable notInherited">
2189 <td class="micon"><a class="exi" href="#expand"> </a></td>
2193 <a id="Roo.data.Node-method-replaceChild" name=".replaceChild"></a>
2194 <div class="fixedFont">
2195 <span class="attributes"></span><b class="itemname">replaceChild</b>
2197 (Node <B><i>newChild</i></B>, Node <B><i>oldChild</i></B>)
2212 <div class="short">Replaces one child node in this node with another.</div>
2218 Replaces one child node in this node with another.
2225 <dl class="detailList">
2226 <dt class="heading">Parameters:</dt>
2229 <span class="fixedFont">Node</span> <b>newChild</b>
2232 <dd>The replacement node</dd>
2235 <span class="fixedFont">Node</span> <b>oldChild</b>
2238 <dd>The node to replace</dd>
2246 <dl class="detailList">
2247 <dt class="heading">Returns:</dt>
2249 <dd><span class="fixedFont">Node</span> The replaced node</dd>
2263 <td class="msource">
2271 <tr class="method-row config-row-alt1 expandable notInherited">
2272 <td class="micon"><a class="exi" href="#expand"> </a></td>
2276 <a id="Roo.data.Node-method-sort" name=".sort"></a>
2277 <div class="fixedFont">
2278 <span class="attributes"></span><b class="itemname">sort</b>
2280 (<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>)
2287 <div class="short">Sorts this nodes children using the supplied sort function</div>
2293 Sorts this nodes children using the supplied sort function
2300 <dl class="detailList">
2301 <dt class="heading">Parameters:</dt>
2304 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>fn</b>
2310 <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>
2331 <td class="msource">
2339 <tr class="method-row config-row-alt0 expandable">
2340 <td class="micon"><a class="exi" href="#expand"> </a></td>
2344 <a id="Roo.util.Observable-method-un" name=".un"></a>
2345 <div class="fixedFont">
2346 <span class="attributes"></span><b class="itemname">un</b>
2348 (<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>)
2355 <div class="short">Removes a listener (shorthand for removeListener)</div>
2361 Removes a listener (shorthand for removeListener)
2368 <dl class="detailList">
2369 <dt class="heading">Parameters:</dt>
2372 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
2375 <dd>The type of event to listen for</dd>
2378 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
2381 <dd>The handler to remove</dd>
2384 <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>
2387 <dd>(optional) The scope (this object) for the handler</dd>
2405 <td class="msource">
2407 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
2416 <!-- ============================== events summary / details ======================== -->
2419 <a id="Roo.data.Node-events"></a>
2428 <table cellspacing="0" class="member-table">
2429 <caption>Events</caption>
2432 <th class="sig-header" colspan="2">Event</th>
2433 <th class="msource-header">Defined By</th>
2442 <tr class="method-row expandable config-row-alt0 notInherited">
2443 <td class="micon"><a class="exi" href="#expand"> </a></td>
2446 <a id="Roo.data.Node-event-*append"></a>
2448 <div class="fixedFont">
2449 <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>)
2455 <div class="short">Fires when a new child node is appended
2461 Fires when a new child node is appended
2467 <dl class="detailList">
2468 <dt class="heading">Parameters:</dt>
2471 <span class="fixedFont">Tree</span> <b>tree</b>
2474 <dd>The owner tree</dd>
2477 <span class="fixedFont">Node</span> <b>this</b>
2483 <span class="fixedFont">Node</span> <b>node</b>
2486 <dd>The newly appended node</dd>
2489 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2492 <dd>The index of the newly appended node</dd>
2510 <td class="msource">
2515 <tr class="method-row expandable config-row-alt1 notInherited">
2516 <td class="micon"><a class="exi" href="#expand"> </a></td>
2519 <a id="Roo.data.Node-event-*beforeappend"></a>
2521 <div class="fixedFont">
2522 <b class="itemname">beforeappend</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2528 <div class="short">Fires before a new child is appended, return false to cancel the append.
2534 Fires before a new child is appended, return false to cancel the append.
2540 <dl class="detailList">
2541 <dt class="heading">Parameters:</dt>
2544 <span class="fixedFont">Tree</span> <b>tree</b>
2547 <dd>The owner tree</dd>
2550 <span class="fixedFont">Node</span> <b>this</b>
2556 <span class="fixedFont">Node</span> <b>node</b>
2559 <dd>The child node to be appended</dd>
2577 <td class="msource">
2582 <tr class="method-row expandable config-row-alt0 notInherited">
2583 <td class="micon"><a class="exi" href="#expand"> </a></td>
2586 <a id="Roo.data.Node-event-*beforeinsert"></a>
2588 <div class="fixedFont">
2589 <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>)
2595 <div class="short">Fires before a new child is inserted, return false to cancel the insert.
2601 Fires before a new child is inserted, return false to cancel the insert.
2607 <dl class="detailList">
2608 <dt class="heading">Parameters:</dt>
2611 <span class="fixedFont">Tree</span> <b>tree</b>
2614 <dd>The owner tree</dd>
2617 <span class="fixedFont">Node</span> <b>this</b>
2623 <span class="fixedFont">Node</span> <b>node</b>
2626 <dd>The child node to be inserted</dd>
2629 <span class="fixedFont">Node</span> <b>refNode</b>
2632 <dd>The child node the node is being inserted before</dd>
2650 <td class="msource">
2655 <tr class="method-row expandable config-row-alt1 notInherited">
2656 <td class="micon"><a class="exi" href="#expand"> </a></td>
2659 <a id="Roo.data.Node-event-*beforemove"></a>
2661 <div class="fixedFont">
2662 <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>)
2668 <div class="short">Fires before this node is moved to a new location in the tree.
2674 Fires before this node is moved to a new location in the tree. Return false to cancel the move.
2680 <dl class="detailList">
2681 <dt class="heading">Parameters:</dt>
2684 <span class="fixedFont">Tree</span> <b>tree</b>
2687 <dd>The owner tree</dd>
2690 <span class="fixedFont">Node</span> <b>this</b>
2696 <span class="fixedFont">Node</span> <b>oldParent</b>
2699 <dd>The parent of this node</dd>
2702 <span class="fixedFont">Node</span> <b>newParent</b>
2705 <dd>The new parent this node is moving to</dd>
2708 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2711 <dd>The index it is being moved to</dd>
2729 <td class="msource">
2734 <tr class="method-row expandable config-row-alt0 notInherited">
2735 <td class="micon"><a class="exi" href="#expand"> </a></td>
2738 <a id="Roo.data.Node-event-*beforeremove"></a>
2740 <div class="fixedFont">
2741 <b class="itemname">beforeremove</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2747 <div class="short">Fires before a child is removed, return false to cancel the remove.
2753 Fires before a child is removed, return false to cancel the remove.
2759 <dl class="detailList">
2760 <dt class="heading">Parameters:</dt>
2763 <span class="fixedFont">Tree</span> <b>tree</b>
2766 <dd>The owner tree</dd>
2769 <span class="fixedFont">Node</span> <b>this</b>
2775 <span class="fixedFont">Node</span> <b>node</b>
2778 <dd>The child node to be removed</dd>
2796 <td class="msource">
2801 <tr class="method-row expandable config-row-alt1 notInherited">
2802 <td class="micon"><a class="exi" href="#expand"> </a></td>
2805 <a id="Roo.data.Node-event-*insert"></a>
2807 <div class="fixedFont">
2808 <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>)
2814 <div class="short">Fires when a new child node is inserted.
2820 Fires when a new child node is inserted.
2826 <dl class="detailList">
2827 <dt class="heading">Parameters:</dt>
2830 <span class="fixedFont">Tree</span> <b>tree</b>
2833 <dd>The owner tree</dd>
2836 <span class="fixedFont">Node</span> <b>this</b>
2842 <span class="fixedFont">Node</span> <b>node</b>
2845 <dd>The child node inserted</dd>
2848 <span class="fixedFont">Node</span> <b>refNode</b>
2851 <dd>The child node the node was inserted before</dd>
2869 <td class="msource">
2874 <tr class="method-row expandable config-row-alt0 notInherited">
2875 <td class="micon"><a class="exi" href="#expand"> </a></td>
2878 <a id="Roo.data.Node-event-*move"></a>
2880 <div class="fixedFont">
2881 <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>)
2887 <div class="short">Fires when this node is moved to a new location in the tree
2893 Fires when this node is moved to a new location in the tree
2899 <dl class="detailList">
2900 <dt class="heading">Parameters:</dt>
2903 <span class="fixedFont">Tree</span> <b>tree</b>
2906 <dd>The owner tree</dd>
2909 <span class="fixedFont">Node</span> <b>this</b>
2915 <span class="fixedFont">Node</span> <b>oldParent</b>
2918 <dd>The old parent of this node</dd>
2921 <span class="fixedFont">Node</span> <b>newParent</b>
2924 <dd>The new parent of this node</dd>
2927 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
2930 <dd>The index it was moved to</dd>
2948 <td class="msource">
2953 <tr class="method-row expandable config-row-alt1 notInherited">
2954 <td class="micon"><a class="exi" href="#expand"> </a></td>
2957 <a id="Roo.data.Node-event-*remove"></a>
2959 <div class="fixedFont">
2960 <b class="itemname">remove</b> (Tree <B><i>tree</i></B>, Node <B><i>this</i></B>, Node <B><i>node</i></B>)
2966 <div class="short">Fires when a child node is removed
2972 Fires when a child node is removed
2978 <dl class="detailList">
2979 <dt class="heading">Parameters:</dt>
2982 <span class="fixedFont">Tree</span> <b>tree</b>
2985 <dd>The owner tree</dd>
2988 <span class="fixedFont">Node</span> <b>this</b>
2994 <span class="fixedFont">Node</span> <b>node</b>
2997 <dd>The removed node</dd>
3015 <td class="msource">
3027 <!-- ============================== footer ================================= -->
3028 <div class="fineprint" style="clear:both">
3030 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Apr 04 2014 19:00:10 GMT+0800 (HKT)
3032 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>