sync
[roojs1] / docs / symbols / Roo.data.Node.json
1 {
2   "name" : "Roo.data.Node",
3   "augments" : [
4     "Roo.util.Observable"
5   ],
6   "desc" : "",
7   "isSingleton" : false,
8   "isStatic" : false,
9   "isBuiltin" : false,
10   "memberOf" : "Node",
11   "example" : "",
12   "deprecated" : "",
13   "since" : "",
14   "see" : "",
15   "params" : [
16     {
17       "name" : "attributes",
18       "type" : "Object",
19       "desc" : "The attributes/config for the node",
20       "isOptional" : false
21     }
22   ],
23   "returns" : [],
24   "throws" : "",
25   "requires" : "",
26   "config" : [
27     {
28       "name" : "listeners",
29       "type" : "Object",
30       "desc" : "list of events and functions to call for this object, \nFor example :\n<pre><code>\n    listeners :  { \n       'click' : function(e) {\n           ..... \n        } ,\n        .... \n    } \n  </code></pre>",
31       "memberOf" : "Roo.util.Observable"
32     },
33     {
34       "name" : "id",
35       "type" : "String",
36       "desc" : "The id for this node. If one is not specified, one is generated.",
37       "memberOf" : ""
38     },
39     {
40       "name" : "leaf",
41       "type" : "Boolean",
42       "desc" : "true if this node is a leaf and does not have children",
43       "memberOf" : ""
44     }
45   ],
46   "methods" : [
47     {
48       "name" : "sort",
49       "type" : "function",
50       "desc" : "Sorts this nodes children using the supplied sort function",
51       "sig" : "(fn, scope)",
52       "static" : false,
53       "memberOf" : "",
54       "isStatic" : false,
55       "isConstructor" : false,
56       "isPrivate" : false,
57       "example" : "",
58       "deprecated" : "",
59       "since" : "",
60       "see" : "",
61       "exceptions" : "",
62       "requires" : "",
63       "params" : [
64         {
65           "name" : "fn",
66           "type" : "Function",
67           "desc" : "",
68           "isOptional" : false
69         },
70         {
71           "name" : "scope",
72           "type" : "Object",
73           "desc" : "(optional)",
74           "isOptional" : false
75         }
76       ],
77       "returns" : []
78     },
79     {
80       "name" : "removeChild",
81       "type" : "function",
82       "desc" : "Removes a child node from this node.",
83       "sig" : "(node)",
84       "static" : false,
85       "memberOf" : "",
86       "isStatic" : false,
87       "isConstructor" : false,
88       "isPrivate" : false,
89       "example" : "",
90       "deprecated" : "",
91       "since" : "",
92       "see" : "",
93       "exceptions" : "",
94       "requires" : "",
95       "params" : [
96         {
97           "name" : "node",
98           "type" : "Node",
99           "desc" : "The node to remove",
100           "isOptional" : false
101         }
102       ],
103       "returns" : [
104         {
105           "name" : "",
106           "type" : "Node",
107           "desc" : "The removed node"
108         }
109       ]
110     },
111     {
112       "name" : "isAncestor",
113       "type" : "function",
114       "desc" : "Returns true if the passed node is an ancestor (at any point) of this node.",
115       "sig" : "(node)",
116       "static" : false,
117       "memberOf" : "",
118       "isStatic" : false,
119       "isConstructor" : false,
120       "isPrivate" : false,
121       "example" : "",
122       "deprecated" : "",
123       "since" : "",
124       "see" : "",
125       "exceptions" : "",
126       "requires" : "",
127       "params" : [
128         {
129           "name" : "node",
130           "type" : "Node",
131           "desc" : "",
132           "isOptional" : false
133         }
134       ],
135       "returns" : [
136         {
137           "name" : "",
138           "type" : "Boolean",
139           "desc" : ""
140         }
141       ]
142     },
143     {
144       "name" : "contains",
145       "type" : "function",
146       "desc" : "Returns true if this node is an ancestor (at any point) of the passed node.",
147       "sig" : "(node)",
148       "static" : false,
149       "memberOf" : "",
150       "isStatic" : false,
151       "isConstructor" : false,
152       "isPrivate" : false,
153       "example" : "",
154       "deprecated" : "",
155       "since" : "",
156       "see" : "",
157       "exceptions" : "",
158       "requires" : "",
159       "params" : [
160         {
161           "name" : "node",
162           "type" : "Node",
163           "desc" : "",
164           "isOptional" : false
165         }
166       ],
167       "returns" : [
168         {
169           "name" : "",
170           "type" : "Boolean",
171           "desc" : ""
172         }
173       ]
174     },
175     {
176       "name" : "cascade",
177       "type" : "function",
178       "desc" : "Cascades down the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of\nfunction call will be the scope provided or the current node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe cascade is stopped on that branch.",
179       "sig" : "(fn, scope, args)",
180       "static" : false,
181       "memberOf" : "",
182       "isStatic" : false,
183       "isConstructor" : false,
184       "isPrivate" : false,
185       "example" : "",
186       "deprecated" : "",
187       "since" : "",
188       "see" : "",
189       "exceptions" : "",
190       "requires" : "",
191       "params" : [
192         {
193           "name" : "fn",
194           "type" : "Function",
195           "desc" : "The function to call",
196           "isOptional" : false
197         },
198         {
199           "name" : "scope",
200           "type" : "Object",
201           "desc" : "(optional) The scope of the function (defaults to current node)",
202           "isOptional" : false
203         },
204         {
205           "name" : "args",
206           "type" : "Array",
207           "desc" : "(optional) The args to call the function with (default to passing the current node)",
208           "isOptional" : false
209         }
210       ],
211       "returns" : []
212     },
213     {
214       "name" : "getDepth",
215       "type" : "function",
216       "desc" : "Returns depth of this node (the root node has a depth of 0)",
217       "sig" : "()\n{\n\n}",
218       "static" : false,
219       "memberOf" : "",
220       "isStatic" : false,
221       "isConstructor" : false,
222       "isPrivate" : false,
223       "example" : "",
224       "deprecated" : "",
225       "since" : "",
226       "see" : "",
227       "exceptions" : "",
228       "requires" : "",
229       "params" : [],
230       "returns" : [
231         {
232           "name" : "",
233           "type" : "Number",
234           "desc" : ""
235         }
236       ]
237     },
238     {
239       "name" : "getPath",
240       "type" : "function",
241       "desc" : "Returns the path for this node. The path can be used to expand or select this node programmatically.",
242       "sig" : "(attr)",
243       "static" : false,
244       "memberOf" : "",
245       "isStatic" : false,
246       "isConstructor" : false,
247       "isPrivate" : false,
248       "example" : "",
249       "deprecated" : "",
250       "since" : "",
251       "see" : "",
252       "exceptions" : "",
253       "requires" : "",
254       "params" : [
255         {
256           "name" : "attr",
257           "type" : "String",
258           "desc" : "(optional) The attr to use for the path (defaults to the node's id)",
259           "isOptional" : false
260         }
261       ],
262       "returns" : [
263         {
264           "name" : "",
265           "type" : "String",
266           "desc" : "The path"
267         }
268       ]
269     },
270     {
271       "name" : "indexOf",
272       "type" : "function",
273       "desc" : "Returns the index of a child node",
274       "sig" : "(node)",
275       "static" : false,
276       "memberOf" : "",
277       "isStatic" : false,
278       "isConstructor" : false,
279       "isPrivate" : false,
280       "example" : "",
281       "deprecated" : "",
282       "since" : "",
283       "see" : "",
284       "exceptions" : "",
285       "requires" : "",
286       "params" : [
287         {
288           "name" : "node",
289           "type" : "Node",
290           "desc" : "",
291           "isOptional" : false
292         }
293       ],
294       "returns" : [
295         {
296           "name" : "",
297           "type" : "Number",
298           "desc" : "The index of the node or -1 if it was not found"
299         }
300       ]
301     },
302     {
303       "name" : "isFirst",
304       "type" : "function",
305       "desc" : "Returns true if this node is the first child of its parent",
306       "sig" : "()\n{\n\n}",
307       "static" : false,
308       "memberOf" : "",
309       "isStatic" : false,
310       "isConstructor" : false,
311       "isPrivate" : false,
312       "example" : "",
313       "deprecated" : "",
314       "since" : "",
315       "see" : "",
316       "exceptions" : "",
317       "requires" : "",
318       "params" : [],
319       "returns" : [
320         {
321           "name" : "",
322           "type" : "Boolean",
323           "desc" : ""
324         }
325       ]
326     },
327     {
328       "name" : "isLast",
329       "type" : "function",
330       "desc" : "Returns true if this node is the last child of its parent",
331       "sig" : "()\n{\n\n}",
332       "static" : false,
333       "memberOf" : "",
334       "isStatic" : false,
335       "isConstructor" : false,
336       "isPrivate" : false,
337       "example" : "",
338       "deprecated" : "",
339       "since" : "",
340       "see" : "",
341       "exceptions" : "",
342       "requires" : "",
343       "params" : [],
344       "returns" : [
345         {
346           "name" : "",
347           "type" : "Boolean",
348           "desc" : ""
349         }
350       ]
351     },
352     {
353       "name" : "isLeaf",
354       "type" : "function",
355       "desc" : "Returns true if this node is a leaf",
356       "sig" : "()\n{\n\n}",
357       "static" : false,
358       "memberOf" : "",
359       "isStatic" : false,
360       "isConstructor" : false,
361       "isPrivate" : false,
362       "example" : "",
363       "deprecated" : "",
364       "since" : "",
365       "see" : "",
366       "exceptions" : "",
367       "requires" : "",
368       "params" : [],
369       "returns" : [
370         {
371           "name" : "",
372           "type" : "Boolean",
373           "desc" : ""
374         }
375       ]
376     },
377     {
378       "name" : "insertBefore",
379       "type" : "function",
380       "desc" : "Inserts the first node before the second node in this nodes childNodes collection.",
381       "sig" : "(node, refNode)",
382       "static" : false,
383       "memberOf" : "",
384       "isStatic" : false,
385       "isConstructor" : false,
386       "isPrivate" : false,
387       "example" : "",
388       "deprecated" : "",
389       "since" : "",
390       "see" : "",
391       "exceptions" : "",
392       "requires" : "",
393       "params" : [
394         {
395           "name" : "node",
396           "type" : "Node",
397           "desc" : "The node to insert",
398           "isOptional" : false
399         },
400         {
401           "name" : "refNode",
402           "type" : "Node",
403           "desc" : "The node to insert before (if null the node is appended)",
404           "isOptional" : false
405         }
406       ],
407       "returns" : [
408         {
409           "name" : "",
410           "type" : "Node",
411           "desc" : "The inserted node"
412         }
413       ]
414     },
415     {
416       "name" : "item",
417       "type" : "function",
418       "desc" : "Returns the child node at the specified index.",
419       "sig" : "(index)",
420       "static" : false,
421       "memberOf" : "",
422       "isStatic" : false,
423       "isConstructor" : false,
424       "isPrivate" : false,
425       "example" : "",
426       "deprecated" : "",
427       "since" : "",
428       "see" : "",
429       "exceptions" : "",
430       "requires" : "",
431       "params" : [
432         {
433           "name" : "index",
434           "type" : "Number",
435           "desc" : "",
436           "isOptional" : false
437         }
438       ],
439       "returns" : [
440         {
441           "name" : "",
442           "type" : "Node",
443           "desc" : ""
444         }
445       ]
446     },
447     {
448       "name" : "getOwnerTree",
449       "type" : "function",
450       "desc" : "Returns the tree this node is in.",
451       "sig" : "()\n{\n\n}",
452       "static" : false,
453       "memberOf" : "",
454       "isStatic" : false,
455       "isConstructor" : false,
456       "isPrivate" : false,
457       "example" : "",
458       "deprecated" : "",
459       "since" : "",
460       "see" : "",
461       "exceptions" : "",
462       "requires" : "",
463       "params" : [],
464       "returns" : [
465         {
466           "name" : "",
467           "type" : "Tree",
468           "desc" : ""
469         }
470       ]
471     },
472     {
473       "name" : "appendChild",
474       "type" : "function",
475       "desc" : "Insert node(s) as the last child node of this node.",
476       "sig" : "(node)",
477       "static" : false,
478       "memberOf" : "",
479       "isStatic" : false,
480       "isConstructor" : false,
481       "isPrivate" : false,
482       "example" : "",
483       "deprecated" : "",
484       "since" : "",
485       "see" : "",
486       "exceptions" : "",
487       "requires" : "",
488       "params" : [
489         {
490           "name" : "node",
491           "type" : "Node/Array",
492           "desc" : "The node or Array of nodes to append",
493           "isOptional" : false
494         }
495       ],
496       "returns" : [
497         {
498           "name" : "",
499           "type" : "Node",
500           "desc" : "The appended node if single append, or null if an array was passed"
501         }
502       ]
503     },
504     {
505       "name" : "findChildBy",
506       "type" : "function",
507       "desc" : "Finds the first child by a custom function. The child matches if the function passed\nreturns true.",
508       "sig" : "(fn, scope)",
509       "static" : false,
510       "memberOf" : "",
511       "isStatic" : false,
512       "isConstructor" : false,
513       "isPrivate" : false,
514       "example" : "",
515       "deprecated" : "",
516       "since" : "",
517       "see" : "",
518       "exceptions" : "",
519       "requires" : "",
520       "params" : [
521         {
522           "name" : "fn",
523           "type" : "Function",
524           "desc" : "",
525           "isOptional" : false
526         },
527         {
528           "name" : "scope",
529           "type" : "Object",
530           "desc" : "(optional)",
531           "isOptional" : false
532         }
533       ],
534       "returns" : [
535         {
536           "name" : "",
537           "type" : "Node",
538           "desc" : "The found child or null if none was found"
539         }
540       ]
541     },
542     {
543       "name" : "replaceChild",
544       "type" : "function",
545       "desc" : "Replaces one child node in this node with another.",
546       "sig" : "(newChild, oldChild)",
547       "static" : false,
548       "memberOf" : "",
549       "isStatic" : false,
550       "isConstructor" : false,
551       "isPrivate" : false,
552       "example" : "",
553       "deprecated" : "",
554       "since" : "",
555       "see" : "",
556       "exceptions" : "",
557       "requires" : "",
558       "params" : [
559         {
560           "name" : "newChild",
561           "type" : "Node",
562           "desc" : "The replacement node",
563           "isOptional" : false
564         },
565         {
566           "name" : "oldChild",
567           "type" : "Node",
568           "desc" : "The node to replace",
569           "isOptional" : false
570         }
571       ],
572       "returns" : [
573         {
574           "name" : "",
575           "type" : "Node",
576           "desc" : "The replaced node"
577         }
578       ]
579     },
580     {
581       "name" : "bubble",
582       "type" : "function",
583       "desc" : "Bubbles up the tree from this node, calling the specified function with each node. The scope (<i>this</i>) of\nfunction call will be the scope provided or the current node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe bubble is stopped.",
584       "sig" : "(fn, scope, args)",
585       "static" : false,
586       "memberOf" : "",
587       "isStatic" : false,
588       "isConstructor" : false,
589       "isPrivate" : false,
590       "example" : "",
591       "deprecated" : "",
592       "since" : "",
593       "see" : "",
594       "exceptions" : "",
595       "requires" : "",
596       "params" : [
597         {
598           "name" : "fn",
599           "type" : "Function",
600           "desc" : "The function to call",
601           "isOptional" : false
602         },
603         {
604           "name" : "scope",
605           "type" : "Object",
606           "desc" : "(optional) The scope of the function (defaults to current node)",
607           "isOptional" : false
608         },
609         {
610           "name" : "args",
611           "type" : "Array",
612           "desc" : "(optional) The args to call the function with (default to passing the current node)",
613           "isOptional" : false
614         }
615       ],
616       "returns" : []
617     },
618     {
619       "name" : "eachChild",
620       "type" : "function",
621       "desc" : "Interates the child nodes of this node, calling the specified function with each node. The scope (<i>this</i>) of\nfunction call will be the scope provided or the current node. The arguments to the function\nwill be the args provided or the current node. If the function returns false at any point,\nthe iteration stops.",
622       "sig" : "(fn, scope, args)",
623       "static" : false,
624       "memberOf" : "",
625       "isStatic" : false,
626       "isConstructor" : false,
627       "isPrivate" : false,
628       "example" : "",
629       "deprecated" : "",
630       "since" : "",
631       "see" : "",
632       "exceptions" : "",
633       "requires" : "",
634       "params" : [
635         {
636           "name" : "fn",
637           "type" : "Function",
638           "desc" : "The function to call",
639           "isOptional" : false
640         },
641         {
642           "name" : "scope",
643           "type" : "Object",
644           "desc" : "(optional) The scope of the function (defaults to current node)",
645           "isOptional" : false
646         },
647         {
648           "name" : "args",
649           "type" : "Array",
650           "desc" : "(optional) The args to call the function with (default to passing the current node)",
651           "isOptional" : false
652         }
653       ],
654       "returns" : []
655     },
656     {
657       "name" : "findChild",
658       "type" : "function",
659       "desc" : "Finds the first child that has the attribute with the specified value.",
660       "sig" : "(attribute, value)",
661       "static" : false,
662       "memberOf" : "",
663       "isStatic" : false,
664       "isConstructor" : false,
665       "isPrivate" : false,
666       "example" : "",
667       "deprecated" : "",
668       "since" : "",
669       "see" : "",
670       "exceptions" : "",
671       "requires" : "",
672       "params" : [
673         {
674           "name" : "attribute",
675           "type" : "String",
676           "desc" : "The attribute name",
677           "isOptional" : false
678         },
679         {
680           "name" : "value",
681           "type" : "Mixed",
682           "desc" : "The value to search for",
683           "isOptional" : false
684         }
685       ],
686       "returns" : [
687         {
688           "name" : "",
689           "type" : "Node",
690           "desc" : "The found child or null if none was found"
691         }
692       ]
693     },
694     {
695       "name" : "purgeListeners",
696       "type" : "function",
697       "desc" : "Removes all listeners for this object",
698       "sig" : "()\n{\n\n}",
699       "static" : false,
700       "memberOf" : "Roo.util.Observable",
701       "isStatic" : false,
702       "isConstructor" : false,
703       "isPrivate" : false,
704       "example" : "",
705       "deprecated" : "",
706       "since" : "",
707       "see" : "",
708       "exceptions" : "",
709       "requires" : "",
710       "params" : [],
711       "returns" : []
712     },
713     {
714       "name" : "on",
715       "type" : "function",
716       "desc" : "Appends an event handler to this element (shorthand for addListener)",
717       "sig" : "(eventName, handler, scope, options)",
718       "static" : false,
719       "memberOf" : "Roo.util.Observable",
720       "isStatic" : false,
721       "isConstructor" : false,
722       "isPrivate" : false,
723       "example" : "",
724       "deprecated" : "",
725       "since" : "",
726       "see" : "",
727       "exceptions" : "",
728       "requires" : "",
729       "params" : [
730         {
731           "name" : "eventName",
732           "type" : "String",
733           "desc" : "The type of event to listen for",
734           "isOptional" : false
735         },
736         {
737           "name" : "handler",
738           "type" : "Function",
739           "desc" : "The method the event invokes",
740           "isOptional" : false
741         },
742         {
743           "name" : "scope",
744           "type" : "Object",
745           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
746           "isOptional" : false
747         },
748         {
749           "name" : "options",
750           "type" : "Object",
751           "desc" : "(optional)",
752           "isOptional" : false
753         }
754       ],
755       "returns" : []
756     },
757     {
758       "name" : "un",
759       "type" : "function",
760       "desc" : "Removes a listener (shorthand for removeListener)",
761       "sig" : "(eventName, handler, scope)",
762       "static" : false,
763       "memberOf" : "Roo.util.Observable",
764       "isStatic" : false,
765       "isConstructor" : false,
766       "isPrivate" : false,
767       "example" : "",
768       "deprecated" : "",
769       "since" : "",
770       "see" : "",
771       "exceptions" : "",
772       "requires" : "",
773       "params" : [
774         {
775           "name" : "eventName",
776           "type" : "String",
777           "desc" : "The type of event to listen for",
778           "isOptional" : false
779         },
780         {
781           "name" : "handler",
782           "type" : "Function",
783           "desc" : "The handler to remove",
784           "isOptional" : false
785         },
786         {
787           "name" : "scope",
788           "type" : "Object",
789           "desc" : "(optional) The scope (this object) for the handler",
790           "isOptional" : false
791         }
792       ],
793       "returns" : []
794     },
795     {
796       "name" : "addEvents",
797       "type" : "function",
798       "desc" : "Used to define events on this Observable",
799       "sig" : "(object)",
800       "static" : false,
801       "memberOf" : "Roo.util.Observable",
802       "isStatic" : false,
803       "isConstructor" : false,
804       "isPrivate" : false,
805       "example" : "",
806       "deprecated" : "",
807       "since" : "",
808       "see" : "",
809       "exceptions" : "",
810       "requires" : "",
811       "params" : [
812         {
813           "name" : "object",
814           "type" : "Object",
815           "desc" : "The object with the events defined",
816           "isOptional" : false
817         }
818       ],
819       "returns" : []
820     },
821     {
822       "name" : "releaseCapture",
823       "type" : "function",
824       "desc" : "Removes <b>all</b> added captures from the Observable.",
825       "sig" : "(o)",
826       "static" : true,
827       "memberOf" : "Roo.util.Observable",
828       "isStatic" : true,
829       "isConstructor" : false,
830       "isPrivate" : false,
831       "example" : "",
832       "deprecated" : "",
833       "since" : "",
834       "see" : "",
835       "exceptions" : "",
836       "requires" : "",
837       "params" : [
838         {
839           "name" : "o",
840           "type" : "Observable",
841           "desc" : "The Observable to release",
842           "isOptional" : false
843         }
844       ],
845       "returns" : []
846     },
847     {
848       "name" : "removeListener",
849       "type" : "function",
850       "desc" : "Removes a listener",
851       "sig" : "(eventName, handler, scope)",
852       "static" : false,
853       "memberOf" : "Roo.util.Observable",
854       "isStatic" : false,
855       "isConstructor" : false,
856       "isPrivate" : false,
857       "example" : "",
858       "deprecated" : "",
859       "since" : "",
860       "see" : "",
861       "exceptions" : "",
862       "requires" : "",
863       "params" : [
864         {
865           "name" : "eventName",
866           "type" : "String",
867           "desc" : "The type of event to listen for",
868           "isOptional" : false
869         },
870         {
871           "name" : "handler",
872           "type" : "Function",
873           "desc" : "The handler to remove",
874           "isOptional" : false
875         },
876         {
877           "name" : "scope",
878           "type" : "Object",
879           "desc" : "(optional) The scope (this object) for the handler",
880           "isOptional" : false
881         }
882       ],
883       "returns" : []
884     },
885     {
886       "name" : "fireEvent",
887       "type" : "function",
888       "desc" : "Fires the specified event with the passed parameters (minus the event name).",
889       "sig" : "(eventName, args)",
890       "static" : false,
891       "memberOf" : "Roo.util.Observable",
892       "isStatic" : false,
893       "isConstructor" : false,
894       "isPrivate" : false,
895       "example" : "",
896       "deprecated" : "",
897       "since" : "",
898       "see" : "",
899       "exceptions" : "",
900       "requires" : "",
901       "params" : [
902         {
903           "name" : "eventName",
904           "type" : "String",
905           "desc" : "",
906           "isOptional" : false
907         },
908         {
909           "name" : "args",
910           "type" : "Object...",
911           "desc" : "Variable number of parameters are passed to handlers",
912           "isOptional" : false
913         }
914       ],
915       "returns" : [
916         {
917           "name" : "",
918           "type" : "Boolean",
919           "desc" : "returns false if any of the handlers return false otherwise it returns true"
920         }
921       ]
922     },
923     {
924       "name" : "hasListener",
925       "type" : "function",
926       "desc" : "Checks to see if this object has any listeners for a specified event",
927       "sig" : "(eventName)",
928       "static" : false,
929       "memberOf" : "Roo.util.Observable",
930       "isStatic" : false,
931       "isConstructor" : false,
932       "isPrivate" : false,
933       "example" : "",
934       "deprecated" : "",
935       "since" : "",
936       "see" : "",
937       "exceptions" : "",
938       "requires" : "",
939       "params" : [
940         {
941           "name" : "eventName",
942           "type" : "String",
943           "desc" : "The name of the event to check for",
944           "isOptional" : false
945         }
946       ],
947       "returns" : [
948         {
949           "name" : "",
950           "type" : "Boolean",
951           "desc" : "True if the event is being listened for, else false"
952         }
953       ]
954     },
955     {
956       "name" : "capture",
957       "type" : "function",
958       "desc" : "Starts capture on the specified Observable. All events will be passed\nto the supplied function with the event name + standard signature of the event\n<b>before</b> the event is fired. If the supplied function returns false,\nthe event will not fire.",
959       "sig" : "(o, fn, scope)",
960       "static" : true,
961       "memberOf" : "Roo.util.Observable",
962       "isStatic" : true,
963       "isConstructor" : false,
964       "isPrivate" : false,
965       "example" : "",
966       "deprecated" : "",
967       "since" : "",
968       "see" : "",
969       "exceptions" : "",
970       "requires" : "",
971       "params" : [
972         {
973           "name" : "o",
974           "type" : "Observable",
975           "desc" : "The Observable to capture",
976           "isOptional" : false
977         },
978         {
979           "name" : "fn",
980           "type" : "Function",
981           "desc" : "The function to call",
982           "isOptional" : false
983         },
984         {
985           "name" : "scope",
986           "type" : "Object",
987           "desc" : "(optional) The scope (this object) for the fn",
988           "isOptional" : false
989         }
990       ],
991       "returns" : []
992     },
993     {
994       "name" : "addListener",
995       "type" : "function",
996       "desc" : "Appends an event handler to this component",
997       "sig" : "(eventName, handler, scope, options)",
998       "static" : false,
999       "memberOf" : "Roo.util.Observable",
1000       "isStatic" : false,
1001       "isConstructor" : false,
1002       "isPrivate" : false,
1003       "example" : "",
1004       "deprecated" : "",
1005       "since" : "",
1006       "see" : "",
1007       "exceptions" : "",
1008       "requires" : "",
1009       "params" : [
1010         {
1011           "name" : "eventName",
1012           "type" : "String",
1013           "desc" : "The type of event to listen for",
1014           "isOptional" : false
1015         },
1016         {
1017           "name" : "handler",
1018           "type" : "Function",
1019           "desc" : "The method the event invokes",
1020           "isOptional" : false
1021         },
1022         {
1023           "name" : "scope",
1024           "type" : "Object",
1025           "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
1026           "isOptional" : false
1027         },
1028         {
1029           "name" : "options",
1030           "type" : "Object",
1031           "desc" : "(optional) An object containing handler configuration\nproperties. This may contain any of the following properties:<ul>\n<li>scope {Object} The scope in which to execute the handler function. The handler function's \"this\" context.</li>\n<li>delay {Number} The number of milliseconds to delay the invocation of the handler after te event fires.</li>\n<li>single {Boolean} True to add a handler to handle just the next firing of the event, and then remove itself.</li>\n<li>buffer {Number} Causes the handler to be scheduled to run in an {@link Roo.util.DelayedTask} delayed\nby the specified number of milliseconds. If the event fires again within that time, the original\nhandler is <em>not</em> invoked, but the new handler is scheduled in its place.</li>\n</ul><br>\n<p>\n<b>Combining Options</b><br>\nUsing the options argument, it is possible to combine different types of listeners:<br>\n<br>\nA normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)\n\t\t<pre><code>\n\t\tel.on('click', this.onClick, this, {\n \t\t\tsingle: true,\n    \t\tdelay: 100,\n    \t\tforumId: 4\n\t\t});\n\t\t</code></pre>\n<p>\n<b>Attaching multiple handlers in 1 call</b><br>\nThe method also allows for a single argument to be passed which is a config object containing properties\nwhich specify multiple handlers.\n<pre><code>\n\t\tel.on({\n\t\t\t'click': {\n        \t\tfn: this.onClick,\n        \t\tscope: this,\n        \t\tdelay: 100\n    \t\t}, \n    \t\t'mouseover': {\n        \t\tfn: this.onMouseOver,\n        \t\tscope: this\n    \t\t},\n    \t\t'mouseout': {\n        \t\tfn: this.onMouseOut,\n        \t\tscope: this\n    \t\t}\n\t\t});\n\t\t</code></pre>\n<p>\nOr a shorthand syntax which passes the same scope object to all handlers:\n     \t<pre><code>\n\t\tel.on({\n\t\t\t'click': this.onClick,\n    \t\t'mouseover': this.onMouseOver,\n    \t\t'mouseout': this.onMouseOut,\n    \t\tscope: this\n\t\t});\n\t\t</code></pre>",
1032           "isOptional" : false
1033         }
1034       ],
1035       "returns" : []
1036     }
1037   ],
1038   "events" : [
1039     {
1040       "name" : "beforeappend",
1041       "type" : "function",
1042       "desc" : "Fires before a new child is appended, return false to cancel the append.",
1043       "sig" : "function (tree, _self, node)\n{\n\n}",
1044       "memberOf" : "",
1045       "example" : "",
1046       "deprecated" : "",
1047       "since" : "",
1048       "see" : "",
1049       "params" : [
1050         {
1051           "name" : "tree",
1052           "type" : "Tree",
1053           "desc" : "The owner tree",
1054           "isOptional" : false
1055         },
1056         {
1057           "name" : "this",
1058           "type" : "Node",
1059           "desc" : "This node",
1060           "isOptional" : false
1061         },
1062         {
1063           "name" : "node",
1064           "type" : "Node",
1065           "desc" : "The child node to be appended",
1066           "isOptional" : false
1067         }
1068       ],
1069       "returns" : []
1070     },
1071     {
1072       "name" : "move",
1073       "type" : "function",
1074       "desc" : "Fires when this node is moved to a new location in the tree",
1075       "sig" : "function (tree, _self, oldParent, newParent, index)\n{\n\n}",
1076       "memberOf" : "",
1077       "example" : "",
1078       "deprecated" : "",
1079       "since" : "",
1080       "see" : "",
1081       "params" : [
1082         {
1083           "name" : "tree",
1084           "type" : "Tree",
1085           "desc" : "The owner tree",
1086           "isOptional" : false
1087         },
1088         {
1089           "name" : "this",
1090           "type" : "Node",
1091           "desc" : "This node",
1092           "isOptional" : false
1093         },
1094         {
1095           "name" : "oldParent",
1096           "type" : "Node",
1097           "desc" : "The old parent of this node",
1098           "isOptional" : false
1099         },
1100         {
1101           "name" : "newParent",
1102           "type" : "Node",
1103           "desc" : "The new parent of this node",
1104           "isOptional" : false
1105         },
1106         {
1107           "name" : "index",
1108           "type" : "Number",
1109           "desc" : "The index it was moved to",
1110           "isOptional" : false
1111         }
1112       ],
1113       "returns" : []
1114     },
1115     {
1116       "name" : "append",
1117       "type" : "function",
1118       "desc" : "Fires when a new child node is appended",
1119       "sig" : "function (tree, _self, node, index)\n{\n\n}",
1120       "memberOf" : "",
1121       "example" : "",
1122       "deprecated" : "",
1123       "since" : "",
1124       "see" : "",
1125       "params" : [
1126         {
1127           "name" : "tree",
1128           "type" : "Tree",
1129           "desc" : "The owner tree",
1130           "isOptional" : false
1131         },
1132         {
1133           "name" : "this",
1134           "type" : "Node",
1135           "desc" : "This node",
1136           "isOptional" : false
1137         },
1138         {
1139           "name" : "node",
1140           "type" : "Node",
1141           "desc" : "The newly appended node",
1142           "isOptional" : false
1143         },
1144         {
1145           "name" : "index",
1146           "type" : "Number",
1147           "desc" : "The index of the newly appended node",
1148           "isOptional" : false
1149         }
1150       ],
1151       "returns" : []
1152     },
1153     {
1154       "name" : "beforeremove",
1155       "type" : "function",
1156       "desc" : "Fires before a child is removed, return false to cancel the remove.",
1157       "sig" : "function (tree, _self, node)\n{\n\n}",
1158       "memberOf" : "",
1159       "example" : "",
1160       "deprecated" : "",
1161       "since" : "",
1162       "see" : "",
1163       "params" : [
1164         {
1165           "name" : "tree",
1166           "type" : "Tree",
1167           "desc" : "The owner tree",
1168           "isOptional" : false
1169         },
1170         {
1171           "name" : "this",
1172           "type" : "Node",
1173           "desc" : "This node",
1174           "isOptional" : false
1175         },
1176         {
1177           "name" : "node",
1178           "type" : "Node",
1179           "desc" : "The child node to be removed",
1180           "isOptional" : false
1181         }
1182       ],
1183       "returns" : []
1184     },
1185     {
1186       "name" : "remove",
1187       "type" : "function",
1188       "desc" : "Fires when a child node is removed",
1189       "sig" : "function (tree, _self, node)\n{\n\n}",
1190       "memberOf" : "",
1191       "example" : "",
1192       "deprecated" : "",
1193       "since" : "",
1194       "see" : "",
1195       "params" : [
1196         {
1197           "name" : "tree",
1198           "type" : "Tree",
1199           "desc" : "The owner tree",
1200           "isOptional" : false
1201         },
1202         {
1203           "name" : "this",
1204           "type" : "Node",
1205           "desc" : "This node",
1206           "isOptional" : false
1207         },
1208         {
1209           "name" : "node",
1210           "type" : "Node",
1211           "desc" : "The removed node",
1212           "isOptional" : false
1213         }
1214       ],
1215       "returns" : []
1216     },
1217     {
1218       "name" : "beforeinsert",
1219       "type" : "function",
1220       "desc" : "Fires before a new child is inserted, return false to cancel the insert.",
1221       "sig" : "function (tree, _self, node, refNode)\n{\n\n}",
1222       "memberOf" : "",
1223       "example" : "",
1224       "deprecated" : "",
1225       "since" : "",
1226       "see" : "",
1227       "params" : [
1228         {
1229           "name" : "tree",
1230           "type" : "Tree",
1231           "desc" : "The owner tree",
1232           "isOptional" : false
1233         },
1234         {
1235           "name" : "this",
1236           "type" : "Node",
1237           "desc" : "This node",
1238           "isOptional" : false
1239         },
1240         {
1241           "name" : "node",
1242           "type" : "Node",
1243           "desc" : "The child node to be inserted",
1244           "isOptional" : false
1245         },
1246         {
1247           "name" : "refNode",
1248           "type" : "Node",
1249           "desc" : "The child node the node is being inserted before",
1250           "isOptional" : false
1251         }
1252       ],
1253       "returns" : []
1254     },
1255     {
1256       "name" : "insert",
1257       "type" : "function",
1258       "desc" : "Fires when a new child node is inserted.",
1259       "sig" : "function (tree, _self, node, refNode)\n{\n\n}",
1260       "memberOf" : "",
1261       "example" : "",
1262       "deprecated" : "",
1263       "since" : "",
1264       "see" : "",
1265       "params" : [
1266         {
1267           "name" : "tree",
1268           "type" : "Tree",
1269           "desc" : "The owner tree",
1270           "isOptional" : false
1271         },
1272         {
1273           "name" : "this",
1274           "type" : "Node",
1275           "desc" : "This node",
1276           "isOptional" : false
1277         },
1278         {
1279           "name" : "node",
1280           "type" : "Node",
1281           "desc" : "The child node inserted",
1282           "isOptional" : false
1283         },
1284         {
1285           "name" : "refNode",
1286           "type" : "Node",
1287           "desc" : "The child node the node was inserted before",
1288           "isOptional" : false
1289         }
1290       ],
1291       "returns" : []
1292     },
1293     {
1294       "name" : "beforemove",
1295       "type" : "function",
1296       "desc" : "Fires before this node is moved to a new location in the tree. Return false to cancel the move.",
1297       "sig" : "function (tree, _self, oldParent, newParent, index)\n{\n\n}",
1298       "memberOf" : "",
1299       "example" : "",
1300       "deprecated" : "",
1301       "since" : "",
1302       "see" : "",
1303       "params" : [
1304         {
1305           "name" : "tree",
1306           "type" : "Tree",
1307           "desc" : "The owner tree",
1308           "isOptional" : false
1309         },
1310         {
1311           "name" : "this",
1312           "type" : "Node",
1313           "desc" : "This node",
1314           "isOptional" : false
1315         },
1316         {
1317           "name" : "oldParent",
1318           "type" : "Node",
1319           "desc" : "The parent of this node",
1320           "isOptional" : false
1321         },
1322         {
1323           "name" : "newParent",
1324           "type" : "Node",
1325           "desc" : "The new parent this node is moving to",
1326           "isOptional" : false
1327         },
1328         {
1329           "name" : "index",
1330           "type" : "Number",
1331           "desc" : "The index it is being moved to",
1332           "isOptional" : false
1333         }
1334       ],
1335       "returns" : []
1336     }
1337   ]
1338 }