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>
143 <div class="long">(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.</div>
157 <tr class="config-row expandable config-row-alt1 notInherited">
158 <td class="micon"><a class="exi" href="#expand"> </a></td>
161 <a id="Roo.tree.TreeLoader-cfg-baseParams" name=".baseParams"></a>
162 <div class="fixedFont">
163 <b class="itemname">baseParams</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
169 <div class="short">(optional) An object containing properties which<br/>specify HTTP parameters to be passed to each request for child nodes.</div>
173 <div class="long">(optional) An object containing properties which<br/>specify HTTP parameters to be passed to each request for child nodes.</div>
187 <tr class="config-row expandable config-row-alt0 notInherited">
188 <td class="micon"><a class="exi" href="#expand"> </a></td>
191 <a id="Roo.tree.TreeLoader-cfg-clearOnLoad" name=".clearOnLoad"></a>
192 <div class="fixedFont">
193 <b class="itemname">clearOnLoad</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
199 <div class="short">(optional) Default to true.</div>
203 <div class="long">(optional) Default to true. Remove previously existing<br/>child nodes before loading.</div>
217 <tr class="config-row expandable config-row-alt1 notInherited">
218 <td class="micon"><a class="exi" href="#expand"> </a></td>
221 <a id="Roo.tree.TreeLoader-cfg-dataUrl" name=".dataUrl"></a>
222 <div class="fixedFont">
223 <b class="itemname">dataUrl</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
229 <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>
233 <div class="long">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>
247 <tr class="config-row expandable config-row-alt0">
248 <td class="micon"><a class="exi" href="#expand"> </a></td>
251 <a id="Roo.util.Observable-cfg-listeners" name=".listeners"></a>
252 <div class="fixedFont">
253 <b class="itemname">listeners</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
259 <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>
263 <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>
271 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
277 <tr class="config-row expandable config-row-alt1 notInherited">
278 <td class="micon"><a class="exi" href="#expand"> </a></td>
281 <a id="Roo.tree.TreeLoader-cfg-queryParam" name=".queryParam"></a>
282 <div class="fixedFont">
283 <b class="itemname">queryParam</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
289 <div class="short">(optional) <br/>Name of the query as it will be passed on the querystring (defaults to 'node')<br/>eg.</div>
293 <div class="long">(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]</div>
307 <tr class="config-row expandable config-row-alt0 notInherited">
308 <td class="micon"><a class="exi" href="#expand"> </a></td>
311 <a id="Roo.tree.TreeLoader-cfg-root" name=".root"></a>
312 <div class="fixedFont">
313 <b class="itemname">root</b> : <a href="./String.html#constructor" roo:cls="String.html#constructor">String</a>
319 <div class="short">(optional) Default to false.</div>
323 <div class="long">(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 : [ .....] }</div>
337 <tr class="config-row expandable config-row-alt1 notInherited">
338 <td class="micon"><a class="exi" href="#expand"> </a></td>
341 <a id="Roo.tree.TreeLoader-cfg-uiProviders" name=".uiProviders"></a>
342 <div class="fixedFont">
343 <b class="itemname">uiProviders</b> : <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a>
349 <div class="short">(optional) An object containing properties which<br/><br/>DEPRECATED - use 'create' event handler to modify attributes - which affect creation.</div>
353 <div class="long">(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)</div>
377 <!-- ============================== public properties ==================== -->
381 <a id="Roo.tree.TreeLoader-props"></a>
387 <table cellspacing="0" class="member-table">
388 <caption class="Empty">Public Properties - Has None</caption>
394 <!-- ============================== methods summary / details ======================== -->
397 <a id="Roo.tree.TreeLoader-methods"></a>
398 <!-- constructor?? -->
405 <!-- then dynamics first -->
412 <table cellspacing="0" class="member-table">
413 <caption>Public Methods</caption>
415 <th class="sig-header" colspan="2">Method</th>
416 <th class="msource-header">Defined By</th>
426 <tr class="method-row config-row-alt0 expandable notInherited">
427 <td class="micon"><a class="exi" href="#expand"> </a></td>
431 <a id="Roo.tree-method-TreeLoader" name=".TreeLoader"></a>
432 <div class="fixedFont">
433 <span class="attributes">new <B>Roo.tree.</B></span><b class="itemname">TreeLoader</b>
435 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>config</i></B>)
443 <div class="short">Create a new Roo.tree.TreeLoader</div>
450 Create a new Roo.tree.TreeLoader
453 <dl class="detailList">
454 <dt class="heading">Parameters:</dt>
457 <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>
460 <dd>A config object containing config properties.</dd>
484 <tr class="method-row config-row-alt1 expandable">
485 <td class="micon"><a class="exi" href="#expand"> </a></td>
489 <a id="Roo.util.Observable-method-addEvents" name=".addEvents"></a>
490 <div class="fixedFont">
491 <span class="attributes"></span><b class="itemname">addEvents</b>
493 (<a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Object">Object</a> <B><i>object</i></B>)
500 <div class="short">Used to define events on this Observable</div>
506 Used to define events on this Observable
513 <dl class="detailList">
514 <dt class="heading">Parameters:</dt>
517 <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>
520 <dd>The object with the events defined</dd>
540 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
546 <tr class="method-row config-row-alt0 expandable">
547 <td class="micon"><a class="exi" href="#expand"> </a></td>
551 <a id="Roo.util.Observable-method-addListener" name=".addListener"></a>
552 <div class="fixedFont">
553 <span class="attributes"></span><b class="itemname">addListener</b>
555 (<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>)
562 <div class="short">Appends an event handler to this component</div>
568 Appends an event handler to this component
575 <dl class="detailList">
576 <dt class="heading">Parameters:</dt>
579 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
582 <dd>The type of event to listen for</dd>
585 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
588 <dd>The method the event invokes</dd>
591 <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>
594 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</dd>
597 <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>
600 <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>
620 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
626 <tr class="method-row config-row-alt1 expandable">
627 <td class="micon"><a class="exi" href="#expand"> </a></td>
631 <a id="Roo.util.Observable-method-fireEvent" name=".fireEvent"></a>
632 <div class="fixedFont">
633 <span class="attributes"></span><b class="itemname">fireEvent</b>
635 (<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>)
641 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
650 <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
656 Fires the specified event with the passed parameters (minus the event name).
663 <dl class="detailList">
664 <dt class="heading">Parameters:</dt>
667 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
673 <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>
676 <dd>Variable number of parameters are passed to handlers</dd>
684 <dl class="detailList">
685 <dt class="heading">Returns:</dt>
687 <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>
703 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
709 <tr class="method-row config-row-alt0 expandable">
710 <td class="micon"><a class="exi" href="#expand"> </a></td>
714 <a id="Roo.util.Observable-method-hasListener" name=".hasListener"></a>
715 <div class="fixedFont">
716 <span class="attributes"></span><b class="itemname">hasListener</b>
718 (<a href="./String.html#constructor" roo:cls="String.html#constructor">String</a> <B><i>eventName</i></B>)
724 <a href="http://developer.mozilla.org/en/docs/Core_JavaScript_1.5_Reference:Global_Objects:Boolean">Boolean</a>
733 <div class="short">Checks to see if this object has any listeners for a specified event</div>
739 Checks to see if this object has any listeners for a specified event
746 <dl class="detailList">
747 <dt class="heading">Parameters:</dt>
750 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
753 <dd>The name of the event to check for</dd>
761 <dl class="detailList">
762 <dt class="heading">Returns:</dt>
764 <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>
780 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
786 <tr class="method-row config-row-alt1 expandable notInherited">
787 <td class="micon"><a class="exi" href="#expand"> </a></td>
791 <a id="Roo.tree.TreeLoader-method-load" name=".load"></a>
792 <div class="fixedFont">
793 <span class="attributes"></span><b class="itemname">load</b>
795 (<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>)
802 <div class="short">Load an {<b>link</b> Roo.tree.TreeNode} from the URL specified in the constructor.</div>
808 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.)
815 <dl class="detailList">
816 <dt class="heading">Parameters:</dt>
819 <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>
825 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>callback</b>
854 <tr class="method-row config-row-alt0 expandable">
855 <td class="micon"><a class="exi" href="#expand"> </a></td>
859 <a id="Roo.util.Observable-method-on" name=".on"></a>
860 <div class="fixedFont">
861 <span class="attributes"></span><b class="itemname">on</b>
863 (<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>)
870 <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
876 Appends an event handler to this element (shorthand for addListener)
883 <dl class="detailList">
884 <dt class="heading">Parameters:</dt>
887 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
890 <dd>The type of event to listen for</dd>
893 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
896 <dd>The method the event invokes</dd>
899 <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>
902 <dd>(optional) The scope in which to execute the handler<br/>function. The handler function's "this" context.</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>options</b>
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-alt1 expandable">
935 <td class="micon"><a class="exi" href="#expand"> </a></td>
939 <a id="Roo.util.Observable-method-purgeListeners" name=".purgeListeners"></a>
940 <div class="fixedFont">
941 <span class="attributes"></span><b class="itemname">purgeListeners</b>
950 <div class="short">Removes all listeners for this object</div>
956 Removes all listeners for this object
979 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
985 <tr class="method-row config-row-alt0 expandable">
986 <td class="micon"><a class="exi" href="#expand"> </a></td>
990 <a id="Roo.util.Observable-method-removeListener" name=".removeListener"></a>
991 <div class="fixedFont">
992 <span class="attributes"></span><b class="itemname">removeListener</b>
994 (<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>)
1001 <div class="short">Removes a listener</div>
1014 <dl class="detailList">
1015 <dt class="heading">Parameters:</dt>
1018 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1021 <dd>The type of event to listen for</dd>
1024 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1027 <dd>The handler to remove</dd>
1030 <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>
1033 <dd>(optional) The scope (this object) for the handler</dd>
1051 <td class="msource">
1053 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1059 <tr class="method-row config-row-alt1 expandable">
1060 <td class="micon"><a class="exi" href="#expand"> </a></td>
1064 <a id="Roo.util.Observable-method-un" name=".un"></a>
1065 <div class="fixedFont">
1066 <span class="attributes"></span><b class="itemname">un</b>
1068 (<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>)
1075 <div class="short">Removes a listener (shorthand for removeListener)</div>
1081 Removes a listener (shorthand for removeListener)
1088 <dl class="detailList">
1089 <dt class="heading">Parameters:</dt>
1092 <span class="fixedFont"><a href="./String.html#constructor" roo:cls="String.html#constructor">String</a></span> <b>eventName</b>
1095 <dd>The type of event to listen for</dd>
1098 <span class="fixedFont"><a href="./Function.html#constructor" roo:cls="Function.html#constructor">Function</a></span> <b>handler</b>
1101 <dd>The handler to remove</dd>
1104 <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>
1107 <dd>(optional) The scope (this object) for the handler</dd>
1125 <td class="msource">
1127 <a href="./Roo.util.Observable.html#constructor" roo:cls="Roo.util.Observable.html#constructor">Roo.util.Observable</a>
1136 <!-- ============================== events summary / details ======================== -->
1139 <a id="Roo.tree.TreeLoader-events"></a>
1148 <table cellspacing="0" class="member-table">
1149 <caption>Events</caption>
1152 <th class="sig-header" colspan="2">Event</th>
1153 <th class="msource-header">Defined By</th>
1162 <tr class="method-row expandable config-row-alt0 notInherited">
1163 <td class="micon"><a class="exi" href="#expand"> </a></td>
1166 <a id="Roo.tree.TreeLoader-event-*beforeload"></a>
1168 <div class="fixedFont">
1169 <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>)
1175 <div class="short">Fires before a network request is made to retrieve the Json text which specifies a node's children.
1181 Fires before a network request is made to retrieve the Json text which specifies a node's children.
1187 <dl class="detailList">
1188 <dt class="heading">Parameters:</dt>
1191 <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>
1194 <dd>TreeLoader object.</dd>
1197 <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>
1200 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1203 <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>
1206 <dd>The callback function specified in the {<b>link</b> <b>load</b>} call.</dd>
1224 <td class="msource">
1229 <tr class="method-row expandable config-row-alt1 notInherited">
1230 <td class="micon"><a class="exi" href="#expand"> </a></td>
1233 <a id="Roo.tree.TreeLoader-event-*create"></a>
1235 <div class="fixedFont">
1236 <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>)
1242 <div class="short">Fires before a node is created, enabling you to return custom Node types
1248 Fires before a node is created, enabling you to return custom Node types
1254 <dl class="detailList">
1255 <dt class="heading">Parameters:</dt>
1258 <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>
1261 <dd>TreeLoader object.</dd>
1264 <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>
1267 <dd>- the data returned from the AJAX call (modify it to suit)</dd>
1285 <td class="msource">
1290 <tr class="method-row expandable config-row-alt0 notInherited">
1291 <td class="micon"><a class="exi" href="#expand"> </a></td>
1294 <a id="Roo.tree.TreeLoader-event-*load"></a>
1296 <div class="fixedFont">
1297 <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>)
1303 <div class="short">Fires when the node has been successfuly loaded.
1309 Fires when the node has been successfuly loaded.
1315 <dl class="detailList">
1316 <dt class="heading">Parameters:</dt>
1319 <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>
1322 <dd>TreeLoader object.</dd>
1325 <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>
1328 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1331 <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>
1334 <dd>The response object containing the data from the server.</dd>
1352 <td class="msource">
1357 <tr class="method-row expandable config-row-alt1 notInherited">
1358 <td class="micon"><a class="exi" href="#expand"> </a></td>
1361 <a id="Roo.tree.TreeLoader-event-*loadexception"></a>
1363 <div class="fixedFont">
1364 <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>)
1370 <div class="short">Fires if the network request failed.
1376 Fires if the network request failed.
1382 <dl class="detailList">
1383 <dt class="heading">Parameters:</dt>
1386 <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>
1389 <dd>TreeLoader object.</dd>
1392 <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>
1395 <dd>The {<b>link</b> Roo.tree.TreeNode} object being loaded.</dd>
1398 <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>
1401 <dd>The response object containing the data from the server.</dd>
1419 <td class="msource">
1431 <!-- ============================== footer ================================= -->
1432 <div class="fineprint" style="clear:both">
1434 Documentation generated by <a href="http://www.akbkhome.com" target="_blankt">Introspection Doc Generator</a> on Wed May 02 2012 14:21:14 GMT+0800 (HKT)
1436 <a href="http://www.jsdoctoolkit.org/" target="_blank">JsDoc Toolkit</a>