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.",
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" : "enter_is_tab",
38 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
39 "memberOf" : "Roo.grid.CellSelectionModel",
46 "name" : "hasSelection",
47 "desc" : "Returns true if there is a selection.",
49 "isConstructor" : false,
51 "memberOf" : "Roo.grid.CellSelectionModel",
67 "name" : "onEditorKey",
68 "desc" : "Selects a cell.",
70 "isConstructor" : false,
72 "memberOf" : "Roo.grid.CellSelectionModel",
81 "desc" : "(not used) - as it's normally used as a listener",
87 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
96 "desc" : "Selects a cell.",
98 "isConstructor" : false,
100 "memberOf" : "Roo.grid.CellSelectionModel",
113 "name" : "collIndex",
123 "name" : "getSelectedCell",
124 "desc" : "Returns the currently selected cell,.",
126 "isConstructor" : false,
128 "memberOf" : "Roo.grid.CellSelectionModel",
139 "desc" : "The selected cell (row, column) or null if none selected."
144 "name" : "clearSelections",
145 "desc" : "Clears all selections.",
147 "isConstructor" : false,
149 "memberOf" : "Roo.grid.CellSelectionModel",
158 "desc" : "to prevent the gridview from being notified about the change.",
167 "desc" : "Locks the selections.",
169 "isConstructor" : false,
171 "memberOf" : "Roo.grid.AbstractSelectionModel",
183 "desc" : "Returns true if the selections are locked.",
185 "isConstructor" : false,
187 "memberOf" : "Roo.grid.AbstractSelectionModel",
204 "desc" : "Unlocks the selections.",
206 "isConstructor" : false,
208 "memberOf" : "Roo.grid.AbstractSelectionModel",
219 "name" : "purgeListeners",
220 "desc" : "Removes all listeners for this object",
222 "isConstructor" : false,
224 "memberOf" : "Roo.util.Observable",
236 "desc" : "Appends an event handler to this element (shorthand for addListener)",
238 "isConstructor" : false,
240 "memberOf" : "Roo.util.Observable",
247 "name" : "eventName",
249 "desc" : "The type of event to listen for",
255 "desc" : "The method the event invokes",
261 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
267 "desc" : "(optional)",
276 "desc" : "Removes a listener (shorthand for removeListener)",
278 "isConstructor" : false,
280 "memberOf" : "Roo.util.Observable",
287 "name" : "eventName",
289 "desc" : "The type of event to listen for",
295 "desc" : "The handler to remove",
301 "desc" : "(optional) The scope (this object) for the handler",
309 "name" : "addEvents",
310 "desc" : "Used to define events on this Observable",
312 "isConstructor" : false,
314 "memberOf" : "Roo.util.Observable",
323 "desc" : "The object with the events defined",
331 "name" : "releaseCapture",
332 "desc" : "Removes <b>all</b> added captures from the Observable.",
334 "isConstructor" : false,
336 "memberOf" : "Roo.util.Observable",
344 "type" : "Observable",
345 "desc" : "The Observable to release",
353 "name" : "removeListener",
354 "desc" : "Removes a listener",
356 "isConstructor" : false,
358 "memberOf" : "Roo.util.Observable",
365 "name" : "eventName",
367 "desc" : "The type of event to listen for",
373 "desc" : "The handler to remove",
379 "desc" : "(optional) The scope (this object) for the handler",
387 "name" : "fireEvent",
388 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
390 "isConstructor" : false,
392 "memberOf" : "Roo.util.Observable",
399 "name" : "eventName",
406 "type" : "Object...",
407 "desc" : "Variable number of parameters are passed to handlers",
415 "desc" : "returns false if any of the handlers return false otherwise it returns true"
420 "name" : "hasListener",
421 "desc" : "Checks to see if this object has any listeners for a specified event",
423 "isConstructor" : false,
425 "memberOf" : "Roo.util.Observable",
432 "name" : "eventName",
434 "desc" : "The name of the event to check for",
442 "desc" : "True if the event is being listened for, else false"
448 "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.",
450 "isConstructor" : false,
452 "memberOf" : "Roo.util.Observable",
460 "type" : "Observable",
461 "desc" : "The Observable to capture",
467 "desc" : "The function to call",
473 "desc" : "(optional) The scope (this object) for the fn",
481 "name" : "addListener",
482 "desc" : "Appends an event handler to this component",
484 "isConstructor" : false,
486 "memberOf" : "Roo.util.Observable",
493 "name" : "eventName",
495 "desc" : "The type of event to listen for",
501 "desc" : "The method the event invokes",
507 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
513 "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>",
523 "name" : "beforeeditnext",
524 "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",
525 "memberOf" : "Roo.grid.CellSelectionModel",
532 "name" : "eventdata",
534 "desc" : "object : { cell : [ row, col ] }",
542 "name" : "cellselect",
543 "desc" : "Fires when a cell is selected.",
544 "memberOf" : "Roo.grid.CellSelectionModel",
552 "type" : "SelectionModel",
559 "desc" : "The selected row index",
565 "desc" : "The selected cell index",
574 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
575 "memberOf" : "Roo.grid.CellSelectionModel",
583 "type" : "SelectionModel",
592 "name" : "selectionchange",
593 "desc" : "Fires when the active selection changes.",
594 "memberOf" : "Roo.grid.CellSelectionModel",
602 "type" : "SelectionModel",
607 "name" : "selection",
609 "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>",
617 "name" : "beforerowselect",
618 "desc" : "Fires before a cell is selected.",
619 "memberOf" : "Roo.grid.CellSelectionModel",
627 "type" : "SelectionModel",
634 "desc" : "The selected row index",
640 "desc" : "The selected cell index",