2 "name" : "Roo.tree.DefaultSelectionModel",
6 "desc" : "The default single selection for a TreePanel.",
10 "memberOf" : "DefaultSelectionModel",
19 "desc" : "Configuration",
29 "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>",
30 "memberOf" : "Roo.util.Observable",
37 "name" : "getSelectedNode",
38 "desc" : "Get the selected node",
40 "isConstructor" : false,
42 "memberOf" : "Roo.tree.DefaultSelectionModel",
53 "desc" : "The selected node"
58 "name" : "clearSelections",
59 "desc" : "Clear all selections",
61 "isConstructor" : false,
63 "memberOf" : "Roo.tree.DefaultSelectionModel",
74 "name" : "isSelected",
75 "desc" : "Returns true if the node is selected",
77 "isConstructor" : false,
79 "memberOf" : "Roo.tree.DefaultSelectionModel",
88 "desc" : "The node to check",
101 "name" : "selectPrevious",
102 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
104 "isConstructor" : false,
106 "memberOf" : "Roo.tree.DefaultSelectionModel",
117 "desc" : "TreeNode The new selection"
123 "desc" : "Deselect a node.",
125 "isConstructor" : false,
127 "memberOf" : "Roo.tree.DefaultSelectionModel",
136 "desc" : "The node to unselect",
145 "desc" : "Select a node.",
147 "isConstructor" : false,
149 "memberOf" : "Roo.tree.DefaultSelectionModel",
158 "desc" : "The node to select",
166 "desc" : "The selected node"
171 "name" : "selectNext",
172 "desc" : "Selects the node above the selected node in the tree, intelligently walking the nodes",
174 "isConstructor" : false,
176 "memberOf" : "Roo.tree.DefaultSelectionModel",
187 "desc" : "TreeNode The new selection"
192 "name" : "purgeListeners",
193 "desc" : "Removes all listeners for this object",
195 "isConstructor" : false,
197 "memberOf" : "Roo.util.Observable",
209 "desc" : "Appends an event handler to this element (shorthand for addListener)",
211 "isConstructor" : false,
213 "memberOf" : "Roo.util.Observable",
220 "name" : "eventName",
222 "desc" : "The type of event to listen for",
228 "desc" : "The method the event invokes",
234 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
240 "desc" : "(optional)",
249 "desc" : "Removes a listener (shorthand for removeListener)",
251 "isConstructor" : false,
253 "memberOf" : "Roo.util.Observable",
260 "name" : "eventName",
262 "desc" : "The type of event to listen for",
268 "desc" : "The handler to remove",
274 "desc" : "(optional) The scope (this object) for the handler",
282 "name" : "addEvents",
283 "desc" : "Used to define events on this Observable",
285 "isConstructor" : false,
287 "memberOf" : "Roo.util.Observable",
296 "desc" : "The object with the events defined",
304 "name" : "releaseCapture",
305 "desc" : "Removes <b>all</b> added captures from the Observable.",
307 "isConstructor" : false,
309 "memberOf" : "Roo.util.Observable",
317 "type" : "Observable",
318 "desc" : "The Observable to release",
326 "name" : "removeListener",
327 "desc" : "Removes a listener",
329 "isConstructor" : false,
331 "memberOf" : "Roo.util.Observable",
338 "name" : "eventName",
340 "desc" : "The type of event to listen for",
346 "desc" : "The handler to remove",
352 "desc" : "(optional) The scope (this object) for the handler",
360 "name" : "fireEvent",
361 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
363 "isConstructor" : false,
365 "memberOf" : "Roo.util.Observable",
372 "name" : "eventName",
379 "type" : "Object...",
380 "desc" : "Variable number of parameters are passed to handlers",
388 "desc" : "returns false if any of the handlers return false otherwise it returns true"
393 "name" : "hasListener",
394 "desc" : "Checks to see if this object has any listeners for a specified event",
396 "isConstructor" : false,
398 "memberOf" : "Roo.util.Observable",
405 "name" : "eventName",
407 "desc" : "The name of the event to check for",
415 "desc" : "True if the event is being listened for, else false"
421 "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.",
423 "isConstructor" : false,
425 "memberOf" : "Roo.util.Observable",
433 "type" : "Observable",
434 "desc" : "The Observable to capture",
440 "desc" : "The function to call",
446 "desc" : "(optional) The scope (this object) for the fn",
454 "name" : "addListener",
455 "desc" : "Appends an event handler to this component",
457 "isConstructor" : false,
459 "memberOf" : "Roo.util.Observable",
466 "name" : "eventName",
468 "desc" : "The type of event to listen for",
474 "desc" : "The method the event invokes",
480 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
486 "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>",
496 "name" : "selectionchange",
497 "desc" : "Fires when the selected node changes",
506 "type" : "DefaultSelectionModel",
513 "desc" : "the new selection",
521 "name" : "beforeselect",
522 "desc" : "Fires before the selected node changes, return false to cancel the change",
531 "type" : "DefaultSelectionModel",
538 "desc" : "the new selection",
544 "desc" : "the old selection",