2 "name" : "Roo.tree.DefaultSelectionModel",
9 "desc" : "The default single selection for a TreePanel.",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "DefaultSelectionModel",
24 "desc" : "Configuration",
35 "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>",
36 "memberOf" : "Roo.util.Observable"
41 "name" : "getSelectedNode",
43 "desc" : "Get the selected node",
48 "isConstructor" : false,
61 "desc" : "The selected node"
66 "name" : "clearSelections",
68 "desc" : "Clear all selections",
73 "isConstructor" : false,
85 "name" : "isSelected",
87 "desc" : "Returns true if the node is selected",
92 "isConstructor" : false,
104 "desc" : "The node to check",
117 "name" : "selectPrevious",
119 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
120 "sig" : "()\n{\n\n}",
124 "isConstructor" : false,
137 "desc" : "TreeNode The new selection"
144 "desc" : "Deselect a node.",
149 "isConstructor" : false,
161 "desc" : "The node to unselect",
170 "desc" : "Select a node.",
175 "isConstructor" : false,
187 "desc" : "The node to select",
195 "desc" : "The selected node"
200 "name" : "selectNext",
202 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
203 "sig" : "()\n{\n\n}",
207 "isConstructor" : false,
220 "desc" : "TreeNode The new selection"
225 "name" : "purgeListeners",
227 "desc" : "Removes all listeners for this object",
228 "sig" : "()\n{\n\n}",
230 "memberOf" : "Roo.util.Observable",
232 "isConstructor" : false,
246 "desc" : "Appends an event handler to this element (shorthand for addListener)",
247 "sig" : "(eventName, handler, scope, options)",
249 "memberOf" : "Roo.util.Observable",
251 "isConstructor" : false,
261 "name" : "eventName",
263 "desc" : "The type of event to listen for",
269 "desc" : "The method the event invokes",
275 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
281 "desc" : "(optional)",
290 "desc" : "Removes a listener (shorthand for removeListener)",
291 "sig" : "(eventName, handler, scope)",
293 "memberOf" : "Roo.util.Observable",
295 "isConstructor" : false,
305 "name" : "eventName",
307 "desc" : "The type of event to listen for",
313 "desc" : "The handler to remove",
319 "desc" : "(optional) The scope (this object) for the handler",
326 "name" : "addEvents",
328 "desc" : "Used to define events on this Observable",
331 "memberOf" : "Roo.util.Observable",
333 "isConstructor" : false,
345 "desc" : "The object with the events defined",
352 "name" : "releaseCapture",
354 "desc" : "Removes <b>all</b> added captures from the Observable.",
357 "memberOf" : "Roo.util.Observable",
359 "isConstructor" : false,
370 "type" : "Observable",
371 "desc" : "The Observable to release",
378 "name" : "removeListener",
380 "desc" : "Removes a listener",
381 "sig" : "(eventName, handler, scope)",
383 "memberOf" : "Roo.util.Observable",
385 "isConstructor" : false,
395 "name" : "eventName",
397 "desc" : "The type of event to listen for",
403 "desc" : "The handler to remove",
409 "desc" : "(optional) The scope (this object) for the handler",
416 "name" : "fireEvent",
418 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
419 "sig" : "(eventName, args)",
421 "memberOf" : "Roo.util.Observable",
423 "isConstructor" : false,
433 "name" : "eventName",
440 "type" : "Object...",
441 "desc" : "Variable number of parameters are passed to handlers",
449 "desc" : "returns false if any of the handlers return false otherwise it returns true"
454 "name" : "hasListener",
456 "desc" : "Checks to see if this object has any listeners for a specified event",
457 "sig" : "(eventName)",
459 "memberOf" : "Roo.util.Observable",
461 "isConstructor" : false,
471 "name" : "eventName",
473 "desc" : "The name of the event to check for",
481 "desc" : "True if the event is being listened for, else false"
488 "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.",
489 "sig" : "(o, fn, scope)",
491 "memberOf" : "Roo.util.Observable",
493 "isConstructor" : false,
504 "type" : "Observable",
505 "desc" : "The Observable to capture",
511 "desc" : "The function to call",
517 "desc" : "(optional) The scope (this object) for the fn",
524 "name" : "addListener",
526 "desc" : "Appends an event handler to this component",
527 "sig" : "(eventName, handler, scope, options)",
529 "memberOf" : "Roo.util.Observable",
531 "isConstructor" : false,
541 "name" : "eventName",
543 "desc" : "The type of event to listen for",
549 "desc" : "The method the event invokes",
555 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
561 "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>",
570 "name" : "selectionchange",
572 "desc" : "Fires when the selected node changes",
573 "sig" : "function (_self, node)\n{\n\n}",
582 "type" : "DefaultSelectionModel",
589 "desc" : "the new selection",
596 "name" : "beforeselect",
598 "desc" : "Fires before the selected node changes, return false to cancel the change",
599 "sig" : "function (_self, node, node)\n{\n\n}",
608 "type" : "DefaultSelectionModel",
615 "desc" : "the new selection",
621 "desc" : "the old selection",