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",
43 "name" : "getSelectedNode",
45 "desc" : "Get the selected node",
50 "isConstructor" : false,
63 "desc" : "The selected node"
68 "name" : "clearSelections",
70 "desc" : "Clear all selections",
75 "isConstructor" : false,
87 "name" : "isSelected",
89 "desc" : "Returns true if the node is selected",
94 "isConstructor" : false,
106 "desc" : "The node to check",
119 "name" : "selectPrevious",
121 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
122 "sig" : "()\n{\n\n}",
126 "isConstructor" : false,
139 "desc" : "TreeNode The new selection"
146 "desc" : "Deselect a node.",
151 "isConstructor" : false,
163 "desc" : "The node to unselect",
172 "desc" : "Select a node.",
177 "isConstructor" : false,
189 "desc" : "The node to select",
197 "desc" : "The selected node"
202 "name" : "selectNext",
204 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
205 "sig" : "()\n{\n\n}",
209 "isConstructor" : false,
222 "desc" : "TreeNode The new selection"
227 "name" : "purgeListeners",
229 "desc" : "Removes all listeners for this object",
230 "sig" : "()\n{\n\n}",
232 "memberOf" : "Roo.util.Observable",
234 "isConstructor" : false,
248 "desc" : "Appends an event handler to this element (shorthand for addListener)",
249 "sig" : "(eventName, handler, scope, options)",
251 "memberOf" : "Roo.util.Observable",
253 "isConstructor" : false,
263 "name" : "eventName",
265 "desc" : "The type of event to listen for",
271 "desc" : "The method the event invokes",
277 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
283 "desc" : "(optional)",
292 "desc" : "Removes a listener (shorthand for removeListener)",
293 "sig" : "(eventName, handler, scope)",
295 "memberOf" : "Roo.util.Observable",
297 "isConstructor" : false,
307 "name" : "eventName",
309 "desc" : "The type of event to listen for",
315 "desc" : "The handler to remove",
321 "desc" : "(optional) The scope (this object) for the handler",
328 "name" : "addEvents",
330 "desc" : "Used to define events on this Observable",
333 "memberOf" : "Roo.util.Observable",
335 "isConstructor" : false,
347 "desc" : "The object with the events defined",
354 "name" : "releaseCapture",
356 "desc" : "Removes <b>all</b> added captures from the Observable.",
359 "memberOf" : "Roo.util.Observable",
361 "isConstructor" : false,
372 "type" : "Observable",
373 "desc" : "The Observable to release",
380 "name" : "removeListener",
382 "desc" : "Removes a listener",
383 "sig" : "(eventName, handler, scope)",
385 "memberOf" : "Roo.util.Observable",
387 "isConstructor" : false,
397 "name" : "eventName",
399 "desc" : "The type of event to listen for",
405 "desc" : "The handler to remove",
411 "desc" : "(optional) The scope (this object) for the handler",
418 "name" : "fireEvent",
420 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
421 "sig" : "(eventName, args)",
423 "memberOf" : "Roo.util.Observable",
425 "isConstructor" : false,
435 "name" : "eventName",
442 "type" : "Object...",
443 "desc" : "Variable number of parameters are passed to handlers",
451 "desc" : "returns false if any of the handlers return false otherwise it returns true"
456 "name" : "hasListener",
458 "desc" : "Checks to see if this object has any listeners for a specified event",
459 "sig" : "(eventName)",
461 "memberOf" : "Roo.util.Observable",
463 "isConstructor" : false,
473 "name" : "eventName",
475 "desc" : "The name of the event to check for",
483 "desc" : "True if the event is being listened for, else false"
490 "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.",
491 "sig" : "(o, fn, scope)",
493 "memberOf" : "Roo.util.Observable",
495 "isConstructor" : false,
506 "type" : "Observable",
507 "desc" : "The Observable to capture",
513 "desc" : "The function to call",
519 "desc" : "(optional) The scope (this object) for the fn",
526 "name" : "addListener",
528 "desc" : "Appends an event handler to this component",
529 "sig" : "(eventName, handler, scope, options)",
531 "memberOf" : "Roo.util.Observable",
533 "isConstructor" : false,
543 "name" : "eventName",
545 "desc" : "The type of event to listen for",
551 "desc" : "The method the event invokes",
557 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
563 "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>",
572 "name" : "selectionchange",
574 "desc" : "Fires when the selected node changes",
575 "sig" : "function (_self, node)\n{\n\n}",
584 "type" : "DefaultSelectionModel",
591 "desc" : "the new selection",
598 "name" : "beforeselect",
600 "desc" : "Fires before the selected node changes, return false to cancel the change",
601 "sig" : "function (_self, node, node)\n{\n\n}",
610 "type" : "DefaultSelectionModel",
617 "desc" : "the new selection",
623 "desc" : "the old selection",