2 "name" : "Roo.grid.CellSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
10 "desc" : "This class provides the basic implementation for cell selection in a grid.",
11 "isSingleton" : false,
15 "isBuilderTop" : false,
16 "memberOf" : "CellSelectionModel",
25 "desc" : "The object containing the configuration of this model.",
36 "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>",
37 "memberOf" : "Roo.util.Observable"
40 "name" : "enter_is_tab",
42 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
43 "memberOf" : "Roo.grid.CellSelectionModel"
48 "name" : "hasSelection",
50 "desc" : "Returns true if there is a selection.",
55 "isConstructor" : false,
73 "name" : "onEditorKey",
75 "desc" : "Selects a cell.",
80 "isConstructor" : false,
92 "desc" : "(not used) - as it's normally used as a listener",
98 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
107 "desc" : "Selects a cell.",
108 "sig" : "(rowIndex, collIndex)",
112 "isConstructor" : false,
128 "name" : "collIndex",
137 "name" : "getSelectedCell",
139 "desc" : "Returns the currently selected cell,.",
140 "sig" : "()\n{\n\n}",
144 "isConstructor" : false,
157 "desc" : "The selected cell (row, column) or null if none selected."
162 "name" : "clearSelections",
164 "desc" : "Clears all selections.",
169 "isConstructor" : false,
181 "desc" : "to prevent the gridview from being notified about the change.",
190 "desc" : "Locks the selections.",
191 "sig" : "()\n{\n\n}",
193 "memberOf" : "Roo.grid.AbstractSelectionModel",
195 "isConstructor" : false,
209 "desc" : "Returns true if the selections are locked.",
210 "sig" : "()\n{\n\n}",
212 "memberOf" : "Roo.grid.AbstractSelectionModel",
214 "isConstructor" : false,
234 "desc" : "Unlocks the selections.",
235 "sig" : "()\n{\n\n}",
237 "memberOf" : "Roo.grid.AbstractSelectionModel",
239 "isConstructor" : false,
251 "name" : "purgeListeners",
253 "desc" : "Removes all listeners for this object",
254 "sig" : "()\n{\n\n}",
256 "memberOf" : "Roo.util.Observable",
258 "isConstructor" : false,
272 "desc" : "Appends an event handler to this element (shorthand for addListener)",
273 "sig" : "(eventName, handler, scope, options)",
275 "memberOf" : "Roo.util.Observable",
277 "isConstructor" : false,
287 "name" : "eventName",
289 "desc" : "The type of event to listen for",
295 "desc" : "The method the event invokes",
301 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
307 "desc" : "(optional)",
316 "desc" : "Removes a listener (shorthand for removeListener)",
317 "sig" : "(eventName, handler, scope)",
319 "memberOf" : "Roo.util.Observable",
321 "isConstructor" : false,
331 "name" : "eventName",
333 "desc" : "The type of event to listen for",
339 "desc" : "The handler to remove",
345 "desc" : "(optional) The scope (this object) for the handler",
352 "name" : "addEvents",
354 "desc" : "Used to define events on this Observable",
357 "memberOf" : "Roo.util.Observable",
359 "isConstructor" : false,
371 "desc" : "The object with the events defined",
378 "name" : "releaseCapture",
380 "desc" : "Removes <b>all</b> added captures from the Observable.",
383 "memberOf" : "Roo.util.Observable",
385 "isConstructor" : false,
396 "type" : "Observable",
397 "desc" : "The Observable to release",
404 "name" : "removeListener",
406 "desc" : "Removes a listener",
407 "sig" : "(eventName, handler, scope)",
409 "memberOf" : "Roo.util.Observable",
411 "isConstructor" : false,
421 "name" : "eventName",
423 "desc" : "The type of event to listen for",
429 "desc" : "The handler to remove",
435 "desc" : "(optional) The scope (this object) for the handler",
442 "name" : "fireEvent",
444 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
445 "sig" : "(eventName, args)",
447 "memberOf" : "Roo.util.Observable",
449 "isConstructor" : false,
459 "name" : "eventName",
466 "type" : "Object...",
467 "desc" : "Variable number of parameters are passed to handlers",
475 "desc" : "returns false if any of the handlers return false otherwise it returns true"
480 "name" : "hasListener",
482 "desc" : "Checks to see if this object has any listeners for a specified event",
483 "sig" : "(eventName)",
485 "memberOf" : "Roo.util.Observable",
487 "isConstructor" : false,
497 "name" : "eventName",
499 "desc" : "The name of the event to check for",
507 "desc" : "True if the event is being listened for, else false"
514 "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.",
515 "sig" : "(o, fn, scope)",
517 "memberOf" : "Roo.util.Observable",
519 "isConstructor" : false,
530 "type" : "Observable",
531 "desc" : "The Observable to capture",
537 "desc" : "The function to call",
543 "desc" : "(optional) The scope (this object) for the fn",
550 "name" : "addListener",
552 "desc" : "Appends an event handler to this component",
553 "sig" : "(eventName, handler, scope, options)",
555 "memberOf" : "Roo.util.Observable",
557 "isConstructor" : false,
567 "name" : "eventName",
569 "desc" : "The type of event to listen for",
575 "desc" : "The method the event invokes",
581 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
587 "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>",
596 "name" : "beforeeditnext",
598 "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",
599 "sig" : "function (eventdata)\n{\n\n}",
607 "name" : "eventdata",
609 "desc" : "object : { cell : [ row, col ] }",
616 "name" : "cellselect",
618 "desc" : "Fires when a cell is selected.",
619 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
628 "type" : "SelectionModel",
635 "desc" : "The selected row index",
641 "desc" : "The selected cell index",
650 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
651 "sig" : "function (_self)\n{\n\n}",
660 "type" : "SelectionModel",
668 "name" : "selectionchange",
670 "desc" : "Fires when the active selection changes.",
671 "sig" : "function (_self, selection)\n{\n\n}",
680 "type" : "SelectionModel",
685 "name" : "selection",
687 "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>",
694 "name" : "beforerowselect",
696 "desc" : "Fires before a cell is selected.",
697 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
706 "type" : "SelectionModel",
713 "desc" : "The selected row index",
719 "desc" : "The selected cell index",