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.",
31 "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>",
32 "memberOf" : "Roo.util.Observable"
35 "name" : "enter_is_tab",
37 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
43 "name" : "hasSelection",
45 "desc" : "Returns true if there is a selection.",
50 "isConstructor" : false,
68 "name" : "onEditorKey",
70 "desc" : "Selects a cell.",
75 "isConstructor" : false,
87 "desc" : "(not used) - as it's normally used as a listener",
93 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
102 "desc" : "Selects a cell.",
103 "sig" : "(rowIndex, collIndex)",
107 "isConstructor" : false,
123 "name" : "collIndex",
132 "name" : "getSelectedCell",
134 "desc" : "Returns the currently selected cell,.",
135 "sig" : "()\n{\n\n}",
139 "isConstructor" : false,
152 "desc" : "The selected cell (row, column) or null if none selected."
157 "name" : "clearSelections",
159 "desc" : "Clears all selections.",
164 "isConstructor" : false,
176 "desc" : "to prevent the gridview from being notified about the change.",
185 "desc" : "Locks the selections.",
186 "sig" : "()\n{\n\n}",
188 "memberOf" : "Roo.grid.AbstractSelectionModel",
190 "isConstructor" : false,
204 "desc" : "Returns true if the selections are locked.",
205 "sig" : "()\n{\n\n}",
207 "memberOf" : "Roo.grid.AbstractSelectionModel",
209 "isConstructor" : false,
229 "desc" : "Unlocks the selections.",
230 "sig" : "()\n{\n\n}",
232 "memberOf" : "Roo.grid.AbstractSelectionModel",
234 "isConstructor" : false,
246 "name" : "purgeListeners",
248 "desc" : "Removes all listeners for this object",
249 "sig" : "()\n{\n\n}",
251 "memberOf" : "Roo.util.Observable",
253 "isConstructor" : false,
267 "desc" : "Appends an event handler to this element (shorthand for addListener)",
268 "sig" : "(eventName, handler, scope, options)",
270 "memberOf" : "Roo.util.Observable",
272 "isConstructor" : false,
282 "name" : "eventName",
284 "desc" : "The type of event to listen for",
290 "desc" : "The method the event invokes",
296 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
302 "desc" : "(optional)",
311 "desc" : "Removes a listener (shorthand for removeListener)",
312 "sig" : "(eventName, handler, scope)",
314 "memberOf" : "Roo.util.Observable",
316 "isConstructor" : false,
326 "name" : "eventName",
328 "desc" : "The type of event to listen for",
334 "desc" : "The handler to remove",
340 "desc" : "(optional) The scope (this object) for the handler",
347 "name" : "addEvents",
349 "desc" : "Used to define events on this Observable",
352 "memberOf" : "Roo.util.Observable",
354 "isConstructor" : false,
366 "desc" : "The object with the events defined",
373 "name" : "releaseCapture",
375 "desc" : "Removes <b>all</b> added captures from the Observable.",
378 "memberOf" : "Roo.util.Observable",
380 "isConstructor" : false,
391 "type" : "Observable",
392 "desc" : "The Observable to release",
399 "name" : "removeListener",
401 "desc" : "Removes a listener",
402 "sig" : "(eventName, handler, scope)",
404 "memberOf" : "Roo.util.Observable",
406 "isConstructor" : false,
416 "name" : "eventName",
418 "desc" : "The type of event to listen for",
424 "desc" : "The handler to remove",
430 "desc" : "(optional) The scope (this object) for the handler",
437 "name" : "fireEvent",
439 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
440 "sig" : "(eventName, args)",
442 "memberOf" : "Roo.util.Observable",
444 "isConstructor" : false,
454 "name" : "eventName",
461 "type" : "Object...",
462 "desc" : "Variable number of parameters are passed to handlers",
470 "desc" : "returns false if any of the handlers return false otherwise it returns true"
475 "name" : "hasListener",
477 "desc" : "Checks to see if this object has any listeners for a specified event",
478 "sig" : "(eventName)",
480 "memberOf" : "Roo.util.Observable",
482 "isConstructor" : false,
492 "name" : "eventName",
494 "desc" : "The name of the event to check for",
502 "desc" : "True if the event is being listened for, else false"
509 "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.",
510 "sig" : "(o, fn, scope)",
512 "memberOf" : "Roo.util.Observable",
514 "isConstructor" : false,
525 "type" : "Observable",
526 "desc" : "The Observable to capture",
532 "desc" : "The function to call",
538 "desc" : "(optional) The scope (this object) for the fn",
545 "name" : "addListener",
547 "desc" : "Appends an event handler to this component",
548 "sig" : "(eventName, handler, scope, options)",
550 "memberOf" : "Roo.util.Observable",
552 "isConstructor" : false,
562 "name" : "eventName",
564 "desc" : "The type of event to listen for",
570 "desc" : "The method the event invokes",
576 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
582 "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>",
591 "name" : "beforeeditnext",
593 "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",
594 "sig" : "function (eventdata)\n{\n\n}",
602 "name" : "eventdata",
604 "desc" : "object : { cell : [ row, col ] }",
611 "name" : "cellselect",
613 "desc" : "Fires when a cell is selected.",
614 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
623 "type" : "SelectionModel",
630 "desc" : "The selected row index",
636 "desc" : "The selected cell index",
645 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
646 "sig" : "function (_self)\n{\n\n}",
655 "type" : "SelectionModel",
663 "name" : "selectionchange",
665 "desc" : "Fires when the active selection changes.",
666 "sig" : "function (_self, selection)\n{\n\n}",
675 "type" : "SelectionModel",
680 "name" : "selection",
682 "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>",
689 "name" : "beforerowselect",
691 "desc" : "Fires before a cell is selected.",
692 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
701 "type" : "SelectionModel",
708 "desc" : "The selected row index",
714 "desc" : "The selected cell index",