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",
50 "name" : "setRootNode",
52 "desc" : "Sets the root node for this tree.",
57 "isConstructor" : false,
82 "name" : "getRootNode",
84 "desc" : "Returns the root node for this tree.",
89 "isConstructor" : false,
107 "name" : "getNodeById",
109 "desc" : "Gets a node in this tree by its id.",
114 "isConstructor" : false,
139 "name" : "purgeListeners",
141 "desc" : "Removes all listeners for this object",
142 "sig" : "()\n{\n\n}",
144 "memberOf" : "Roo.util.Observable",
146 "isConstructor" : false,
160 "desc" : "Appends an event handler to this element (shorthand for addListener)",
161 "sig" : "(eventName, handler, scope, options)",
163 "memberOf" : "Roo.util.Observable",
165 "isConstructor" : false,
175 "name" : "eventName",
177 "desc" : "The type of event to listen for",
183 "desc" : "The method the event invokes",
189 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
195 "desc" : "(optional)",
204 "desc" : "Removes a listener (shorthand for removeListener)",
205 "sig" : "(eventName, handler, scope)",
207 "memberOf" : "Roo.util.Observable",
209 "isConstructor" : false,
219 "name" : "eventName",
221 "desc" : "The type of event to listen for",
227 "desc" : "The handler to remove",
233 "desc" : "(optional) The scope (this object) for the handler",
240 "name" : "addEvents",
242 "desc" : "Used to define events on this Observable",
245 "memberOf" : "Roo.util.Observable",
247 "isConstructor" : false,
259 "desc" : "The object with the events defined",
266 "name" : "releaseCapture",
268 "desc" : "Removes <b>all</b> added captures from the Observable.",
271 "memberOf" : "Roo.util.Observable",
273 "isConstructor" : false,
284 "type" : "Observable",
285 "desc" : "The Observable to release",
292 "name" : "removeListener",
294 "desc" : "Removes a listener",
295 "sig" : "(eventName, handler, scope)",
297 "memberOf" : "Roo.util.Observable",
299 "isConstructor" : false,
309 "name" : "eventName",
311 "desc" : "The type of event to listen for",
317 "desc" : "The handler to remove",
323 "desc" : "(optional) The scope (this object) for the handler",
330 "name" : "fireEvent",
332 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
333 "sig" : "(eventName, args)",
335 "memberOf" : "Roo.util.Observable",
337 "isConstructor" : false,
347 "name" : "eventName",
354 "type" : "Object...",
355 "desc" : "Variable number of parameters are passed to handlers",
363 "desc" : "returns false if any of the handlers return false otherwise it returns true"
368 "name" : "hasListener",
370 "desc" : "Checks to see if this object has any listeners for a specified event",
371 "sig" : "(eventName)",
373 "memberOf" : "Roo.util.Observable",
375 "isConstructor" : false,
385 "name" : "eventName",
387 "desc" : "The name of the event to check for",
395 "desc" : "True if the event is being listened for, else false"
402 "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.",
403 "sig" : "(o, fn, scope)",
405 "memberOf" : "Roo.util.Observable",
407 "isConstructor" : false,
418 "type" : "Observable",
419 "desc" : "The Observable to capture",
425 "desc" : "The function to call",
431 "desc" : "(optional) The scope (this object) for the fn",
438 "name" : "addListener",
440 "desc" : "Appends an event handler to this component",
441 "sig" : "(eventName, handler, scope, options)",
443 "memberOf" : "Roo.util.Observable",
445 "isConstructor" : false,
455 "name" : "eventName",
457 "desc" : "The type of event to listen for",
463 "desc" : "The method the event invokes",
469 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
475 "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>",
486 "desc" : "Fires when a new child node is appended to a node in this tree.",
487 "sig" : "function (tree, parent, node, index)\n{\n\n}",
497 "desc" : "The owner tree",
503 "desc" : "The parent node",
509 "desc" : "The newly appended node",
515 "desc" : "The index of the newly appended node",
522 "name" : "beforemove",
524 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
525 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
535 "desc" : "The owner tree",
541 "desc" : "The node being moved",
545 "name" : "oldParent",
547 "desc" : "The parent of the node",
551 "name" : "newParent",
553 "desc" : "The new parent the node is moving to",
559 "desc" : "The index it is being moved to",
568 "desc" : "Fires when a new child node is inserted in a node in this tree.",
569 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
579 "desc" : "The owner tree",
585 "desc" : "The parent node",
591 "desc" : "The child node inserted",
597 "desc" : "The child node the node was inserted before",
604 "name" : "beforeappend",
606 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
607 "sig" : "function (tree, parent, node)\n{\n\n}",
617 "desc" : "The owner tree",
623 "desc" : "The parent node",
629 "desc" : "The child node to be appended",
638 "desc" : "Fires when a node is moved to a new location in the tree",
639 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
649 "desc" : "The owner tree",
655 "desc" : "The node moved",
659 "name" : "oldParent",
661 "desc" : "The old parent of this node",
665 "name" : "newParent",
667 "desc" : "The new parent of this node",
673 "desc" : "The index it was moved to",
680 "name" : "beforeremove",
682 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
683 "sig" : "function (tree, parent, node)\n{\n\n}",
693 "desc" : "The owner tree",
699 "desc" : "The parent node",
705 "desc" : "The child node to be removed",
714 "desc" : "Fires when a child node is removed from a node in this tree.",
715 "sig" : "function (tree, parent, node)\n{\n\n}",
725 "desc" : "The owner tree",
731 "desc" : "The parent node",
737 "desc" : "The child node removed",
744 "name" : "beforeinsert",
746 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
747 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
757 "desc" : "The owner tree",
763 "desc" : "The parent node",
769 "desc" : "The child node to be inserted",
775 "desc" : "The child node the node is being inserted before",