2 "name" : "Roo.tree.DefaultSelectionModel",
6 "desc" : "The default single selection for a TreePanel.",
10 "memberOf" : "DefaultSelectionModel",
19 "desc" : "Configuration",
30 "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>",
31 "memberOf" : "Roo.util.Observable"
36 "name" : "getSelectedNode",
38 "desc" : "Get the selected node",
43 "isConstructor" : false,
56 "desc" : "The selected node"
61 "name" : "clearSelections",
63 "desc" : "Clear all selections",
68 "isConstructor" : false,
80 "name" : "isSelected",
82 "desc" : "Returns true if the node is selected",
87 "isConstructor" : false,
99 "desc" : "The node to check",
112 "name" : "selectPrevious",
114 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
115 "sig" : "()\n{\n\n}",
119 "isConstructor" : false,
132 "desc" : "TreeNode The new selection"
139 "desc" : "Deselect a node.",
144 "isConstructor" : false,
156 "desc" : "The node to unselect",
165 "desc" : "Select a node.",
170 "isConstructor" : false,
182 "desc" : "The node to select",
190 "desc" : "The selected node"
195 "name" : "selectNext",
197 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
198 "sig" : "()\n{\n\n}",
202 "isConstructor" : false,
215 "desc" : "TreeNode The new selection"
220 "name" : "purgeListeners",
222 "desc" : "Removes all listeners for this object",
223 "sig" : "()\n{\n\n}",
225 "memberOf" : "Roo.util.Observable",
227 "isConstructor" : false,
241 "desc" : "Appends an event handler to this element (shorthand for addListener)",
242 "sig" : "(eventName, handler, scope, options)",
244 "memberOf" : "Roo.util.Observable",
246 "isConstructor" : false,
256 "name" : "eventName",
258 "desc" : "The type of event to listen for",
264 "desc" : "The method the event invokes",
270 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
276 "desc" : "(optional)",
285 "desc" : "Removes a listener (shorthand for removeListener)",
286 "sig" : "(eventName, handler, scope)",
288 "memberOf" : "Roo.util.Observable",
290 "isConstructor" : false,
300 "name" : "eventName",
302 "desc" : "The type of event to listen for",
308 "desc" : "The handler to remove",
314 "desc" : "(optional) The scope (this object) for the handler",
321 "name" : "addEvents",
323 "desc" : "Used to define events on this Observable",
326 "memberOf" : "Roo.util.Observable",
328 "isConstructor" : false,
340 "desc" : "The object with the events defined",
347 "name" : "releaseCapture",
349 "desc" : "Removes <b>all</b> added captures from the Observable.",
352 "memberOf" : "Roo.util.Observable",
354 "isConstructor" : false,
365 "type" : "Observable",
366 "desc" : "The Observable to release",
373 "name" : "removeListener",
375 "desc" : "Removes a listener",
376 "sig" : "(eventName, handler, scope)",
378 "memberOf" : "Roo.util.Observable",
380 "isConstructor" : false,
390 "name" : "eventName",
392 "desc" : "The type of event to listen for",
398 "desc" : "The handler to remove",
404 "desc" : "(optional) The scope (this object) for the handler",
411 "name" : "fireEvent",
413 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
414 "sig" : "(eventName, args)",
416 "memberOf" : "Roo.util.Observable",
418 "isConstructor" : false,
428 "name" : "eventName",
435 "type" : "Object...",
436 "desc" : "Variable number of parameters are passed to handlers",
444 "desc" : "returns false if any of the handlers return false otherwise it returns true"
449 "name" : "hasListener",
451 "desc" : "Checks to see if this object has any listeners for a specified event",
452 "sig" : "(eventName)",
454 "memberOf" : "Roo.util.Observable",
456 "isConstructor" : false,
466 "name" : "eventName",
468 "desc" : "The name of the event to check for",
476 "desc" : "True if the event is being listened for, else false"
483 "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.",
484 "sig" : "(o, fn, scope)",
486 "memberOf" : "Roo.util.Observable",
488 "isConstructor" : false,
499 "type" : "Observable",
500 "desc" : "The Observable to capture",
506 "desc" : "The function to call",
512 "desc" : "(optional) The scope (this object) for the fn",
519 "name" : "addListener",
521 "desc" : "Appends an event handler to this component",
522 "sig" : "(eventName, handler, scope, options)",
524 "memberOf" : "Roo.util.Observable",
526 "isConstructor" : false,
536 "name" : "eventName",
538 "desc" : "The type of event to listen for",
544 "desc" : "The method the event invokes",
550 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
556 "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>",
565 "name" : "selectionchange",
567 "desc" : "Fires when the selected node changes",
568 "sig" : "function (_self, node)\n{\n\n}",
577 "type" : "DefaultSelectionModel",
584 "desc" : "the new selection",
591 "name" : "beforeselect",
593 "desc" : "Fires before the selected node changes, return false to cancel the change",
594 "sig" : "function (_self, node, node)\n{\n\n}",
603 "type" : "DefaultSelectionModel",
610 "desc" : "the new selection",
616 "desc" : "the old selection",