2 "name" : "Roo.data.Tree",
6 "desc" : "Represents a tree data structure and bubbles all the events for its nodes. The nodes\nin the tree have most standard DOM functionality.",
19 "desc" : "(optional) The root node",
29 "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>",
30 "memberOf" : "Roo.util.Observable",
37 "name" : "setRootNode",
38 "desc" : "Sets the root node for this tree.",
40 "isConstructor" : false,
42 "memberOf" : "Roo.data.Tree",
64 "name" : "getRootNode",
65 "desc" : "Returns the root node for this tree.",
67 "isConstructor" : false,
69 "memberOf" : "Roo.data.Tree",
85 "name" : "getNodeById",
86 "desc" : "Gets a node in this tree by its id.",
88 "isConstructor" : false,
90 "memberOf" : "Roo.data.Tree",
112 "name" : "purgeListeners",
113 "desc" : "Removes all listeners for this object",
115 "isConstructor" : false,
117 "memberOf" : "Roo.util.Observable",
129 "desc" : "Appends an event handler to this element (shorthand for addListener)",
131 "isConstructor" : false,
133 "memberOf" : "Roo.util.Observable",
140 "name" : "eventName",
142 "desc" : "The type of event to listen for",
148 "desc" : "The method the event invokes",
154 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
160 "desc" : "(optional)",
169 "desc" : "Removes a listener (shorthand for removeListener)",
171 "isConstructor" : false,
173 "memberOf" : "Roo.util.Observable",
180 "name" : "eventName",
182 "desc" : "The type of event to listen for",
188 "desc" : "The handler to remove",
194 "desc" : "(optional) The scope (this object) for the handler",
202 "name" : "addEvents",
203 "desc" : "Used to define events on this Observable",
205 "isConstructor" : false,
207 "memberOf" : "Roo.util.Observable",
216 "desc" : "The object with the events defined",
224 "name" : "releaseCapture",
225 "desc" : "Removes <b>all</b> added captures from the Observable.",
227 "isConstructor" : false,
229 "memberOf" : "Roo.util.Observable",
237 "type" : "Observable",
238 "desc" : "The Observable to release",
246 "name" : "removeListener",
247 "desc" : "Removes a listener",
249 "isConstructor" : false,
251 "memberOf" : "Roo.util.Observable",
258 "name" : "eventName",
260 "desc" : "The type of event to listen for",
266 "desc" : "The handler to remove",
272 "desc" : "(optional) The scope (this object) for the handler",
280 "name" : "fireEvent",
281 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
283 "isConstructor" : false,
285 "memberOf" : "Roo.util.Observable",
292 "name" : "eventName",
299 "type" : "Object...",
300 "desc" : "Variable number of parameters are passed to handlers",
308 "desc" : "returns false if any of the handlers return false otherwise it returns true"
313 "name" : "hasListener",
314 "desc" : "Checks to see if this object has any listeners for a specified event",
316 "isConstructor" : false,
318 "memberOf" : "Roo.util.Observable",
325 "name" : "eventName",
327 "desc" : "The name of the event to check for",
335 "desc" : "True if the event is being listened for, else false"
341 "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.",
343 "isConstructor" : false,
345 "memberOf" : "Roo.util.Observable",
353 "type" : "Observable",
354 "desc" : "The Observable to capture",
360 "desc" : "The function to call",
366 "desc" : "(optional) The scope (this object) for the fn",
374 "name" : "addListener",
375 "desc" : "Appends an event handler to this component",
377 "isConstructor" : false,
379 "memberOf" : "Roo.util.Observable",
386 "name" : "eventName",
388 "desc" : "The type of event to listen for",
394 "desc" : "The method the event invokes",
400 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
406 "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>",
417 "desc" : "Fires when a new child node is appended to a node in this tree.",
418 "memberOf" : "Roo.data.Tree",
427 "desc" : "The owner tree",
433 "desc" : "The parent node",
439 "desc" : "The newly appended node",
445 "desc" : "The index of the newly appended node",
453 "name" : "beforemove",
454 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
455 "memberOf" : "Roo.data.Tree",
464 "desc" : "The owner tree",
470 "desc" : "The node being moved",
474 "name" : "oldParent",
476 "desc" : "The parent of the node",
480 "name" : "newParent",
482 "desc" : "The new parent the node is moving to",
488 "desc" : "The index it is being moved to",
497 "desc" : "Fires when a new child node is inserted in a node in this tree.",
498 "memberOf" : "Roo.data.Tree",
507 "desc" : "The owner tree",
513 "desc" : "The parent node",
519 "desc" : "The child node inserted",
525 "desc" : "The child node the node was inserted before",
533 "name" : "beforeappend",
534 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
535 "memberOf" : "Roo.data.Tree",
544 "desc" : "The owner tree",
550 "desc" : "The parent node",
556 "desc" : "The child node to be appended",
565 "desc" : "Fires when a node is moved to a new location in the tree",
566 "memberOf" : "Roo.data.Tree",
575 "desc" : "The owner tree",
581 "desc" : "The node moved",
585 "name" : "oldParent",
587 "desc" : "The old parent of this node",
591 "name" : "newParent",
593 "desc" : "The new parent of this node",
599 "desc" : "The index it was moved to",
607 "name" : "beforeremove",
608 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
609 "memberOf" : "Roo.data.Tree",
618 "desc" : "The owner tree",
624 "desc" : "The parent node",
630 "desc" : "The child node to be removed",
639 "desc" : "Fires when a child node is removed from a node in this tree.",
640 "memberOf" : "Roo.data.Tree",
649 "desc" : "The owner tree",
655 "desc" : "The parent node",
661 "desc" : "The child node removed",
669 "name" : "beforeinsert",
670 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
671 "memberOf" : "Roo.data.Tree",
680 "desc" : "The owner tree",
686 "desc" : "The parent node",
692 "desc" : "The child node to be inserted",
698 "desc" : "The child node the node is being inserted before",