2 "name" : "Roo.data.Tree",
9 "desc" : "Represents a tree data structure and bubbles all the events for its nodes. The nodes\nin the tree have most standard DOM functionality.",
10 "isSingleton" : false,
22 "desc" : "(optional) The root node",
33 "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>",
34 "memberOf" : "Roo.util.Observable"
39 "name" : "setRootNode",
41 "desc" : "Sets the root node for this tree.",
46 "isConstructor" : false,
71 "name" : "getRootNode",
73 "desc" : "Returns the root node for this tree.",
78 "isConstructor" : false,
96 "name" : "getNodeById",
98 "desc" : "Gets a node in this tree by its id.",
103 "isConstructor" : false,
128 "name" : "purgeListeners",
130 "desc" : "Removes all listeners for this object",
131 "sig" : "()\n{\n\n}",
133 "memberOf" : "Roo.util.Observable",
135 "isConstructor" : false,
149 "desc" : "Appends an event handler to this element (shorthand for addListener)",
150 "sig" : "(eventName, handler, scope, options)",
152 "memberOf" : "Roo.util.Observable",
154 "isConstructor" : false,
164 "name" : "eventName",
166 "desc" : "The type of event to listen for",
172 "desc" : "The method the event invokes",
178 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
184 "desc" : "(optional)",
193 "desc" : "Removes a listener (shorthand for removeListener)",
194 "sig" : "(eventName, handler, scope)",
196 "memberOf" : "Roo.util.Observable",
198 "isConstructor" : false,
208 "name" : "eventName",
210 "desc" : "The type of event to listen for",
216 "desc" : "The handler to remove",
222 "desc" : "(optional) The scope (this object) for the handler",
229 "name" : "addEvents",
231 "desc" : "Used to define events on this Observable",
234 "memberOf" : "Roo.util.Observable",
236 "isConstructor" : false,
248 "desc" : "The object with the events defined",
255 "name" : "releaseCapture",
257 "desc" : "Removes <b>all</b> added captures from the Observable.",
260 "memberOf" : "Roo.util.Observable",
262 "isConstructor" : false,
273 "type" : "Observable",
274 "desc" : "The Observable to release",
281 "name" : "removeListener",
283 "desc" : "Removes a listener",
284 "sig" : "(eventName, handler, scope)",
286 "memberOf" : "Roo.util.Observable",
288 "isConstructor" : false,
298 "name" : "eventName",
300 "desc" : "The type of event to listen for",
306 "desc" : "The handler to remove",
312 "desc" : "(optional) The scope (this object) for the handler",
319 "name" : "fireEvent",
321 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
322 "sig" : "(eventName, args)",
324 "memberOf" : "Roo.util.Observable",
326 "isConstructor" : false,
336 "name" : "eventName",
343 "type" : "Object...",
344 "desc" : "Variable number of parameters are passed to handlers",
352 "desc" : "returns false if any of the handlers return false otherwise it returns true"
357 "name" : "hasListener",
359 "desc" : "Checks to see if this object has any listeners for a specified event",
360 "sig" : "(eventName)",
362 "memberOf" : "Roo.util.Observable",
364 "isConstructor" : false,
374 "name" : "eventName",
376 "desc" : "The name of the event to check for",
384 "desc" : "True if the event is being listened for, else false"
391 "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.",
392 "sig" : "(o, fn, scope)",
394 "memberOf" : "Roo.util.Observable",
396 "isConstructor" : false,
407 "type" : "Observable",
408 "desc" : "The Observable to capture",
414 "desc" : "The function to call",
420 "desc" : "(optional) The scope (this object) for the fn",
427 "name" : "addListener",
429 "desc" : "Appends an event handler to this component",
430 "sig" : "(eventName, handler, scope, options)",
432 "memberOf" : "Roo.util.Observable",
434 "isConstructor" : false,
444 "name" : "eventName",
446 "desc" : "The type of event to listen for",
452 "desc" : "The method the event invokes",
458 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
464 "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>",
475 "desc" : "Fires when a new child node is appended to a node in this tree.",
476 "sig" : "function (tree, parent, node, index)\n{\n\n}",
486 "desc" : "The owner tree",
492 "desc" : "The parent node",
498 "desc" : "The newly appended node",
504 "desc" : "The index of the newly appended node",
511 "name" : "beforemove",
513 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
514 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
524 "desc" : "The owner tree",
530 "desc" : "The node being moved",
534 "name" : "oldParent",
536 "desc" : "The parent of the node",
540 "name" : "newParent",
542 "desc" : "The new parent the node is moving to",
548 "desc" : "The index it is being moved to",
557 "desc" : "Fires when a new child node is inserted in a node in this tree.",
558 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
568 "desc" : "The owner tree",
574 "desc" : "The parent node",
580 "desc" : "The child node inserted",
586 "desc" : "The child node the node was inserted before",
593 "name" : "beforeappend",
595 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
596 "sig" : "function (tree, parent, node)\n{\n\n}",
606 "desc" : "The owner tree",
612 "desc" : "The parent node",
618 "desc" : "The child node to be appended",
627 "desc" : "Fires when a node is moved to a new location in the tree",
628 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
638 "desc" : "The owner tree",
644 "desc" : "The node moved",
648 "name" : "oldParent",
650 "desc" : "The old parent of this node",
654 "name" : "newParent",
656 "desc" : "The new parent of this node",
662 "desc" : "The index it was moved to",
669 "name" : "beforeremove",
671 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
672 "sig" : "function (tree, parent, node)\n{\n\n}",
682 "desc" : "The owner tree",
688 "desc" : "The parent node",
694 "desc" : "The child node to be removed",
703 "desc" : "Fires when a child node is removed from a node in this tree.",
704 "sig" : "function (tree, parent, node)\n{\n\n}",
714 "desc" : "The owner tree",
720 "desc" : "The parent node",
726 "desc" : "The child node removed",
733 "name" : "beforeinsert",
735 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
736 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
746 "desc" : "The owner tree",
752 "desc" : "The parent node",
758 "desc" : "The child node to be inserted",
764 "desc" : "The child node the node is being inserted before",