2 "name" : "Roo.grid.CellSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
7 "desc" : "This class provides the basic implementation for cell selection in a grid.",
11 "memberOf" : "CellSelectionModel",
20 "desc" : "The object containing the configuration of this model.",
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",
34 "name" : "enter_is_tab",
36 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
37 "memberOf" : "Roo.grid.CellSelectionModel",
43 "name" : "hasSelection",
44 "desc" : "Returns true if there is a selection.",
46 "isConstructor" : false,
48 "memberOf" : "Roo.grid.CellSelectionModel",
63 "name" : "onEditorKey",
64 "desc" : "Selects a cell.",
66 "isConstructor" : false,
68 "memberOf" : "Roo.grid.CellSelectionModel",
77 "desc" : "(not used) - as it's normally used as a listener",
83 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
91 "desc" : "Selects a cell.",
93 "isConstructor" : false,
95 "memberOf" : "Roo.grid.CellSelectionModel",
108 "name" : "collIndex",
117 "name" : "getSelectedCell",
118 "desc" : "Returns the currently selected cell,.",
120 "isConstructor" : false,
122 "memberOf" : "Roo.grid.CellSelectionModel",
132 "desc" : "The selected cell (row, column) or null if none selected."
137 "name" : "clearSelections",
138 "desc" : "Clears all selections.",
140 "isConstructor" : false,
142 "memberOf" : "Roo.grid.CellSelectionModel",
151 "desc" : "to prevent the gridview from being notified about the change.",
159 "desc" : "Locks the selections.",
161 "isConstructor" : false,
163 "memberOf" : "Roo.grid.AbstractSelectionModel",
173 "desc" : "Returns true if the selections are locked.",
175 "isConstructor" : false,
177 "memberOf" : "Roo.grid.AbstractSelectionModel",
193 "desc" : "Unlocks the selections.",
195 "isConstructor" : false,
197 "memberOf" : "Roo.grid.AbstractSelectionModel",
206 "name" : "purgeListeners",
207 "desc" : "Removes all listeners for this object",
209 "isConstructor" : false,
211 "memberOf" : "Roo.util.Observable",
221 "desc" : "Appends an event handler to this element (shorthand for addListener)",
223 "isConstructor" : false,
225 "memberOf" : "Roo.util.Observable",
232 "name" : "eventName",
234 "desc" : "The type of event to listen for",
240 "desc" : "The method the event invokes",
246 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
252 "desc" : "(optional)",
260 "desc" : "Removes a listener (shorthand for removeListener)",
262 "isConstructor" : false,
264 "memberOf" : "Roo.util.Observable",
271 "name" : "eventName",
273 "desc" : "The type of event to listen for",
279 "desc" : "The handler to remove",
285 "desc" : "(optional) The scope (this object) for the handler",
292 "name" : "addEvents",
293 "desc" : "Used to define events on this Observable",
295 "isConstructor" : false,
297 "memberOf" : "Roo.util.Observable",
306 "desc" : "The object with the events defined",
313 "name" : "releaseCapture",
314 "desc" : "Removes <b>all</b> added captures from the Observable.",
316 "isConstructor" : false,
318 "memberOf" : "Roo.util.Observable",
326 "type" : "Observable",
327 "desc" : "The Observable to release",
334 "name" : "removeListener",
335 "desc" : "Removes a listener",
337 "isConstructor" : false,
339 "memberOf" : "Roo.util.Observable",
346 "name" : "eventName",
348 "desc" : "The type of event to listen for",
354 "desc" : "The handler to remove",
360 "desc" : "(optional) The scope (this object) for the handler",
367 "name" : "fireEvent",
368 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
370 "isConstructor" : false,
372 "memberOf" : "Roo.util.Observable",
379 "name" : "eventName",
386 "type" : "Object...",
387 "desc" : "Variable number of parameters are passed to handlers",
395 "desc" : "returns false if any of the handlers return false otherwise it returns true"
400 "name" : "hasListener",
401 "desc" : "Checks to see if this object has any listeners for a specified event",
403 "isConstructor" : false,
405 "memberOf" : "Roo.util.Observable",
412 "name" : "eventName",
414 "desc" : "The name of the event to check for",
422 "desc" : "True if the event is being listened for, else false"
428 "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.",
430 "isConstructor" : false,
432 "memberOf" : "Roo.util.Observable",
440 "type" : "Observable",
441 "desc" : "The Observable to capture",
447 "desc" : "The function to call",
453 "desc" : "(optional) The scope (this object) for the fn",
460 "name" : "addListener",
461 "desc" : "Appends an event handler to this component",
463 "isConstructor" : false,
465 "memberOf" : "Roo.util.Observable",
472 "name" : "eventName",
474 "desc" : "The type of event to listen for",
480 "desc" : "The method the event invokes",
486 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
492 "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>",
501 "name" : "beforeeditnext",
502 "desc" : "Fires before the next editable sell is made active\nYou can use this to skip to another cell or fire the tabend\n if you set cell to false",
503 "memberOf" : "Roo.grid.CellSelectionModel",
510 "name" : "eventdata",
512 "desc" : "object : { cell : [ row, col ] }",
519 "name" : "cellselect",
520 "desc" : "Fires when a cell is selected.",
521 "memberOf" : "Roo.grid.CellSelectionModel",
529 "type" : "SelectionModel",
536 "desc" : "The selected row index",
542 "desc" : "The selected cell index",
550 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
551 "memberOf" : "Roo.grid.CellSelectionModel",
559 "type" : "SelectionModel",
567 "name" : "selectionchange",
568 "desc" : "Fires when the active selection changes.",
569 "memberOf" : "Roo.grid.CellSelectionModel",
577 "type" : "SelectionModel",
582 "name" : "selection",
584 "desc" : "null for no selection or an object (o) with two properties\n\t <ul>\n\t <li>o.record: the record object for the row the selection is in</li>\n\t <li>o.cell: An array of [rowIndex, columnIndex]</li>\n\t </ul>",
591 "name" : "beforerowselect",
592 "desc" : "Fires before a cell is selected.",
593 "memberOf" : "Roo.grid.CellSelectionModel",
601 "type" : "SelectionModel",
608 "desc" : "The selected row index",
614 "desc" : "The selected cell index",