2 "name" : "Roo.tree.DefaultSelectionModel",
6 "desc" : "The default single selection for a TreePanel.",
10 "memberOf" : "DefaultSelectionModel",
19 "desc" : "Configuration",
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" : "getSelectedNode",
36 "desc" : "Get the selected node",
38 "isConstructor" : false,
40 "memberOf" : "Roo.tree.DefaultSelectionModel",
50 "desc" : "The selected node"
55 "name" : "clearSelections",
56 "desc" : "Clear all selections",
58 "isConstructor" : false,
60 "memberOf" : "Roo.tree.DefaultSelectionModel",
69 "name" : "isSelected",
70 "desc" : "Returns true if the node is selected",
72 "isConstructor" : false,
74 "memberOf" : "Roo.tree.DefaultSelectionModel",
83 "desc" : "The node to check",
96 "name" : "selectPrevious",
97 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
99 "isConstructor" : false,
101 "memberOf" : "Roo.tree.DefaultSelectionModel",
111 "desc" : "TreeNode The new selection"
117 "desc" : "Deselect a node.",
119 "isConstructor" : false,
121 "memberOf" : "Roo.tree.DefaultSelectionModel",
130 "desc" : "The node to unselect",
138 "desc" : "Select a node.",
140 "isConstructor" : false,
142 "memberOf" : "Roo.tree.DefaultSelectionModel",
151 "desc" : "The node to select",
159 "desc" : "The selected node"
164 "name" : "selectNext",
165 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
167 "isConstructor" : false,
169 "memberOf" : "Roo.tree.DefaultSelectionModel",
179 "desc" : "TreeNode The new selection"
184 "name" : "purgeListeners",
185 "desc" : "Removes all listeners for this object",
187 "isConstructor" : false,
189 "memberOf" : "Roo.util.Observable",
199 "desc" : "Appends an event handler to this element (shorthand for addListener)",
201 "isConstructor" : false,
203 "memberOf" : "Roo.util.Observable",
210 "name" : "eventName",
212 "desc" : "The type of event to listen for",
218 "desc" : "The method the event invokes",
224 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
230 "desc" : "(optional)",
238 "desc" : "Removes a listener (shorthand for removeListener)",
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" : "addEvents",
271 "desc" : "Used to define events on this Observable",
273 "isConstructor" : false,
275 "memberOf" : "Roo.util.Observable",
284 "desc" : "The object with the events defined",
291 "name" : "releaseCapture",
292 "desc" : "Removes <b>all</b> added captures from the Observable.",
294 "isConstructor" : false,
296 "memberOf" : "Roo.util.Observable",
304 "type" : "Observable",
305 "desc" : "The Observable to release",
312 "name" : "removeListener",
313 "desc" : "Removes a listener",
315 "isConstructor" : false,
317 "memberOf" : "Roo.util.Observable",
324 "name" : "eventName",
326 "desc" : "The type of event to listen for",
332 "desc" : "The handler to remove",
338 "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",
438 "name" : "addListener",
439 "desc" : "Appends an event handler to this component",
441 "isConstructor" : false,
443 "memberOf" : "Roo.util.Observable",
450 "name" : "eventName",
452 "desc" : "The type of event to listen for",
458 "desc" : "The method the event invokes",
464 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
470 "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>",
479 "name" : "selectionchange",
480 "desc" : "Fires when the selected node changes",
481 "memberOf" : "Roo.tree.DefaultSelectionModel",
489 "type" : "DefaultSelectionModel",
496 "desc" : "the new selection",
503 "name" : "beforeselect",
504 "desc" : "Fires before the selected node changes, return false to cancel the change",
505 "memberOf" : "Roo.tree.DefaultSelectionModel",
513 "type" : "DefaultSelectionModel",
520 "desc" : "the new selection",
526 "desc" : "the old selection",