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",
28 "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>",
29 "memberOf" : "Roo.util.Observable",
35 "name" : "setRootNode",
36 "desc" : "Sets the root node for this tree.",
38 "isConstructor" : false,
40 "memberOf" : "Roo.data.Tree",
62 "name" : "getRootNode",
63 "desc" : "Returns the root node for this tree.",
65 "isConstructor" : false,
67 "memberOf" : "Roo.data.Tree",
82 "name" : "getNodeById",
83 "desc" : "Gets a node in this tree by its id.",
85 "isConstructor" : false,
87 "memberOf" : "Roo.data.Tree",
109 "name" : "purgeListeners",
110 "desc" : "Removes all listeners for this object",
112 "isConstructor" : false,
114 "memberOf" : "Roo.util.Observable",
124 "desc" : "Appends an event handler to this element (shorthand for addListener)",
126 "isConstructor" : false,
128 "memberOf" : "Roo.util.Observable",
135 "name" : "eventName",
137 "desc" : "The type of event to listen for",
143 "desc" : "The method the event invokes",
149 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
155 "desc" : "(optional)",
163 "desc" : "Removes a listener (shorthand for removeListener)",
165 "isConstructor" : false,
167 "memberOf" : "Roo.util.Observable",
174 "name" : "eventName",
176 "desc" : "The type of event to listen for",
182 "desc" : "The handler to remove",
188 "desc" : "(optional) The scope (this object) for the handler",
195 "name" : "addEvents",
196 "desc" : "Used to define events on this Observable",
198 "isConstructor" : false,
200 "memberOf" : "Roo.util.Observable",
209 "desc" : "The object with the events defined",
216 "name" : "releaseCapture",
217 "desc" : "Removes <b>all</b> added captures from the Observable.",
219 "isConstructor" : false,
221 "memberOf" : "Roo.util.Observable",
229 "type" : "Observable",
230 "desc" : "The Observable to release",
237 "name" : "removeListener",
238 "desc" : "Removes a listener",
240 "isConstructor" : false,
242 "memberOf" : "Roo.util.Observable",
249 "name" : "eventName",
251 "desc" : "The type of event to listen for",
257 "desc" : "The handler to remove",
263 "desc" : "(optional) The scope (this object) for the handler",
270 "name" : "fireEvent",
271 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
273 "isConstructor" : false,
275 "memberOf" : "Roo.util.Observable",
282 "name" : "eventName",
289 "type" : "Object...",
290 "desc" : "Variable number of parameters are passed to handlers",
298 "desc" : "returns false if any of the handlers return false otherwise it returns true"
303 "name" : "hasListener",
304 "desc" : "Checks to see if this object has any listeners for a specified event",
306 "isConstructor" : false,
308 "memberOf" : "Roo.util.Observable",
315 "name" : "eventName",
317 "desc" : "The name of the event to check for",
325 "desc" : "True if the event is being listened for, else false"
331 "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.",
333 "isConstructor" : false,
335 "memberOf" : "Roo.util.Observable",
343 "type" : "Observable",
344 "desc" : "The Observable to capture",
350 "desc" : "The function to call",
356 "desc" : "(optional) The scope (this object) for the fn",
363 "name" : "addListener",
364 "desc" : "Appends an event handler to this component",
366 "isConstructor" : false,
368 "memberOf" : "Roo.util.Observable",
375 "name" : "eventName",
377 "desc" : "The type of event to listen for",
383 "desc" : "The method the event invokes",
389 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
395 "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>",
405 "desc" : "Fires when a new child node is appended to a node in this tree.",
406 "memberOf" : "Roo.data.Tree",
415 "desc" : "The owner tree",
421 "desc" : "The parent node",
427 "desc" : "The newly appended node",
433 "desc" : "The index of the newly appended node",
440 "name" : "beforemove",
441 "desc" : "Fires before a node is moved to a new location in the tree. Return false to cancel the move.",
442 "memberOf" : "Roo.data.Tree",
451 "desc" : "The owner tree",
457 "desc" : "The node being moved",
461 "name" : "oldParent",
463 "desc" : "The parent of the node",
467 "name" : "newParent",
469 "desc" : "The new parent the node is moving to",
475 "desc" : "The index it is being moved to",
483 "desc" : "Fires when a new child node is inserted in a node in this tree.",
484 "memberOf" : "Roo.data.Tree",
493 "desc" : "The owner tree",
499 "desc" : "The parent node",
505 "desc" : "The child node inserted",
511 "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.",
520 "memberOf" : "Roo.data.Tree",
529 "desc" : "The owner tree",
535 "desc" : "The parent node",
541 "desc" : "The child node to be appended",
549 "desc" : "Fires when a node is moved to a new location in the tree",
550 "memberOf" : "Roo.data.Tree",
559 "desc" : "The owner tree",
565 "desc" : "The node moved",
569 "name" : "oldParent",
571 "desc" : "The old parent of this node",
575 "name" : "newParent",
577 "desc" : "The new parent of this node",
583 "desc" : "The index it was moved to",
590 "name" : "beforeremove",
591 "desc" : "Fires before a child is removed from a node in this tree, return false to cancel the remove.",
592 "memberOf" : "Roo.data.Tree",
601 "desc" : "The owner tree",
607 "desc" : "The parent node",
613 "desc" : "The child node to be removed",
621 "desc" : "Fires when a child node is removed from a node in this tree.",
622 "memberOf" : "Roo.data.Tree",
631 "desc" : "The owner tree",
637 "desc" : "The parent node",
643 "desc" : "The child node removed",
650 "name" : "beforeinsert",
651 "desc" : "Fires before a new child is inserted in a node in this tree, return false to cancel the insert.",
652 "memberOf" : "Roo.data.Tree",
661 "desc" : "The owner tree",
667 "desc" : "The parent node",
673 "desc" : "The child node to be inserted",
679 "desc" : "The child node the node is being inserted before",