2 "name" : "Roo.grid.CellSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
8 "desc" : "This class provides the basic implementation for cell selection in a grid.",
12 "memberOf" : "CellSelectionModel",
21 "desc" : "The object containing the configuration of this model.",
32 "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>",
33 "memberOf" : "Roo.util.Observable"
36 "name" : "enter_is_tab",
38 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
44 "name" : "hasSelection",
46 "desc" : "Returns true if there is a selection.",
51 "isConstructor" : false,
69 "name" : "onEditorKey",
71 "desc" : "Selects a cell.",
76 "isConstructor" : false,
88 "desc" : "(not used) - as it's normally used as a listener",
94 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
103 "desc" : "Selects a cell.",
104 "sig" : "(rowIndex, collIndex)",
108 "isConstructor" : false,
124 "name" : "collIndex",
133 "name" : "getSelectedCell",
135 "desc" : "Returns the currently selected cell,.",
136 "sig" : "()\n{\n\n}",
140 "isConstructor" : false,
153 "desc" : "The selected cell (row, column) or null if none selected."
158 "name" : "clearSelections",
160 "desc" : "Clears all selections.",
165 "isConstructor" : false,
177 "desc" : "to prevent the gridview from being notified about the change.",
186 "desc" : "Locks the selections.",
187 "sig" : "()\n{\n\n}",
189 "memberOf" : "Roo.grid.AbstractSelectionModel",
191 "isConstructor" : false,
205 "desc" : "Returns true if the selections are locked.",
206 "sig" : "()\n{\n\n}",
208 "memberOf" : "Roo.grid.AbstractSelectionModel",
210 "isConstructor" : false,
230 "desc" : "Unlocks the selections.",
231 "sig" : "()\n{\n\n}",
233 "memberOf" : "Roo.grid.AbstractSelectionModel",
235 "isConstructor" : false,
247 "name" : "purgeListeners",
249 "desc" : "Removes all listeners for this object",
250 "sig" : "()\n{\n\n}",
252 "memberOf" : "Roo.util.Observable",
254 "isConstructor" : false,
268 "desc" : "Appends an event handler to this element (shorthand for addListener)",
269 "sig" : "(eventName, handler, scope, options)",
271 "memberOf" : "Roo.util.Observable",
273 "isConstructor" : false,
283 "name" : "eventName",
285 "desc" : "The type of event to listen for",
291 "desc" : "The method the event invokes",
297 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
303 "desc" : "(optional)",
312 "desc" : "Removes a listener (shorthand for removeListener)",
313 "sig" : "(eventName, handler, scope)",
315 "memberOf" : "Roo.util.Observable",
317 "isConstructor" : false,
327 "name" : "eventName",
329 "desc" : "The type of event to listen for",
335 "desc" : "The handler to remove",
341 "desc" : "(optional) The scope (this object) for the handler",
348 "name" : "addEvents",
350 "desc" : "Used to define events on this Observable",
353 "memberOf" : "Roo.util.Observable",
355 "isConstructor" : false,
367 "desc" : "The object with the events defined",
374 "name" : "releaseCapture",
376 "desc" : "Removes <b>all</b> added captures from the Observable.",
379 "memberOf" : "Roo.util.Observable",
381 "isConstructor" : false,
392 "type" : "Observable",
393 "desc" : "The Observable to release",
400 "name" : "removeListener",
402 "desc" : "Removes a listener",
403 "sig" : "(eventName, handler, scope)",
405 "memberOf" : "Roo.util.Observable",
407 "isConstructor" : false,
417 "name" : "eventName",
419 "desc" : "The type of event to listen for",
425 "desc" : "The handler to remove",
431 "desc" : "(optional) The scope (this object) for the handler",
438 "name" : "fireEvent",
440 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
441 "sig" : "(eventName, args)",
443 "memberOf" : "Roo.util.Observable",
445 "isConstructor" : false,
455 "name" : "eventName",
462 "type" : "Object...",
463 "desc" : "Variable number of parameters are passed to handlers",
471 "desc" : "returns false if any of the handlers return false otherwise it returns true"
476 "name" : "hasListener",
478 "desc" : "Checks to see if this object has any listeners for a specified event",
479 "sig" : "(eventName)",
481 "memberOf" : "Roo.util.Observable",
483 "isConstructor" : false,
493 "name" : "eventName",
495 "desc" : "The name of the event to check for",
503 "desc" : "True if the event is being listened for, else false"
510 "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.",
511 "sig" : "(o, fn, scope)",
513 "memberOf" : "Roo.util.Observable",
515 "isConstructor" : false,
526 "type" : "Observable",
527 "desc" : "The Observable to capture",
533 "desc" : "The function to call",
539 "desc" : "(optional) The scope (this object) for the fn",
546 "name" : "addListener",
548 "desc" : "Appends an event handler to this component",
549 "sig" : "(eventName, handler, scope, options)",
551 "memberOf" : "Roo.util.Observable",
553 "isConstructor" : false,
563 "name" : "eventName",
565 "desc" : "The type of event to listen for",
571 "desc" : "The method the event invokes",
577 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
583 "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>",
592 "name" : "beforeeditnext",
594 "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",
595 "sig" : "function (eventdata)\n{\n\n}",
603 "name" : "eventdata",
605 "desc" : "object : { cell : [ row, col ] }",
612 "name" : "cellselect",
614 "desc" : "Fires when a cell is selected.",
615 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
624 "type" : "SelectionModel",
631 "desc" : "The selected row index",
637 "desc" : "The selected cell index",
646 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
647 "sig" : "function (_self)\n{\n\n}",
656 "type" : "SelectionModel",
664 "name" : "selectionchange",
666 "desc" : "Fires when the active selection changes.",
667 "sig" : "function (_self, selection)\n{\n\n}",
676 "type" : "SelectionModel",
681 "name" : "selection",
683 "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>",
690 "name" : "beforerowselect",
692 "desc" : "Fires before a cell is selected.",
693 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
702 "type" : "SelectionModel",
709 "desc" : "The selected row index",
715 "desc" : "The selected cell index",