2 "name" : "Roo.tree.DefaultSelectionModel",
6 "desc" : "The default single selection for a TreePanel.",
14 "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>",
15 "memberOf" : "Roo.util.Observable",
22 "name" : "getSelectedNode",
23 "desc" : "Get the selected node",
25 "isConstructor" : false,
27 "memberOf" : "Roo.tree.DefaultSelectionModel",
38 "desc" : "The selected node"
43 "name" : "clearSelections",
44 "desc" : "Clear all selections",
46 "isConstructor" : false,
48 "memberOf" : "Roo.tree.DefaultSelectionModel",
59 "name" : "isSelected",
60 "desc" : "Returns true if the node is selected",
62 "isConstructor" : false,
64 "memberOf" : "Roo.tree.DefaultSelectionModel",
73 "desc" : "The node to check",
86 "name" : "selectPrevious",
87 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
89 "isConstructor" : false,
91 "memberOf" : "Roo.tree.DefaultSelectionModel",
102 "desc" : "TreeNode The new selection"
108 "desc" : "Deselect a node.",
110 "isConstructor" : false,
112 "memberOf" : "Roo.tree.DefaultSelectionModel",
121 "desc" : "The node to unselect",
130 "desc" : "Select a node.",
132 "isConstructor" : false,
134 "memberOf" : "Roo.tree.DefaultSelectionModel",
143 "desc" : "The node to select",
151 "desc" : "The selected node"
156 "name" : "selectNext",
157 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
159 "isConstructor" : false,
161 "memberOf" : "Roo.tree.DefaultSelectionModel",
172 "desc" : "TreeNode The new selection"
177 "name" : "purgeListeners",
178 "desc" : "Removes all listeners for this object",
180 "isConstructor" : false,
182 "memberOf" : "Roo.util.Observable",
194 "desc" : "Appends an event handler to this element (shorthand for addListener)",
196 "isConstructor" : false,
198 "memberOf" : "Roo.util.Observable",
205 "name" : "eventName",
207 "desc" : "The type of event to listen for",
213 "desc" : "The method the event invokes",
219 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
225 "desc" : "(optional)",
234 "desc" : "Removes a listener (shorthand for removeListener)",
236 "isConstructor" : false,
238 "memberOf" : "Roo.util.Observable",
245 "name" : "eventName",
247 "desc" : "The type of event to listen for",
253 "desc" : "The handler to remove",
259 "desc" : "(optional) The scope (this object) for the handler",
267 "name" : "addEvents",
268 "desc" : "Used to define events on this Observable",
270 "isConstructor" : false,
272 "memberOf" : "Roo.util.Observable",
281 "desc" : "The object with the events defined",
289 "name" : "releaseCapture",
290 "desc" : "Removes <b>all</b> added captures from the Observable.",
292 "isConstructor" : false,
294 "memberOf" : "Roo.util.Observable",
302 "type" : "Observable",
303 "desc" : "The Observable to release",
311 "name" : "removeListener",
312 "desc" : "Removes a listener",
314 "isConstructor" : false,
316 "memberOf" : "Roo.util.Observable",
323 "name" : "eventName",
325 "desc" : "The type of event to listen for",
331 "desc" : "The handler to remove",
337 "desc" : "(optional) The scope (this object) for the handler",
345 "name" : "fireEvent",
346 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
348 "isConstructor" : false,
350 "memberOf" : "Roo.util.Observable",
357 "name" : "eventName",
364 "type" : "Object...",
365 "desc" : "Variable number of parameters are passed to handlers",
373 "desc" : "returns false if any of the handlers return false otherwise it returns true"
378 "name" : "hasListener",
379 "desc" : "Checks to see if this object has any listeners for a specified event",
381 "isConstructor" : false,
383 "memberOf" : "Roo.util.Observable",
390 "name" : "eventName",
392 "desc" : "The name of the event to check for",
400 "desc" : "True if the event is being listened for, else false"
406 "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.",
408 "isConstructor" : false,
410 "memberOf" : "Roo.util.Observable",
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",
439 "name" : "addListener",
440 "desc" : "Appends an event handler to this component",
442 "isConstructor" : false,
444 "memberOf" : "Roo.util.Observable",
451 "name" : "eventName",
453 "desc" : "The type of event to listen for",
459 "desc" : "The method the event invokes",
465 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
471 "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>",
481 "name" : "selectionchange",
482 "desc" : "Fires when the selected node changes",
491 "type" : "DefaultSelectionModel",
498 "desc" : "the new selection",
506 "name" : "beforeselect",
507 "desc" : "Fires before the selected node changes, return false to cancel the change",
516 "type" : "DefaultSelectionModel",
523 "desc" : "the new selection",
529 "desc" : "the old selection",