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",
30 "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>",
31 "memberOf" : "Roo.util.Observable"
36 "name" : "setRootNode",
38 "desc" : "Sets the root node for this tree.",
43 "isConstructor" : false,
68 "name" : "getRootNode",
70 "desc" : "Returns the root node for this tree.",
75 "isConstructor" : false,
93 "name" : "getNodeById",
95 "desc" : "Gets a node in this tree by its id.",
100 "isConstructor" : false,
125 "name" : "purgeListeners",
127 "desc" : "Removes all listeners for this object",
128 "sig" : "()\n{\n\n}",
130 "memberOf" : "Roo.util.Observable",
132 "isConstructor" : false,
146 "desc" : "Appends an event handler to this element (shorthand for addListener)",
147 "sig" : "(eventName, handler, scope, options)",
149 "memberOf" : "Roo.util.Observable",
151 "isConstructor" : false,
161 "name" : "eventName",
163 "desc" : "The type of event to listen for",
169 "desc" : "The method the event invokes",
175 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
181 "desc" : "(optional)",
190 "desc" : "Removes a listener (shorthand for removeListener)",
191 "sig" : "(eventName, handler, scope)",
193 "memberOf" : "Roo.util.Observable",
195 "isConstructor" : false,
205 "name" : "eventName",
207 "desc" : "The type of event to listen for",
213 "desc" : "The handler to remove",
219 "desc" : "(optional) The scope (this object) for the handler",
226 "name" : "addEvents",
228 "desc" : "Used to define events on this Observable",
231 "memberOf" : "Roo.util.Observable",
233 "isConstructor" : false,
245 "desc" : "The object with the events defined",
252 "name" : "releaseCapture",
254 "desc" : "Removes <b>all</b> added captures from the Observable.",
257 "memberOf" : "Roo.util.Observable",
259 "isConstructor" : false,
270 "type" : "Observable",
271 "desc" : "The Observable to release",
278 "name" : "removeListener",
280 "desc" : "Removes a listener",
281 "sig" : "(eventName, handler, scope)",
283 "memberOf" : "Roo.util.Observable",
285 "isConstructor" : false,
295 "name" : "eventName",
297 "desc" : "The type of event to listen for",
303 "desc" : "The handler to remove",
309 "desc" : "(optional) The scope (this object) for the handler",
316 "name" : "fireEvent",
318 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
319 "sig" : "(eventName, args)",
321 "memberOf" : "Roo.util.Observable",
323 "isConstructor" : false,
333 "name" : "eventName",
340 "type" : "Object...",
341 "desc" : "Variable number of parameters are passed to handlers",
349 "desc" : "returns false if any of the handlers return false otherwise it returns true"
354 "name" : "hasListener",
356 "desc" : "Checks to see if this object has any listeners for a specified event",
357 "sig" : "(eventName)",
359 "memberOf" : "Roo.util.Observable",
361 "isConstructor" : false,
371 "name" : "eventName",
373 "desc" : "The name of the event to check for",
381 "desc" : "True if the event is being listened for, else false"
388 "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.",
389 "sig" : "(o, fn, scope)",
391 "memberOf" : "Roo.util.Observable",
393 "isConstructor" : false,
404 "type" : "Observable",
405 "desc" : "The Observable to capture",
411 "desc" : "The function to call",
417 "desc" : "(optional) The scope (this object) for the fn",
424 "name" : "addListener",
426 "desc" : "Appends an event handler to this component",
427 "sig" : "(eventName, handler, scope, options)",
429 "memberOf" : "Roo.util.Observable",
431 "isConstructor" : false,
441 "name" : "eventName",
443 "desc" : "The type of event to listen for",
449 "desc" : "The method the event invokes",
455 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
461 "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>",
472 "desc" : "Fires when a new child node is appended to a node in this tree.",
473 "sig" : "function (tree, parent, node, index)\n{\n\n}",
483 "desc" : "The owner tree",
489 "desc" : "The parent node",
495 "desc" : "The newly appended node",
501 "desc" : "The index of the newly appended node",
508 "name" : "beforemove",
510 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
511 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
521 "desc" : "The owner tree",
527 "desc" : "The node being moved",
531 "name" : "oldParent",
533 "desc" : "The parent of the node",
537 "name" : "newParent",
539 "desc" : "The new parent the node is moving to",
545 "desc" : "The index it is being moved to",
554 "desc" : "Fires when a new child node is inserted in a node in this tree.",
555 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
565 "desc" : "The owner tree",
571 "desc" : "The parent node",
577 "desc" : "The child node inserted",
583 "desc" : "The child node the node was inserted before",
590 "name" : "beforeappend",
592 "desc" : "Fires before a new child is appended to a node in this tree, return false to cancel the append.",
593 "sig" : "function (tree, parent, node)\n{\n\n}",
603 "desc" : "The owner tree",
609 "desc" : "The parent node",
615 "desc" : "The child node to be appended",
624 "desc" : "Fires when a node is moved to a new location in the tree",
625 "sig" : "function (tree, node, oldParent, newParent, index)\n{\n\n}",
635 "desc" : "The owner tree",
641 "desc" : "The node moved",
645 "name" : "oldParent",
647 "desc" : "The old parent of this node",
651 "name" : "newParent",
653 "desc" : "The new parent of this node",
659 "desc" : "The index it was moved to",
666 "name" : "beforeremove",
668 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
669 "sig" : "function (tree, parent, node)\n{\n\n}",
679 "desc" : "The owner tree",
685 "desc" : "The parent node",
691 "desc" : "The child node to be removed",
700 "desc" : "Fires when a child node is removed from a node in this tree.",
701 "sig" : "function (tree, parent, node)\n{\n\n}",
711 "desc" : "The owner tree",
717 "desc" : "The parent node",
723 "desc" : "The child node removed",
730 "name" : "beforeinsert",
732 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
733 "sig" : "function (tree, parent, node, refNode)\n{\n\n}",
743 "desc" : "The owner tree",
749 "desc" : "The parent node",
755 "desc" : "The child node to be inserted",
761 "desc" : "The child node the node is being inserted before",