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.tree.TreeLoader</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.tree.TreeLoader-props"><img src="resources/s.gif" class="item-icon icon-prop">Properties</a>
35 <a class="inner-link" href="#Roo.tree.TreeLoader-methods"><img src="resources/s.gif" class="item-icon icon-method">Methods</a>
36 <a class="inner-link" href="#Roo.tree.TreeLoader-events"><img src="resources/s.gif" class="item-icon icon-event">Events</a>
37 <a class="inner-link" href="#Roo.tree.TreeLoader-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.tree.TreeLoader
52 <!-- ============================== class title / details ============================ -->
55 <h1 class="classTitle">
57 Class Roo.tree.TreeLoader
60 <table cellspacing="0" class="class-summary-table">
62 <tr><td class="label">Package:</td><td class="hd-info">Roo.tree</td></tr>
64 <tr><td class="label">Defined In:</td><td class="hd-info">
66 <a href="./src/Roo_tree_TreeLoader.js.html">Roo/tree/TreeLoader.js</a>.
69 <tr><td class="label">Class:</td><td class="hd-info">TreeLoader</td></tr>
74 <tr><td class="label">Extends:</td><td class="hd-info">
75 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
83 <!-- ============================== class summary ========================== -->
84 <div class="description">
85 A TreeLoader provides for lazy loading of an {<b>link</b> Roo.tree.TreeNode}'s child<br/>nodes from a specified URL. The response must be a javascript Array definition<br/>who's elements are node definition objects. eg:<br/><pre><code><br/>{ success : true,<br/> data : [<br/> <br/> { 'id': 1, 'text': 'A folder Node', 'leaf': false },<br/> { 'id': 2, 'text': 'A leaf Node', 'leaf': true }<br/> ]<br/>}<br/><br/><br/></code></pre><br/><br><br><br/>The old style respose with just an array is still supported, but not recommended.<br/><br><br><br/><br/>A server request is sent, and child nodes are loaded only when a node is expanded.<br/>The loading node's id is passed to the server under the parameter name "node" to<br/>enable the server to produce the correct child nodes.<br/><br><br><br/>To pass extra parameters, an event handler may be attached to the "beforeload"<br/>event, and the parameters specified in the TreeLoader's baseParams property:<br/><pre><code><br/> myTreeLoader.on("beforeload", function(treeLoader, node) {<br/> this.baseParams.category = node.attributes.category;<br/> }, this);<br/></code></pre><<br/>This would pass an HTTP parameter called "category" to the server containing<br/>the value of the Node's "category" attribute.
89 <!-- ============================== Class comment block... ========================== -->
91 <div class="comments">
92 <b>Class Comments / Notes</B> =>
93 <u onclick="parent.CommentDialog.showCommentId = 'Roo.tree.TreeLoader';">[Add Your comment/notes about this class]</u>
95 <iframe frameborder="0" id="comments-Roo.tree" style="border: none;width:100%;"
96 src="/blog.php/GtkDjsComments/Roo.tree.TreeLoader.html"></iframe>
101 <!-- ============================== config options ========================== -->
106 <div class="hr"></div>
107 <a id="Roo.tree.TreeLoader-configs"></a>
113 <table cellspacing="0" class="member-table">
114 <caption>Config Options (Usually are also Properties)</caption>
118 <th class="sig-header" colspan="2">Options</th>
120 <th class="msource-header">Defined By</th>
127 <tr class="config-row expandable config-row-alt0 notInherited">
128 <td class="micon"><a class="exi" href="#expand"> </a></td>
131 <a id="Roo.tree.TreeLoader-cfg-baseAttrs" name=".baseAttrs"></a>
132 <div class="fixedFont">
133 <b class="itemname">baseAttrs</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
139 <div class="short">(optional) An object containing attributes to be added to all nodes<br/>created by this loader.</div>
144 (optional) An object containing attributes to be added to all nodes<br/>created by this loader. If the attributes sent by the server have an attribute in this object,<br/>they take priority.
160 <tr class="config-row expandable config-row-alt1 notInherited">
161 <td class="micon"><a class="exi" href="#expand"> </a></td>
164 <a id="Roo.tree.TreeLoader-cfg-baseParams" name=".baseParams"></a>
165 <div class="fixedFont">
166 <b class="itemname">baseParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
172 <div class="short">(optional) An object containing properties which<br/>specify HTTP parameters to be passed to each request for child nodes.</div>
177 (optional) An object containing properties which<br/>specify HTTP parameters to be passed to each request for child nodes.
193 <tr class="config-row expandable config-row-alt0 notInherited">
194 <td class="micon"><a class="exi" href="#expand"> </a></td>
197 <a id="Roo.tree.TreeLoader-cfg-clearOnLoad" name=".clearOnLoad"></a>
198 <div class="fixedFont">
199 <b class="itemname">clearOnLoad</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
205 <div class="short">(optional) Default to true.</div>
210 (optional) Default to true. Remove previously existing<br/>child nodes before loading.
226 <tr class="config-row expandable config-row-alt1 notInherited">
227 <td class="micon"><a class="exi" href="#expand"> </a></td>
230 <a id="Roo.tree.TreeLoader-cfg-dataUrl" name=".dataUrl"></a>
231 <div class="fixedFont">
232 <b class="itemname">dataUrl</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
238 <div class="short">The URL from which to request a Json string which<br/>specifies an array of node definition object representing the child nodes<br/>to be loaded.</div>
243 The URL from which to request a Json string which<br/>specifies an array of node definition object representing the child nodes<br/>to be loaded.
259 <tr class="config-row expandable config-row-alt0">
260 <td class="micon"><a class="exi" href="#expand"> </a></td>
263 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
264 <div class="fixedFont">
265 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
271 <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>
276 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>
286 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
292 <tr class="config-row expandable config-row-alt1 notInherited">
293 <td class="micon"><a class="exi" href="#expand"> </a></td>
296 <a id="Roo.tree.TreeLoader-cfg-queryParam" name=".queryParam"></a>
297 <div class="fixedFont">
298 <b class="itemname">queryParam</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
304 <div class="short">(optional) <br/>Name of the query as it will be passed on the querystring (defaults to 'node')<br/>eg.</div>
309 (optional) <br/>Name of the query as it will be passed on the querystring (defaults to 'node')<br/>eg. the request will be ?node=[id]
325 <tr class="config-row expandable config-row-alt0 notInherited">
326 <td class="micon"><a class="exi" href="#expand"> </a></td>
329 <a id="Roo.tree.TreeLoader-cfg-requestMethod" name=".requestMethod"></a>
330 <div class="fixedFont">
331 <b class="itemname">requestMethod</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
337 <div class="short">either GET or POST<br/>defaults to POST (due to BC)<br/>to be loaded.</div>
342 either GET or POST<br/>defaults to POST (due to BC)<br/>to be loaded.
358 <tr class="config-row expandable config-row-alt1 notInherited">
359 <td class="micon"><a class="exi" href="#expand"> </a></td>
362 <a id="Roo.tree.TreeLoader-cfg-root" name=".root"></a>
363 <div class="fixedFont">
364 <b class="itemname">root</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
370 <div class="short">(optional) Default to false.</div>
375 (optional) Default to false. Use this to read data from an object <br/>property on loading, rather than expecting an array. (eg. more compatible to a standard<br/>Grid query { data : [ .....] }
391 <tr class="config-row expandable config-row-alt0 notInherited">
392 <td class="micon"><a class="exi" href="#expand"> </a></td>
395 <a id="Roo.tree.TreeLoader-cfg-uiProviders" name=".uiProviders"></a>
396 <div class="fixedFont">
397 <b class="itemname">uiProviders</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
403 <div class="short">(optional) An object containing properties which<br/><br/>DEPRECATED - use 'create' event handler to modify attributes - which affect creation.</div>
408 (optional) An object containing properties which<br/><br/>DEPRECATED - use 'create' event handler to modify attributes - which affect creation.<br/>specify custom {<b>link</b> Roo.tree.TreeNodeUI} implementations. If the optional<br/><i>uiProvider</i> attribute of a returned child node is a string rather<br/>than a reference to a TreeNodeUI implementation, this that string value<br/>is used as a property name in the uiProviders object. You can define the provider named<br/>'default' , and this will be used for all nodes (if no uiProvider is delivered by the node data)
434 <!-- ============================== public properties ==================== -->
438 <a id="Roo.tree.TreeLoader-props"></a>
444 <table cellspacing="0" class="member-table">
445 <caption class="Empty">Public Properties - Has None</caption>
451 <!-- ============================== methods summary / details ======================== -->
454 <a id="Roo.tree.TreeLoader-methods"></a>
455 <!-- constructor?? -->
462 <!-- then dynamics first -->
469 <table cellspacing="0" class="member-table">
470 <caption>Public Methods</caption>
472 <th class="sig-header" colspan="2">Method</th>
473 <th class="msource-header">Defined By</th>
483 <tr class="method-row config-row-alt0 expandable notInherited">
484 <td class="micon"><a class="exi" href="#expand"> </a></td>
488 <a id="Roo.tree-method-TreeLoader" name=".TreeLoader"></a>
489 <div class="fixedFont">
490 <span class="attributes">new <B>Roo.tree.</B></span><b class="itemname">TreeLoader</b>
492 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
500 <div class="short">Create a new Roo.tree.TreeLoader</div>
507 Create a new Roo.tree.TreeLoader
510 <dl class="detailList">
511 <dt class="heading">Parameters:</dt>
514 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>config</b>
517 <dd>A config object containing config properties.</dd>
541 <tr class="method-row config-row-alt1 expandable">
542 <td class="micon"><a class="exi" href="#expand"> </a></td>
546 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
547 <div class="fixedFont">
548 <span class="attributes"></span><b class="itemname">addEvents</b>
550 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
557 <div class="short">Used to define events on this Observable</div>
563 Used to define events on this Observable
570 <dl class="detailList">
571 <dt class="heading">Parameters:</dt>
574 <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>
577 <dd>The object with the events defined</dd>
597 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
603 <tr class="method-row config-row-alt0 expandable">
604 <td class="micon"><a class="exi" href="#expand"> </a></td>
608 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
609 <div class="fixedFont">
610 <span class="attributes"></span><b class="itemname">addListener</b>
612 (<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>)
619 <div class="short">Appends an event handler to this component</div>
625 Appends an event handler to this component
632 <dl class="detailList">
633 <dt class="heading">Parameters:</dt>
636 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
639 <dd>The type of event to listen for</dd>
642 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
645 <dd>The method the event invokes</dd>
648 <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>
651 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
654 <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>
657 <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>
677 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
683 <tr class="method-row config-row-alt1 expandable">
684 <td class="micon"><a class="exi" href="#expand"> </a></td>
688 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
689 <div class="fixedFont">
690 <span class="attributes"></span><b class="itemname">fireEvent</b>
692 (<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>)
698 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
707 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
713 Fires the specified event with the passed parameters (minus the event name).
720 <dl class="detailList">
721 <dt class="heading">Parameters:</dt>
724 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
730 <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>
733 <dd>Variable number of parameters are passed to handlers</dd>
741 <dl class="detailList">
742 <dt class="heading">Returns:</dt>
744 <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>
760 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
766 <tr class="method-row config-row-alt0 expandable">
767 <td class="micon"><a class="exi" href="#expand"> </a></td>
771 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
772 <div class="fixedFont">
773 <span class="attributes"></span><b class="itemname">hasListener</b>
775 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
781 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
790 <div class="short">Checks to see if this object has any listeners for a specified event</div>
796 Checks to see if this object has any listeners for a specified event
803 <dl class="detailList">
804 <dt class="heading">Parameters:</dt>
807 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
810 <dd>The name of the event to check for</dd>
818 <dl class="detailList">
819 <dt class="heading">Returns:</dt>
821 <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>
837 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
843 <tr class="method-row config-row-alt1 expandable notInherited">
844 <td class="micon"><a class="exi" href="#expand"> </a></td>
848 <a id="Roo.tree.TreeLoader-method-load" name=".load"></a>
849 <div class="fixedFont">
850 <span class="attributes"></span><b class="itemname">load</b>
852 (<a href="./Roo.tree.TreeNode.html#constructor" roo:cls="Roo.tree.TreeNode.html#constructor">Roo.tree.TreeNode</a> <B><i>node</i></B>, <a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a> <B><i>callback</i></B>)
859 <div class="short">Load an {<b>link</b> Roo.tree.TreeNode} from the URL specified in the constructor.</div>
865 Load an {<b>link</b> Roo.tree.TreeNode} from the URL specified in the constructor.<br/>This is called automatically when a node is expanded, but may be used to reload<br/>a node (or append new children if the {<b>link</b> <b>clearOnLoad</b>} option is false.)
872 <dl class="detailList">
873 <dt class="heading">Parameters:</dt>
876 <span class="fixedFont"><a href="./Roo.tree.TreeNode.html#constructor" roo:cls="Roo.tree.TreeNode.html#constructor">Roo.tree.TreeNode</a></span> <b>node</b>
882 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
911 <tr class="method-row config-row-alt0 expandable">
912 <td class="micon"><a class="exi" href="#expand"> </a></td>
916 <a id="Roo.util.Observable-method-on" name=".on"></a>
917 <div class="fixedFont">
918 <span class="attributes"></span><b class="itemname">on</b>
920 (<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>)
927 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
933 Appends an event handler to this element (shorthand for addListener)
940 <dl class="detailList">
941 <dt class="heading">Parameters:</dt>
944 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
947 <dd>The type of event to listen for</dd>
950 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
953 <dd>The method the event invokes</dd>
956 <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>
959 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
962 <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>
985 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
991 <tr class="method-row config-row-alt1 expandable">
992 <td class="micon"><a class="exi" href="#expand"> </a></td>
996 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
997 <div class="fixedFont">
998 <span class="attributes"></span><b class="itemname">purgeListeners</b>
1007 <div class="short">Removes all listeners for this object</div>
1013 Removes all listeners for this object
1034 <td class="msource">
1036 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1042 <tr class="method-row config-row-alt0 expandable">
1043 <td class="micon"><a class="exi" href="#expand"> </a></td>
1047 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
1048 <div class="fixedFont">
1049 <span class="attributes"></span><b class="itemname">removeListener</b>
1051 (<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>)
1058 <div class="short">Removes a listener</div>
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>
1078 <dd>The type of event to listen for</dd>
1081 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1084 <dd>The handler to remove</dd>
1087 <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>
1090 <dd>(optional) The scope (this object) for the handler</dd>
1108 <td class="msource">
1110 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1116 <tr class="method-row config-row-alt1 expandable">
1117 <td class="micon"><a class="exi" href="#expand"> </a></td>
1121 <a id="Roo.util.Observable-method-un" name=".un"></a>
1122 <div class="fixedFont">
1123 <span class="attributes"></span><b class="itemname">un</b>
1125 (<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>)
1132 <div class="short">Removes a listener (shorthand for removeListener)</div>
1138 Removes a listener (shorthand for removeListener)
1145 <dl class="detailList">
1146 <dt class="heading">Parameters:</dt>
1149 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1152 <dd>The type of event to listen for</dd>
1155 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1158 <dd>The handler to remove</dd>
1161 <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>
1164 <dd>(optional) The scope (this object) for the handler</dd>
1182 <td class="msource">
1184 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1193 <!-- ============================== events summary / details ======================== -->
1196 <a id="Roo.tree.TreeLoader-events"></a>
1205 <table cellspacing="0" class="member-table">
1206 <caption>Events</caption>
1209 <th class="sig-header" colspan="2">Event</th>
1210 <th class="msource-header">Defined By</th>
1219 <tr class="method-row expandable config-row-alt0 notInherited">
1220 <td class="micon"><a class="exi" href="#expand"> </a></td>
1223 <a id="Roo.tree.TreeLoader-event-*beforeload"></a>
1225 <div class="fixedFont">
1226 <b class="itemname">beforeload</b> (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>This</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>node</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>callback</i></B>)
1232 <div class="short">Fires before a network request is made to retrieve the Json text which specifies a node's children.
1238 Fires before a network request is made to retrieve the Json text which specifies a node's children.
1244 <dl class="detailList">
1245 <dt class="heading">Parameters:</dt>
1248 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>This</b>
1251 <dd>TreeLoader object.</dd>
1254 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>node</b>
1257 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1260 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>callback</b>
1263 <dd>The callback function specified in the {<b>link</b> <b>load</b>} call.</dd>
1281 <td class="msource">
1286 <tr class="method-row expandable config-row-alt1 notInherited">
1287 <td class="micon"><a class="exi" href="#expand"> </a></td>
1290 <a id="Roo.tree.TreeLoader-event-*create"></a>
1292 <div class="fixedFont">
1293 <b class="itemname">create</b> (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>This</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>attr</i></B>)
1299 <div class="short">Fires before a node is created, enabling you to return custom Node types
1305 Fires before a node is created, enabling you to return custom Node types
1311 <dl class="detailList">
1312 <dt class="heading">Parameters:</dt>
1315 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>This</b>
1318 <dd>TreeLoader object.</dd>
1321 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>attr</b>
1324 <dd>- the data returned from the AJAX call (modify it to suit)</dd>
1342 <td class="msource">
1347 <tr class="method-row expandable config-row-alt0 notInherited">
1348 <td class="micon"><a class="exi" href="#expand"> </a></td>
1351 <a id="Roo.tree.TreeLoader-event-*load"></a>
1353 <div class="fixedFont">
1354 <b class="itemname">load</b> (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>This</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>node</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>)
1360 <div class="short">Fires when the node has been successfuly loaded.
1366 Fires when the node has been successfuly loaded.
1372 <dl class="detailList">
1373 <dt class="heading">Parameters:</dt>
1376 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>This</b>
1379 <dd>TreeLoader object.</dd>
1382 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>node</b>
1385 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1388 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
1391 <dd>The response object containing the data from the server.</dd>
1409 <td class="msource">
1414 <tr class="method-row expandable config-row-alt1 notInherited">
1415 <td class="micon"><a class="exi" href="#expand"> </a></td>
1418 <a id="Roo.tree.TreeLoader-event-*loadexception"></a>
1420 <div class="fixedFont">
1421 <b class="itemname">loadexception</b> (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>This</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>node</i></B>, <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>response</i></B>)
1427 <div class="short">Fires if the network request failed.
1433 Fires if the network request failed.
1439 <dl class="detailList">
1440 <dt class="heading">Parameters:</dt>
1443 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>This</b>
1446 <dd>TreeLoader object.</dd>
1449 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>node</b>
1452 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1455 <span class="fixedFont"><a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a></span> <b>response</b>
1458 <dd>The response object containing the data from the server.</dd>
1476 <td class="msource">
1488 <!-- ============================== footer ================================= -->
1489 <div class="fineprint" style="clear:both">
1491 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Tue Aug 08 2017 12:05:52 GMT+0800 (HKT)
1493 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>