2 "name" : "Roo.grid.CellSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
7 "desc" : "This class provides the basic implementation for cell selection in a grid.",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
21 "name" : "enter_is_tab",
23 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
24 "memberOf" : "Roo.grid.CellSelectionModel",
31 "name" : "hasSelection",
32 "desc" : "Returns true if there is a selection.",
34 "isConstructor" : false,
36 "memberOf" : "Roo.grid.CellSelectionModel",
52 "name" : "onEditorKey",
53 "desc" : "Selects a cell.",
55 "isConstructor" : false,
57 "memberOf" : "Roo.grid.CellSelectionModel",
66 "desc" : "(not used) - as it's normally used as a listener",
72 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
81 "desc" : "Selects a cell.",
83 "isConstructor" : false,
85 "memberOf" : "Roo.grid.CellSelectionModel",
108 "name" : "getSelectedCell",
109 "desc" : "Returns the currently selected cell,.",
111 "isConstructor" : false,
113 "memberOf" : "Roo.grid.CellSelectionModel",
124 "desc" : "The selected cell (row, column) or null if none selected."
129 "name" : "clearSelections",
130 "desc" : "Clears all selections.",
132 "isConstructor" : false,
134 "memberOf" : "Roo.grid.CellSelectionModel",
143 "desc" : "to prevent the gridview from being notified about the change.",
152 "desc" : "Locks the selections.",
154 "isConstructor" : false,
156 "memberOf" : "Roo.grid.AbstractSelectionModel",
168 "desc" : "Returns true if the selections are locked.",
170 "isConstructor" : false,
172 "memberOf" : "Roo.grid.AbstractSelectionModel",
189 "desc" : "Unlocks the selections.",
191 "isConstructor" : false,
193 "memberOf" : "Roo.grid.AbstractSelectionModel",
204 "name" : "purgeListeners",
205 "desc" : "Removes all listeners for this object",
207 "isConstructor" : false,
209 "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)",
261 "desc" : "Removes a listener (shorthand for removeListener)",
263 "isConstructor" : false,
265 "memberOf" : "Roo.util.Observable",
272 "name" : "eventName",
274 "desc" : "The type of event to listen for",
280 "desc" : "The handler to remove",
286 "desc" : "(optional) The scope (this object) for the handler",
294 "name" : "addEvents",
295 "desc" : "Used to define events on this Observable",
297 "isConstructor" : false,
299 "memberOf" : "Roo.util.Observable",
308 "desc" : "The object with the events defined",
316 "name" : "releaseCapture",
317 "desc" : "Removes <b>all</b> added captures from the Observable.",
319 "isConstructor" : false,
321 "memberOf" : "Roo.util.Observable",
329 "type" : "Observable",
330 "desc" : "The Observable to release",
338 "name" : "removeListener",
339 "desc" : "Removes a listener",
341 "isConstructor" : false,
343 "memberOf" : "Roo.util.Observable",
350 "name" : "eventName",
352 "desc" : "The type of event to listen for",
358 "desc" : "The handler to remove",
364 "desc" : "(optional) The scope (this object) for the handler",
372 "name" : "fireEvent",
373 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
375 "isConstructor" : false,
377 "memberOf" : "Roo.util.Observable",
384 "name" : "eventName",
391 "type" : "Object...",
392 "desc" : "Variable number of parameters are passed to handlers",
400 "desc" : "returns false if any of the handlers return false otherwise it returns true"
405 "name" : "hasListener",
406 "desc" : "Checks to see if this object has any listeners for a specified event",
408 "isConstructor" : false,
410 "memberOf" : "Roo.util.Observable",
417 "name" : "eventName",
419 "desc" : "The name of the event to check for",
427 "desc" : "True if the event is being listened for, else false"
433 "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.",
435 "isConstructor" : false,
437 "memberOf" : "Roo.util.Observable",
445 "type" : "Observable",
446 "desc" : "The Observable to capture",
452 "desc" : "The function to call",
458 "desc" : "(optional) The scope (this object) for the fn",
466 "name" : "addListener",
467 "desc" : "Appends an event handler to this component",
469 "isConstructor" : false,
471 "memberOf" : "Roo.util.Observable",
478 "name" : "eventName",
480 "desc" : "The type of event to listen for",
486 "desc" : "The method the event invokes",
492 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
498 "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>",
508 "name" : "beforeeditnext",
509 "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",
517 "name" : "eventdata",
519 "desc" : "object : { cell : [ row, col ] }",
527 "name" : "cellselect",
528 "desc" : "Fires when a cell is selected.",
537 "type" : "SelectionModel",
544 "desc" : "The selected row index",
550 "desc" : "The selected cell index",
559 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
568 "type" : "SelectionModel",
577 "name" : "selectionchange",
578 "desc" : "Fires when the active selection changes.",
587 "type" : "SelectionModel",
592 "name" : "selection",
594 "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>",
602 "name" : "beforerowselect",
603 "desc" : "Fires before a cell is selected.",
612 "type" : "SelectionModel",
619 "desc" : "The selected row index",
625 "desc" : "The selected cell index",