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.Tree</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.Tree-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.data.Tree-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.data.Tree-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.data.Tree-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.Tree
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">Tree</td></tr>
72 <tr><td class="label">Subclasses:</td><td class="hd-info">
73 <a href="./Roo.tree.TreePanel.html#constructor" roo:cls="Roo.tree.TreePanel.html#constructor">Roo.tree.TreePanel</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">
92 Represents a tree data structure and bubbles all the events for its nodes. The nodes<br/>in the tree have most standard DOM functionality.
96 <!-- ============================== Class comment block... ========================== -->
98 <div class="comments">
99 <b>Class Comments / Notes</B> =>
100 <u onclick="parent.CommentDialog.showCommentId = 'Roo.data.Tree';">[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.Tree.html"></iframe>
108 <!-- ============================== config options ========================== -->
113 <div class="hr"></div>
114 <a id="Roo.data.Tree-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">
135 <td class="micon"><a class="exi" href="#expand"> </a></td>
138 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
139 <div class="fixedFont">
140 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
146 <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>
151 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>
161 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
177 <!-- ============================== public properties ==================== -->
181 <a id="Roo.data.Tree-props"></a>
187 <table cellspacing="0" class="member-table">
188 <caption class="Empty">Public Properties - Has None</caption>
194 <!-- ============================== methods summary / details ======================== -->
197 <a id="Roo.data.Tree-methods"></a>
198 <!-- constructor?? -->
205 <!-- then dynamics first -->
212 <table cellspacing="0" class="member-table">
213 <caption>Public Methods</caption>
215 <th class="sig-header" colspan="2">Method</th>
216 <th class="msource-header">Defined By</th>
226 <tr class="method-row config-row-alt0 expandable notInherited">
227 <td class="micon"><a class="exi" href="#expand"> </a></td>
231 <a id="Roo.data-method-Tree" name=".Tree"></a>
232 <div class="fixedFont">
233 <span class="attributes">new <B>Roo.data.</B></span><b class="itemname">Tree</b>
235 (Node <B><i>root</i></B>)
243 <div class="short">Create a new Roo.data.Tree</div>
250 Create a new Roo.data.Tree
253 <dl class="detailList">
254 <dt class="heading">Parameters:</dt>
257 <span class="fixedFont">Node</span> <b>root</b>
260 <dd>(optional) The root node</dd>
284 <tr class="method-row config-row-alt1 expandable">
285 <td class="micon"><a class="exi" href="#expand"> </a></td>
289 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
290 <div class="fixedFont">
291 <span class="attributes"></span><b class="itemname">addEvents</b>
293 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
300 <div class="short">Used to define events on this Observable</div>
306 Used to define events on this Observable
313 <dl class="detailList">
314 <dt class="heading">Parameters:</dt>
317 <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>
320 <dd>The object with the events defined</dd>
340 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
346 <tr class="method-row config-row-alt0 expandable">
347 <td class="micon"><a class="exi" href="#expand"> </a></td>
351 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
352 <div class="fixedFont">
353 <span class="attributes"></span><b class="itemname">addListener</b>
355 (<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>)
362 <div class="short">Appends an event handler to this component</div>
368 Appends an event handler to this component
375 <dl class="detailList">
376 <dt class="heading">Parameters:</dt>
379 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
382 <dd>The type of event to listen for</dd>
385 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
388 <dd>The method the event invokes</dd>
391 <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>
394 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
397 <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>
400 <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>
420 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
426 <tr class="method-row config-row-alt1 expandable">
427 <td class="micon"><a class="exi" href="#expand"> </a></td>
431 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
432 <div class="fixedFont">
433 <span class="attributes"></span><b class="itemname">fireEvent</b>
435 (<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>)
441 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
450 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
456 Fires the specified event with the passed parameters (minus the event name).
463 <dl class="detailList">
464 <dt class="heading">Parameters:</dt>
467 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
473 <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>
476 <dd>Variable number of parameters are passed to handlers</dd>
484 <dl class="detailList">
485 <dt class="heading">Returns:</dt>
487 <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>
503 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
509 <tr class="method-row config-row-alt0 expandable notInherited">
510 <td class="micon"><a class="exi" href="#expand"> </a></td>
514 <a id="Roo.data.Tree-method-getNodeById" name=".getNodeById"></a>
515 <div class="fixedFont">
516 <span class="attributes"></span><b class="itemname">getNodeById</b>
518 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>id</i></B>)
533 <div class="short">Gets a node in this tree by its id.</div>
539 Gets a node in this tree by its id.
546 <dl class="detailList">
547 <dt class="heading">Parameters:</dt>
550 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>id</b>
561 <dl class="detailList">
562 <dt class="heading">Returns:</dt>
564 <dd><span class="fixedFont">Node</span> </dd>
586 <tr class="method-row config-row-alt1 expandable notInherited">
587 <td class="micon"><a class="exi" href="#expand"> </a></td>
591 <a id="Roo.data.Tree-method-getRootNode" name=".getRootNode"></a>
592 <div class="fixedFont">
593 <span class="attributes"></span><b class="itemname">getRootNode</b>
610 <div class="short">Returns the root node for this tree.</div>
616 Returns the root node for this tree.
627 <dl class="detailList">
628 <dt class="heading">Returns:</dt>
630 <dd><span class="fixedFont">Node</span> </dd>
652 <tr class="method-row config-row-alt0 expandable">
653 <td class="micon"><a class="exi" href="#expand"> </a></td>
657 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
658 <div class="fixedFont">
659 <span class="attributes"></span><b class="itemname">hasListener</b>
661 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
667 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
676 <div class="short">Checks to see if this object has any listeners for a specified event</div>
682 Checks to see if this object has any listeners for a specified event
689 <dl class="detailList">
690 <dt class="heading">Parameters:</dt>
693 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
696 <dd>The name of the event to check for</dd>
704 <dl class="detailList">
705 <dt class="heading">Returns:</dt>
707 <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>
723 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
729 <tr class="method-row config-row-alt1 expandable">
730 <td class="micon"><a class="exi" href="#expand"> </a></td>
734 <a id="Roo.util.Observable-method-on" name=".on"></a>
735 <div class="fixedFont">
736 <span class="attributes"></span><b class="itemname">on</b>
738 (<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>)
745 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
751 Appends an event handler to this element (shorthand for addListener)
758 <dl class="detailList">
759 <dt class="heading">Parameters:</dt>
762 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
765 <dd>The type of event to listen for</dd>
768 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
771 <dd>The method the event invokes</dd>
774 <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>
777 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
780 <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>
803 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
809 <tr class="method-row config-row-alt0 expandable">
810 <td class="micon"><a class="exi" href="#expand"> </a></td>
814 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
815 <div class="fixedFont">
816 <span class="attributes"></span><b class="itemname">purgeListeners</b>
825 <div class="short">Removes all listeners for this object</div>
831 Removes all listeners for this object
854 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
860 <tr class="method-row config-row-alt1 expandable">
861 <td class="micon"><a class="exi" href="#expand"> </a></td>
865 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
866 <div class="fixedFont">
867 <span class="attributes"></span><b class="itemname">removeListener</b>
869 (<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>)
876 <div class="short">Removes a listener</div>
889 <dl class="detailList">
890 <dt class="heading">Parameters:</dt>
893 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
896 <dd>The type of event to listen for</dd>
899 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
902 <dd>The handler to remove</dd>
905 <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>
908 <dd>(optional) The scope (this object) for the handler</dd>
928 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
934 <tr class="method-row config-row-alt0 expandable notInherited">
935 <td class="micon"><a class="exi" href="#expand"> </a></td>
939 <a id="Roo.data.Tree-method-setRootNode" name=".setRootNode"></a>
940 <div class="fixedFont">
941 <span class="attributes"></span><b class="itemname">setRootNode</b>
943 (Node <B><i>node</i></B>)
958 <div class="short">Sets the root node for this tree.</div>
964 Sets the root node for this tree.
971 <dl class="detailList">
972 <dt class="heading">Parameters:</dt>
975 <span class="fixedFont">Node</span> <b>node</b>
986 <dl class="detailList">
987 <dt class="heading">Returns:</dt>
989 <dd><span class="fixedFont">Node</span> </dd>
1003 <td class="msource">
1011 <tr class="method-row config-row-alt1 expandable">
1012 <td class="micon"><a class="exi" href="#expand"> </a></td>
1016 <a id="Roo.util.Observable-method-un" name=".un"></a>
1017 <div class="fixedFont">
1018 <span class="attributes"></span><b class="itemname">un</b>
1020 (<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>)
1027 <div class="short">Removes a listener (shorthand for removeListener)</div>
1033 Removes a listener (shorthand for removeListener)
1040 <dl class="detailList">
1041 <dt class="heading">Parameters:</dt>
1044 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1047 <dd>The type of event to listen for</dd>
1050 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1053 <dd>The handler to remove</dd>
1056 <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>
1059 <dd>(optional) The scope (this object) for the handler</dd>
1077 <td class="msource">
1079 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1088 <!-- ============================== events summary / details ======================== -->
1091 <a id="Roo.data.Tree-events"></a>
1100 <table cellspacing="0" class="member-table">
1101 <caption>Events</caption>
1104 <th class="sig-header" colspan="2">Event</th>
1105 <th class="msource-header">Defined By</th>
1114 <tr class="method-row expandable config-row-alt0 notInherited">
1115 <td class="micon"><a class="exi" href="#expand"> </a></td>
1118 <a id="Roo.data.Tree-event-*append"></a>
1120 <div class="fixedFont">
1121 <b class="itemname">append</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</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>)
1127 <div class="short">Fires when a new child node is appended to a node in this tree.
1133 Fires when a new child node is appended to a node in this tree.
1139 <dl class="detailList">
1140 <dt class="heading">Parameters:</dt>
1143 <span class="fixedFont">Tree</span> <b>tree</b>
1146 <dd>The owner tree</dd>
1149 <span class="fixedFont">Node</span> <b>parent</b>
1152 <dd>The parent node</dd>
1155 <span class="fixedFont">Node</span> <b>node</b>
1158 <dd>The newly appended node</dd>
1161 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1164 <dd>The index of the newly appended node</dd>
1182 <td class="msource">
1187 <tr class="method-row expandable config-row-alt1 notInherited">
1188 <td class="micon"><a class="exi" href="#expand"> </a></td>
1191 <a id="Roo.data.Tree-event-*beforeappend"></a>
1193 <div class="fixedFont">
1194 <b class="itemname">beforeappend</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</i></B>, Node <B><i>node</i></B>)
1200 <div class="short">Fires before a new child is appended to a node in this tree, return false to cancel the append.
1206 Fires before a new child is appended to a node in this tree, return false to cancel the append.
1212 <dl class="detailList">
1213 <dt class="heading">Parameters:</dt>
1216 <span class="fixedFont">Tree</span> <b>tree</b>
1219 <dd>The owner tree</dd>
1222 <span class="fixedFont">Node</span> <b>parent</b>
1225 <dd>The parent node</dd>
1228 <span class="fixedFont">Node</span> <b>node</b>
1231 <dd>The child node to be appended</dd>
1249 <td class="msource">
1254 <tr class="method-row expandable config-row-alt0 notInherited">
1255 <td class="micon"><a class="exi" href="#expand"> </a></td>
1258 <a id="Roo.data.Tree-event-*beforeinsert"></a>
1260 <div class="fixedFont">
1261 <b class="itemname">beforeinsert</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</i></B>, Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
1267 <div class="short">Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
1273 Fires before a new child is inserted in a node in this tree, return false to cancel the insert.
1279 <dl class="detailList">
1280 <dt class="heading">Parameters:</dt>
1283 <span class="fixedFont">Tree</span> <b>tree</b>
1286 <dd>The owner tree</dd>
1289 <span class="fixedFont">Node</span> <b>parent</b>
1292 <dd>The parent node</dd>
1295 <span class="fixedFont">Node</span> <b>node</b>
1298 <dd>The child node to be inserted</dd>
1301 <span class="fixedFont">Node</span> <b>refNode</b>
1304 <dd>The child node the node is being inserted before</dd>
1322 <td class="msource">
1327 <tr class="method-row expandable config-row-alt1 notInherited">
1328 <td class="micon"><a class="exi" href="#expand"> </a></td>
1331 <a id="Roo.data.Tree-event-*beforemove"></a>
1333 <div class="fixedFont">
1334 <b class="itemname">beforemove</b> (Tree <B><i>tree</i></B>, Node <B><i>node</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>)
1340 <div class="short">Fires before a node is moved to a new location in the tree.
1346 Fires before a node is moved to a new location in the tree. Return false to cancel the move.
1352 <dl class="detailList">
1353 <dt class="heading">Parameters:</dt>
1356 <span class="fixedFont">Tree</span> <b>tree</b>
1359 <dd>The owner tree</dd>
1362 <span class="fixedFont">Node</span> <b>node</b>
1365 <dd>The node being moved</dd>
1368 <span class="fixedFont">Node</span> <b>oldParent</b>
1371 <dd>The parent of the node</dd>
1374 <span class="fixedFont">Node</span> <b>newParent</b>
1377 <dd>The new parent the node is moving to</dd>
1380 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1383 <dd>The index it is being moved to</dd>
1401 <td class="msource">
1406 <tr class="method-row expandable config-row-alt0 notInherited">
1407 <td class="micon"><a class="exi" href="#expand"> </a></td>
1410 <a id="Roo.data.Tree-event-*beforeremove"></a>
1412 <div class="fixedFont">
1413 <b class="itemname">beforeremove</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</i></B>, Node <B><i>node</i></B>)
1419 <div class="short">Fires before a child is removed from a node in this tree, return false to cancel the remove.
1425 Fires before a child is removed from a node in this tree, return false to cancel the remove.
1431 <dl class="detailList">
1432 <dt class="heading">Parameters:</dt>
1435 <span class="fixedFont">Tree</span> <b>tree</b>
1438 <dd>The owner tree</dd>
1441 <span class="fixedFont">Node</span> <b>parent</b>
1444 <dd>The parent node</dd>
1447 <span class="fixedFont">Node</span> <b>node</b>
1450 <dd>The child node to be removed</dd>
1468 <td class="msource">
1473 <tr class="method-row expandable config-row-alt1 notInherited">
1474 <td class="micon"><a class="exi" href="#expand"> </a></td>
1477 <a id="Roo.data.Tree-event-*insert"></a>
1479 <div class="fixedFont">
1480 <b class="itemname">insert</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</i></B>, Node <B><i>node</i></B>, Node <B><i>refNode</i></B>)
1486 <div class="short">Fires when a new child node is inserted in a node in this tree.
1492 Fires when a new child node is inserted in a node in this tree.
1498 <dl class="detailList">
1499 <dt class="heading">Parameters:</dt>
1502 <span class="fixedFont">Tree</span> <b>tree</b>
1505 <dd>The owner tree</dd>
1508 <span class="fixedFont">Node</span> <b>parent</b>
1511 <dd>The parent node</dd>
1514 <span class="fixedFont">Node</span> <b>node</b>
1517 <dd>The child node inserted</dd>
1520 <span class="fixedFont">Node</span> <b>refNode</b>
1523 <dd>The child node the node was inserted before</dd>
1541 <td class="msource">
1546 <tr class="method-row expandable config-row-alt0 notInherited">
1547 <td class="micon"><a class="exi" href="#expand"> </a></td>
1550 <a id="Roo.data.Tree-event-*move"></a>
1552 <div class="fixedFont">
1553 <b class="itemname">move</b> (Tree <B><i>tree</i></B>, Node <B><i>node</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>)
1559 <div class="short">Fires when a node is moved to a new location in the tree
1565 Fires when a node is moved to a new location in the tree
1571 <dl class="detailList">
1572 <dt class="heading">Parameters:</dt>
1575 <span class="fixedFont">Tree</span> <b>tree</b>
1578 <dd>The owner tree</dd>
1581 <span class="fixedFont">Node</span> <b>node</b>
1584 <dd>The node moved</dd>
1587 <span class="fixedFont">Node</span> <b>oldParent</b>
1590 <dd>The old parent of this node</dd>
1593 <span class="fixedFont">Node</span> <b>newParent</b>
1596 <dd>The new parent of this node</dd>
1599 <span class="fixedFont"><a href="./Number.html#constructor" roo:cls="Number.html#constructor">Number</a></span> <b>index</b>
1602 <dd>The index it was moved to</dd>
1620 <td class="msource">
1625 <tr class="method-row expandable config-row-alt1 notInherited">
1626 <td class="micon"><a class="exi" href="#expand"> </a></td>
1629 <a id="Roo.data.Tree-event-*remove"></a>
1631 <div class="fixedFont">
1632 <b class="itemname">remove</b> (Tree <B><i>tree</i></B>, Node <B><i>parent</i></B>, Node <B><i>node</i></B>)
1638 <div class="short">Fires when a child node is removed from a node in this tree.
1644 Fires when a child node is removed from a node in this tree.
1650 <dl class="detailList">
1651 <dt class="heading">Parameters:</dt>
1654 <span class="fixedFont">Tree</span> <b>tree</b>
1657 <dd>The owner tree</dd>
1660 <span class="fixedFont">Node</span> <b>parent</b>
1663 <dd>The parent node</dd>
1666 <span class="fixedFont">Node</span> <b>node</b>
1669 <dd>The child node removed</dd>
1687 <td class="msource">
1699 <!-- ============================== footer ================================= -->
1700 <div class="fineprint" style="clear:both">
1702 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Fri Jul 13 2018 14:10:54 GMT+0800 (HKT)
1704 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>