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.",
14 "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>",
15 "memberOf" : "Roo.util.Observable",
22 "name" : "setRootNode",
23 "desc" : "Sets the root node for this tree.",
25 "isConstructor" : false,
27 "memberOf" : "Roo.data.Tree",
49 "name" : "getRootNode",
50 "desc" : "Returns the root node for this tree.",
52 "isConstructor" : false,
54 "memberOf" : "Roo.data.Tree",
70 "name" : "getNodeById",
71 "desc" : "Gets a node in this tree by its id.",
73 "isConstructor" : false,
75 "memberOf" : "Roo.data.Tree",
97 "name" : "purgeListeners",
98 "desc" : "Removes all listeners for this object",
100 "isConstructor" : false,
102 "memberOf" : "Roo.util.Observable",
114 "desc" : "Appends an event handler to this element (shorthand for addListener)",
116 "isConstructor" : false,
118 "memberOf" : "Roo.util.Observable",
125 "name" : "eventName",
127 "desc" : "The type of event to listen for",
133 "desc" : "The method the event invokes",
139 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
145 "desc" : "(optional)",
154 "desc" : "Removes a listener (shorthand for removeListener)",
156 "isConstructor" : false,
158 "memberOf" : "Roo.util.Observable",
165 "name" : "eventName",
167 "desc" : "The type of event to listen for",
173 "desc" : "The handler to remove",
179 "desc" : "(optional) The scope (this object) for the handler",
187 "name" : "addEvents",
188 "desc" : "Used to define events on this Observable",
190 "isConstructor" : false,
192 "memberOf" : "Roo.util.Observable",
201 "desc" : "The object with the events defined",
209 "name" : "releaseCapture",
210 "desc" : "Removes <b>all</b> added captures from the Observable.",
212 "isConstructor" : false,
214 "memberOf" : "Roo.util.Observable",
222 "type" : "Observable",
223 "desc" : "The Observable to release",
231 "name" : "removeListener",
232 "desc" : "Removes a listener",
234 "isConstructor" : false,
236 "memberOf" : "Roo.util.Observable",
243 "name" : "eventName",
245 "desc" : "The type of event to listen for",
251 "desc" : "The handler to remove",
257 "desc" : "(optional) The scope (this object) for the handler",
265 "name" : "fireEvent",
266 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
268 "isConstructor" : false,
270 "memberOf" : "Roo.util.Observable",
277 "name" : "eventName",
284 "type" : "Object...",
285 "desc" : "Variable number of parameters are passed to handlers",
293 "desc" : "returns false if any of the handlers return false otherwise it returns true"
298 "name" : "hasListener",
299 "desc" : "Checks to see if this object has any listeners for a specified event",
301 "isConstructor" : false,
303 "memberOf" : "Roo.util.Observable",
310 "name" : "eventName",
312 "desc" : "The name of the event to check for",
320 "desc" : "True if the event is being listened for, else false"
326 "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.",
328 "isConstructor" : false,
330 "memberOf" : "Roo.util.Observable",
338 "type" : "Observable",
339 "desc" : "The Observable to capture",
345 "desc" : "The function to call",
351 "desc" : "(optional) The scope (this object) for the fn",
359 "name" : "addListener",
360 "desc" : "Appends an event handler to this component",
362 "isConstructor" : false,
364 "memberOf" : "Roo.util.Observable",
371 "name" : "eventName",
373 "desc" : "The type of event to listen for",
379 "desc" : "The method the event invokes",
385 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
391 "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>",
402 "desc" : "Fires when a new child node is appended to a node in this tree.",
412 "desc" : "The owner tree",
418 "desc" : "The parent node",
424 "desc" : "The newly appended node",
430 "desc" : "The index of the newly appended node",
438 "name" : "beforemove",
439 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
449 "desc" : "The owner tree",
455 "desc" : "The node being moved",
459 "name" : "oldParent",
461 "desc" : "The parent of the node",
465 "name" : "newParent",
467 "desc" : "The new parent the node is moving to",
473 "desc" : "The index it is being moved to",
482 "desc" : "Fires when a new child node is inserted in a node in this tree.",
492 "desc" : "The owner tree",
498 "desc" : "The parent node",
504 "desc" : "The child node inserted",
510 "desc" : "The child node the node was inserted before",
518 "name" : "beforeappend",
519 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
529 "desc" : "The owner tree",
535 "desc" : "The parent node",
541 "desc" : "The child node to be appended",
550 "desc" : "Fires when a node is moved to a new location in the tree",
560 "desc" : "The owner tree",
566 "desc" : "The node moved",
570 "name" : "oldParent",
572 "desc" : "The old parent of this node",
576 "name" : "newParent",
578 "desc" : "The new parent of this node",
584 "desc" : "The index it was moved to",
592 "name" : "beforeremove",
593 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
603 "desc" : "The owner tree",
609 "desc" : "The parent node",
615 "desc" : "The child node to be removed",
624 "desc" : "Fires when a child node is removed from a node in this tree.",
634 "desc" : "The owner tree",
640 "desc" : "The parent node",
646 "desc" : "The child node removed",
654 "name" : "beforeinsert",
655 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
665 "desc" : "The owner tree",
671 "desc" : "The parent node",
677 "desc" : "The child node to be inserted",
683 "desc" : "The child node the node is being inserted before",