Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
        <div class="body-wrap">
2
        <div class="top-tools">
3
            <a class="inner-link" href="#Ext.tree.TreeLoader-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.tree.TreeLoader-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.tree.TreeLoader-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                            <a class="inner-link" href="#Ext.tree.TreeLoader-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7
                        <a class="bookmark" href="../docs/?class=Ext.tree.TreeLoader"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8
        </div>
9
                <div class="inheritance res-block">
10
<pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11
  <img src="resources/elbow-end.gif"/>TreeLoader</pre></div>
12
                <h1>Class Ext.tree.TreeLoader</h1>
13
        <table cellspacing="0">
14
            <tr><td class="label">Package:</td><td class="hd-info">Ext.tree</td></tr>
15
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/tree/TreeLoader.js" target="_blank">TreeLoader.js</a></td></tr>
16
            <tr><td class="label">Class:</td><td class="hd-info">TreeLoader</td></tr>
17
                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr>
18
                    </table>
19
        <div class="description">
20
            A TreeLoader provides for lazy loading of an <a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">Ext.tree.TreeNode</a>'s child
21
nodes from a specified URL. The response must be a JavaScript Array definition
22
whose elements are node definition objects. eg:
23
<pre><code>[{
24
        id: 1,
25
        text: <em>'A leaf Node'</em>,
26
        leaf: true
27
    },{
28
        id: 2,
29
        text: <em>'A folder Node'</em>,
30
        children: [{
31
            id: 3,
32
            text: <em>'A child Node'</em>,
33
            leaf: true
34
        }]
35
   }]</code></pre>
36
<br><br>
37
A server request is sent, and child nodes are loaded only when a node is expanded.
38
The loading node's id is passed to the server under the parameter name "node" to
39
enable the server to produce the correct child nodes.
40
<br><br>
41
To pass extra parameters, an event handler may be attached to the "beforeload"
42
event, and the parameters specified in the TreeLoader's baseParams property:
43
<pre><code>myTreeLoader.on(<em>"beforeload"</em>, <b>function</b>(treeLoader, node) {
44
        <b>this</b>.baseParams.category = node.attributes.category;
45
    }, <b>this</b>);</code></pre><
46
This would pass an HTTP parameter called "category" to the server containing
47
the value of the Node's "category" attribute.        </div>
48
 
49
        <div class="hr"></div>
50
                <a id="Ext.tree.TreeLoader-configs"></a>
51
        <h2>Config Options</h2>
52
        <table cellspacing="0" class="member-table">
53
            <tr>
54
                <th class="sig-header" colspan="2">Config Options</th>
55
                <th class="msource-header">Defined By</th>
56
            </tr>
57
                <tr class="config-row expandable">
58
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
59
        <td class="sig">
60
        <a id="Ext.tree.TreeLoader-baseAttrs"></a>
61
            <b>baseAttrs</b> : Object            <div class="mdesc">
62
                        <div class="short">(optional) An object containing attributes to be added to all nodes created by this loader. If the attributes sent by...</div>
63
            <div class="long">
64
                (optional) An object containing attributes to be added to all nodes created by this loader. If the attributes sent by the server have an attribute in this object, they take priority.            </div>
65
                        </div>
66
        </td>
67
        <td class="msource">TreeLoader</td>
68
    </tr>
69
        <tr class="config-row alt">
70
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
71
        <td class="sig">
72
        <a id="Ext.tree.TreeLoader-baseParams"></a>
73
            <b>baseParams</b> : Object            <div class="mdesc">
74
                            (optional) An object containing properties which specify HTTP parameters to be passed to each request for child nodes.                        </div>
75
        </td>
76
        <td class="msource">TreeLoader</td>
77
    </tr>
78
        <tr class="config-row">
79
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
80
        <td class="sig">
81
        <a id="Ext.tree.TreeLoader-clearOnLoad"></a>
82
            <b>clearOnLoad</b> : Boolean            <div class="mdesc">
83
                            (optional) Default to true. Remove previously existing child nodes before loading.                        </div>
84
        </td>
85
        <td class="msource">TreeLoader</td>
86
    </tr>
87
        <tr class="config-row alt expandable">
88
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
89
        <td class="sig">
90
        <a id="Ext.tree.TreeLoader-dataUrl"></a>
91
            <b>dataUrl</b> : String            <div class="mdesc">
92
                        <div class="short">The URL from which to request a Json string which specifies an array of node definition objects representing the chil...</div>
93
            <div class="long">
94
                The URL from which to request a Json string which specifies an array of node definition objects representing the child nodes to be loaded.            </div>
95
                        </div>
96
        </td>
97
        <td class="msource">TreeLoader</td>
98
    </tr>
99
        <tr class="config-row inherited expandable">
100
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
101
        <td class="sig">
102
        <a id="Ext.tree.TreeLoader-listeners"></a>
103
            <b>listeners</b> : Object            <div class="mdesc">
104
                        <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
105
            <div class="long">
106
                A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>
107
                        </div>
108
        </td>
109
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
110
    </tr>
111
        <tr class="config-row alt">
112
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
113
        <td class="sig">
114
        <a id="Ext.tree.TreeLoader-preloadChildren"></a>
115
            <b>preloadChildren</b> : Boolean            <div class="mdesc">
116
                            If set to true, the loader recursively loads "children" attributes when doing the first load on nodes.                        </div>
117
        </td>
118
        <td class="msource">TreeLoader</td>
119
    </tr>
120
        <tr class="config-row">
121
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
122
        <td class="sig">
123
        <a id="Ext.tree.TreeLoader-requestMethod"></a>
124
            <b>requestMethod</b> : String            <div class="mdesc">
125
                            The HTTP request method for loading data (defaults to 'POST').                        </div>
126
        </td>
127
        <td class="msource">TreeLoader</td>
128
    </tr>
129
        <tr class="config-row alt expandable">
130
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
131
        <td class="sig">
132
        <a id="Ext.tree.TreeLoader-uiProviders"></a>
133
            <b>uiProviders</b> : Object            <div class="mdesc">
134
                        <div class="short">(optional) An object containing properties which specify custom Ext.tree.TreeNodeUI implementations. If the optional ...</div>
135
            <div class="long">
136
                (optional) An object containing properties which specify custom <a ext:cls="Ext.tree.TreeNodeUI" href="output/Ext.tree.TreeNodeUI.html">Ext.tree.TreeNodeUI</a> implementations. If the optional <i>uiProvider</i> attribute of a returned child node is a string rather than a reference to a TreeNodeUI implementation, this that string value is used as a property name in the uiProviders object.            </div>
137
                        </div>
138
        </td>
139
        <td class="msource">TreeLoader</td>
140
    </tr>
141
        <tr class="config-row">
142
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
143
        <td class="sig">
144
        <a id="Ext.tree.TreeLoader-url"></a>
145
            <b>url</b> : String            <div class="mdesc">
146
                            Equivalent to <a ext:cls="Ext.tree.TreeLoader" ext:member="dataUrl" href="output/Ext.tree.TreeLoader.html#dataUrl">dataUrl</a>.                        </div>
147
        </td>
148
        <td class="msource">TreeLoader</td>
149
    </tr>
150
            </table>
151
                <a id="Ext.tree.TreeLoader-props"></a>
152
        <h2>Public Properties</h2>
153
        <div class="no-members">This class has no public properties.</div>        <a id="Ext.tree.TreeLoader-methods"></a>
154
        <h2>Public Methods</h2>
155
                <table cellspacing="0" class="member-table">
156
            <tr>
157
                <th class="sig-header" colspan="2">Method</th>
158
                <th class="msource-header">Defined By</th>
159
            </tr>
160
                <tr class="method-row expandable">
161
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
162
        <td class="sig">
163
        <a id="Ext.tree.TreeLoader-TreeLoader"></a>
164
            <b>TreeLoader</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">
165
                        <div class="short">Creates a new Treeloader.</div>
166
            <div class="long">
167
                Creates a new Treeloader.    <div class="mdetail-params">
168
        <strong>Parameters:</strong>
169
        <ul><li><code>config</code> : Object<div class="sub-desc">A config object containing config properties.</div></li>        </ul>
170
        <strong>Returns:</strong>
171
        <ul>
172
            <li><code></code></li>
173
        </ul>
174
    </div>
175
                </div>
176
                        </div>
177
        </td>
178
        <td class="msource">TreeLoader</td>
179
    </tr>
180
        <tr class="method-row inherited alt expandable">
181
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
182
        <td class="sig">
183
        <a id="Ext.tree.TreeLoader-addEvents"></a>
184
            <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">
185
                        <div class="short">Used to define events on this Observable</div>
186
            <div class="long">
187
                Used to define events on this Observable    <div class="mdetail-params">
188
        <strong>Parameters:</strong>
189
        <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>
190
        <strong>Returns:</strong>
191
        <ul>
192
            <li><code>void</code></li>
193
        </ul>
194
    </div>
195
                </div>
196
                        </div>
197
        </td>
198
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
199
    </tr>
200
        <tr class="method-row inherited expandable">
201
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
202
        <td class="sig">
203
        <a id="Ext.tree.TreeLoader-addListener"></a>
204
            <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
205
                        <div class="short">Appends an event handler to this component</div>
206
            <div class="long">
207
                Appends an event handler to this component    <div class="mdetail-params">
208
        <strong>Parameters:</strong>
209
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
210
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
211
properties. This may contain any of the following properties:<ul>
212
<li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
213
<li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
214
<li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
215
<li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
216
by the specified number of milliseconds. If the event fires again within that time, the original
217
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
218
</ul><br>
219
<p>
220
<b>Combining Options</b><br>
221
Using the options argument, it is possible to combine different types of listeners:<br>
222
<br>
223
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
224
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
225
    single: true,
226
    delay: 100,
227
    forumId: 4
228
});</code></pre>
229
<p>
230
<b>Attaching multiple handlers in 1 call</b><br>
231
The method also allows for a single argument to be passed which is a config object containing properties
232
which specify multiple handlers.
233
<p>
234
<pre><code>foo.on({
235
    <em>'click'</em> : {
236
        fn: <b>this</b>.onClick,
237
        scope: <b>this</b>,
238
        delay: 100
239
    },
240
    <em>'mouseover'</em> : {
241
        fn: <b>this</b>.onMouseOver,
242
        scope: <b>this</b>
243
    },
244
    <em>'mouseout'</em> : {
245
        fn: <b>this</b>.onMouseOut,
246
        scope: <b>this</b>
247
    }
248
});</code></pre>
249
<p>
250
Or a shorthand syntax:<br>
251
<pre><code>foo.on({
252
    <em>'click'</em> : <b>this</b>.onClick,
253
    <em>'mouseover'</em> : <b>this</b>.onMouseOver,
254
    <em>'mouseout'</em> : <b>this</b>.onMouseOut,
255
     scope: <b>this</b>
256
});</code></pre></div></li>        </ul>
257
        <strong>Returns:</strong>
258
        <ul>
259
            <li><code>void</code></li>
260
        </ul>
261
    </div>
262
                </div>
263
                        </div>
264
        </td>
265
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
266
    </tr>
267
        <tr class="method-row alt expandable">
268
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
269
        <td class="sig">
270
        <a id="Ext.tree.TreeLoader-createNode"></a>
271
            <b>createNode</b>() : void            <div class="mdesc">
272
                        <div class="short">Override this function for custom TreeNode node implementation</div>
273
            <div class="long">
274
                Override this function for custom TreeNode node implementation    <div class="mdetail-params">
275
        <strong>Parameters:</strong>
276
        <ul><li>None.</li>        </ul>
277
        <strong>Returns:</strong>
278
        <ul>
279
            <li><code>void</code></li>
280
        </ul>
281
    </div>
282
                </div>
283
                        </div>
284
        </td>
285
        <td class="msource">TreeLoader</td>
286
    </tr>
287
        <tr class="method-row inherited expandable">
288
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
289
        <td class="sig">
290
        <a id="Ext.tree.TreeLoader-fireEvent"></a>
291
            <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">
292
                        <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
293
            <div class="long">
294
                Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">
295
        <strong>Parameters:</strong>
296
        <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>
297
        <strong>Returns:</strong>
298
        <ul>
299
            <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
300
        </ul>
301
    </div>
302
                </div>
303
                        </div>
304
        </td>
305
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
306
    </tr>
307
        <tr class="method-row inherited alt expandable">
308
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
309
        <td class="sig">
310
        <a id="Ext.tree.TreeLoader-hasListener"></a>
311
            <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">
312
                        <div class="short">Checks to see if this object has any listeners for a specified event</div>
313
            <div class="long">
314
                Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">
315
        <strong>Parameters:</strong>
316
        <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>
317
        <strong>Returns:</strong>
318
        <ul>
319
            <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
320
        </ul>
321
    </div>
322
                </div>
323
                        </div>
324
        </td>
325
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
326
    </tr>
327
        <tr class="method-row expandable">
328
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
329
        <td class="sig">
330
        <a id="Ext.tree.TreeLoader-load"></a>
331
            <b>load</b>(&nbsp;<code>Ext.tree.TreeNode node</code>, <code>Function callback</code>&nbsp;) : void            <div class="mdesc">
332
                        <div class="short">Load an Ext.tree.TreeNode from the URL specified in the constructor.
333
This is called automatically when a node is expa...</div>
334
            <div class="long">
335
                Load an <a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">Ext.tree.TreeNode</a> from the URL specified in the constructor.
336
This is called automatically when a node is expanded, but may be used to reload
337
a node (or append new children if the <a ext:cls="Ext.tree.TreeLoader" ext:member="clearOnLoad" href="output/Ext.tree.TreeLoader.html#clearOnLoad">clearOnLoad</a> option is false.)    <div class="mdetail-params">
338
        <strong>Parameters:</strong>
339
        <ul><li><code>node</code> : Ext.tree.TreeNode<div class="sub-desc"></div></li><li><code>callback</code> : Function<div class="sub-desc"></div></li>        </ul>
340
        <strong>Returns:</strong>
341
        <ul>
342
            <li><code>void</code></li>
343
        </ul>
344
    </div>
345
                </div>
346
                        </div>
347
        </td>
348
        <td class="msource">TreeLoader</td>
349
    </tr>
350
        <tr class="method-row inherited alt expandable">
351
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
352
        <td class="sig">
353
        <a id="Ext.tree.TreeLoader-on"></a>
354
            <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
355
                        <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
356
            <div class="long">
357
                Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">
358
        <strong>Parameters:</strong>
359
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
360
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
361
        <strong>Returns:</strong>
362
        <ul>
363
            <li><code>void</code></li>
364
        </ul>
365
    </div>
366
                </div>
367
                        </div>
368
        </td>
369
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
370
    </tr>
371
        <tr class="method-row inherited expandable">
372
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
373
        <td class="sig">
374
        <a id="Ext.tree.TreeLoader-purgeListeners"></a>
375
            <b>purgeListeners</b>() : void            <div class="mdesc">
376
                        <div class="short">Removes all listeners for this object</div>
377
            <div class="long">
378
                Removes all listeners for this object    <div class="mdetail-params">
379
        <strong>Parameters:</strong>
380
        <ul><li>None.</li>        </ul>
381
        <strong>Returns:</strong>
382
        <ul>
383
            <li><code>void</code></li>
384
        </ul>
385
    </div>
386
                </div>
387
                        </div>
388
        </td>
389
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
390
    </tr>
391
        <tr class="method-row inherited alt expandable">
392
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
393
        <td class="sig">
394
        <a id="Ext.tree.TreeLoader-removeListener"></a>
395
            <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
396
                        <div class="short">Removes a listener</div>
397
            <div class="long">
398
                Removes a listener    <div class="mdetail-params">
399
        <strong>Parameters:</strong>
400
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
401
        <strong>Returns:</strong>
402
        <ul>
403
            <li><code>void</code></li>
404
        </ul>
405
    </div>
406
                </div>
407
                        </div>
408
        </td>
409
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
410
    </tr>
411
        <tr class="method-row inherited expandable">
412
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
413
        <td class="sig">
414
        <a id="Ext.tree.TreeLoader-resumeEvents"></a>
415
            <b>resumeEvents</b>() : void            <div class="mdesc">
416
                        <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
417
            <div class="long">
418
                Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">
419
        <strong>Parameters:</strong>
420
        <ul><li>None.</li>        </ul>
421
        <strong>Returns:</strong>
422
        <ul>
423
            <li><code>void</code></li>
424
        </ul>
425
    </div>
426
                </div>
427
                        </div>
428
        </td>
429
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
430
    </tr>
431
        <tr class="method-row inherited alt expandable">
432
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
433
        <td class="sig">
434
        <a id="Ext.tree.TreeLoader-suspendEvents"></a>
435
            <b>suspendEvents</b>() : void            <div class="mdesc">
436
                        <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
437
            <div class="long">
438
                Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">
439
        <strong>Parameters:</strong>
440
        <ul><li>None.</li>        </ul>
441
        <strong>Returns:</strong>
442
        <ul>
443
            <li><code>void</code></li>
444
        </ul>
445
    </div>
446
                </div>
447
                        </div>
448
        </td>
449
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
450
    </tr>
451
        <tr class="method-row inherited expandable">
452
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
453
        <td class="sig">
454
        <a id="Ext.tree.TreeLoader-un"></a>
455
            <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
456
                        <div class="short">Removes a listener (shorthand for removeListener)</div>
457
            <div class="long">
458
                Removes a listener (shorthand for removeListener)    <div class="mdetail-params">
459
        <strong>Parameters:</strong>
460
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
461
        <strong>Returns:</strong>
462
        <ul>
463
            <li><code>void</code></li>
464
        </ul>
465
    </div>
466
                </div>
467
                        </div>
468
        </td>
469
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
470
    </tr>
471
            </table>
472
                <a id="Ext.tree.TreeLoader-events"></a>
473
        <h2>Public Events</h2>
474
                <table cellspacing="0" class="member-table">
475
            <tr>
476
                <th class="sig-header" colspan="2">Event</th>
477
                <th class="msource-header">Defined By</th>
478
            </tr>
479
                <tr class="event-row expandable">
480
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
481
        <td class="sig">
482
        <a id="Ext.tree.TreeLoader-beforeload"></a>
483
            <b>beforeload</b> : (&nbsp;<code>Object This</code>, <code>Object node</code>, <code>Object callback</code>&nbsp;)            <div class="mdesc">
484
                        <div class="short">Fires before a network request is made to retrieve the Json text which specifies a node's children.</div>
485
            <div class="long">
486
                Fires before a network request is made to retrieve the Json text which specifies a node's children.    <div class="mdetail-params">
487
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
488
        <ul><li><code>This</code> : Object<div class="sub-desc">TreeLoader object.</div></li><li><code>node</code> : Object<div class="sub-desc">The <a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">Ext.tree.TreeNode</a> object being loaded.</div></li><li><code>callback</code> : Object<div class="sub-desc">The callback function specified in the <a ext:cls="Ext.tree.TreeLoader" ext:member="load" href="output/Ext.tree.TreeLoader.html#load">load</a> call.</div></li>        </ul>
489
    </div>
490
                </div>
491
                        </div>
492
        </td>
493
        <td class="msource">TreeLoader</td>
494
    </tr>
495
        <tr class="event-row alt expandable">
496
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
497
        <td class="sig">
498
        <a id="Ext.tree.TreeLoader-load"></a>
499
            <b>load</b> : (&nbsp;<code>Object This</code>, <code>Object node</code>, <code>Object response</code>&nbsp;)            <div class="mdesc">
500
                        <div class="short">Fires when the node has been successfuly loaded.</div>
501
            <div class="long">
502
                Fires when the node has been successfuly loaded.    <div class="mdetail-params">
503
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
504
        <ul><li><code>This</code> : Object<div class="sub-desc">TreeLoader object.</div></li><li><code>node</code> : Object<div class="sub-desc">The <a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">Ext.tree.TreeNode</a> object being loaded.</div></li><li><code>response</code> : Object<div class="sub-desc">The response object containing the data from the server.</div></li>        </ul>
505
    </div>
506
                </div>
507
                        </div>
508
        </td>
509
        <td class="msource">TreeLoader</td>
510
    </tr>
511
        <tr class="event-row expandable">
512
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
513
        <td class="sig">
514
        <a id="Ext.tree.TreeLoader-loadexception"></a>
515
            <b>loadexception</b> : (&nbsp;<code>Object This</code>, <code>Object node</code>, <code>Object response</code>&nbsp;)            <div class="mdesc">
516
                        <div class="short">Fires if the network request failed.</div>
517
            <div class="long">
518
                Fires if the network request failed.    <div class="mdetail-params">
519
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
520
        <ul><li><code>This</code> : Object<div class="sub-desc">TreeLoader object.</div></li><li><code>node</code> : Object<div class="sub-desc">The <a ext:cls="Ext.tree.TreeNode" href="output/Ext.tree.TreeNode.html">Ext.tree.TreeNode</a> object being loaded.</div></li><li><code>response</code> : Object<div class="sub-desc">The response object containing the data from the server.</div></li>        </ul>
521
    </div>
522
                </div>
523
                        </div>
524
        </td>
525
        <td class="msource">TreeLoader</td>
526
    </tr>
527
            </table>
528
 
529
        </div>