2 "name" : "Roo.data.Tree",
7 "Roo.tree.TreePanel" : [
16 "desc" : "Represents a tree data structure and bubbles all the events for its nodes. The nodes\nin the tree have most standard DOM functionality.",
17 "isSingleton" : false,
21 "isBuilderTop" : false,
31 "desc" : "(optional) The root node",
42 "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>",
43 "memberOf" : "Roo.util.Observable"
48 "name" : "setRootNode",
50 "desc" : "Sets the root node for this tree.",
55 "isConstructor" : false,
80 "name" : "getRootNode",
82 "desc" : "Returns the root node for this tree.",
87 "isConstructor" : false,
105 "name" : "getNodeById",
107 "desc" : "Gets a node in this tree by its id.",
112 "isConstructor" : false,
137 "name" : "purgeListeners",
139 "desc" : "Removes all listeners for this object",
140 "sig" : "()\n{\n\n}",
142 "memberOf" : "Roo.util.Observable",
144 "isConstructor" : false,
158 "desc" : "Appends an event handler to this element (shorthand for addListener)",
159 "sig" : "(eventName, handler, scope, options)",
161 "memberOf" : "Roo.util.Observable",
163 "isConstructor" : false,
173 "name" : "eventName",
175 "desc" : "The type of event to listen for",
181 "desc" : "The method the event invokes",
187 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
193 "desc" : "(optional)",
202 "desc" : "Removes a listener (shorthand for removeListener)",
203 "sig" : "(eventName, handler, scope)",
205 "memberOf" : "Roo.util.Observable",
207 "isConstructor" : false,
217 "name" : "eventName",
219 "desc" : "The type of event to listen for",
225 "desc" : "The handler to remove",
231 "desc" : "(optional) The scope (this object) for the handler",
238 "name" : "addEvents",
240 "desc" : "Used to define events on this Observable",
243 "memberOf" : "Roo.util.Observable",
245 "isConstructor" : false,
257 "desc" : "The object with the events defined",
264 "name" : "releaseCapture",
266 "desc" : "Removes <b>all</b> added captures from the Observable.",
269 "memberOf" : "Roo.util.Observable",
271 "isConstructor" : false,
282 "type" : "Observable",
283 "desc" : "The Observable to release",
290 "name" : "removeListener",
292 "desc" : "Removes a listener",
293 "sig" : "(eventName, handler, scope)",
295 "memberOf" : "Roo.util.Observable",
297 "isConstructor" : false,
307 "name" : "eventName",
309 "desc" : "The type of event to listen for",
315 "desc" : "The handler to remove",
321 "desc" : "(optional) The scope (this object) for the handler",
328 "name" : "fireEvent",
330 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
331 "sig" : "(eventName, args)",
333 "memberOf" : "Roo.util.Observable",
335 "isConstructor" : false,
345 "name" : "eventName",
352 "type" : "Object...",
353 "desc" : "Variable number of parameters are passed to handlers",
361 "desc" : "returns false if any of the handlers return false otherwise it returns true"
366 "name" : "hasListener",
368 "desc" : "Checks to see if this object has any listeners for a specified event",
369 "sig" : "(eventName)",
371 "memberOf" : "Roo.util.Observable",
373 "isConstructor" : false,
383 "name" : "eventName",
385 "desc" : "The name of the event to check for",
393 "desc" : "True if the event is being listened for, else false"
400 "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.",
401 "sig" : "(o, fn, scope)",
403 "memberOf" : "Roo.util.Observable",
405 "isConstructor" : false,
416 "type" : "Observable",
417 "desc" : "The Observable to capture",
423 "desc" : "The function to call",
429 "desc" : "(optional) The scope (this object) for the fn",
436 "name" : "addListener",
438 "desc" : "Appends an event handler to this component",
439 "sig" : "(eventName, handler, scope, options)",
441 "memberOf" : "Roo.util.Observable",
443 "isConstructor" : false,
453 "name" : "eventName",
455 "desc" : "The type of event to listen for",
461 "desc" : "The method the event invokes",
467 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
473 "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>",
484 "desc" : "Fires when a new child node is appended to a node in this tree.",
485 "sig" : "function (tree, parent, node, index)\n{\n\n}",
495 "desc" : "The owner tree",
501 "desc" : "The parent node",
507 "desc" : "The newly appended node",
513 "desc" : "The index of the newly appended node",
520 "name" : "beforemove",
522 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
523 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
533 "desc" : "The owner tree",
539 "desc" : "The node being moved",
543 "name" : "oldParent",
545 "desc" : "The parent of the node",
549 "name" : "newParent",
551 "desc" : "The new parent the node is moving to",
557 "desc" : "The index it is being moved to",
566 "desc" : "Fires when a new child node is inserted in a node in this tree.",
567 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
577 "desc" : "The owner tree",
583 "desc" : "The parent node",
589 "desc" : "The child node inserted",
595 "desc" : "The child node the node was inserted before",
602 "name" : "beforeappend",
604 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
605 "sig" : "function (tree, parent, node)\n{\n\n}",
615 "desc" : "The owner tree",
621 "desc" : "The parent node",
627 "desc" : "The child node to be appended",
636 "desc" : "Fires when a node is moved to a new location in the tree",
637 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
647 "desc" : "The owner tree",
653 "desc" : "The node moved",
657 "name" : "oldParent",
659 "desc" : "The old parent of this node",
663 "name" : "newParent",
665 "desc" : "The new parent of this node",
671 "desc" : "The index it was moved to",
678 "name" : "beforeremove",
680 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
681 "sig" : "function (tree, parent, node)\n{\n\n}",
691 "desc" : "The owner tree",
697 "desc" : "The parent node",
703 "desc" : "The child node to be removed",
712 "desc" : "Fires when a child node is removed from a node in this tree.",
713 "sig" : "function (tree, parent, node)\n{\n\n}",
723 "desc" : "The owner tree",
729 "desc" : "The parent node",
735 "desc" : "The child node removed",
742 "name" : "beforeinsert",
744 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
745 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
755 "desc" : "The owner tree",
761 "desc" : "The parent node",
767 "desc" : "The child node to be inserted",
773 "desc" : "The child node the node is being inserted before",