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",
42 "name" : "enter_is_tab",
44 "desc" : "Enter behaves the same as tab. (eg. goes to next cell) default: false",
52 "name" : "hasSelection",
54 "desc" : "Returns true if there is a selection.",
59 "isConstructor" : false,
77 "name" : "onEditorKey",
79 "desc" : "Selects a cell.",
84 "isConstructor" : false,
96 "desc" : "(not used) - as it's normally used as a listener",
102 "desc" : "- event - fake it by using\n\nvar e = Roo.EventObjectImpl.prototype;\ne.keyCode = e.TAB",
111 "desc" : "Selects a cell.",
112 "sig" : "(rowIndex, collIndex)",
116 "isConstructor" : false,
132 "name" : "collIndex",
141 "name" : "getSelectedCell",
143 "desc" : "Returns the currently selected cell,.",
144 "sig" : "()\n{\n\n}",
148 "isConstructor" : false,
161 "desc" : "The selected cell (row, column) or null if none selected."
166 "name" : "clearSelections",
168 "desc" : "Clears all selections.",
173 "isConstructor" : false,
185 "desc" : "to prevent the gridview from being notified about the change.",
194 "desc" : "Locks the selections.",
195 "sig" : "()\n{\n\n}",
197 "memberOf" : "Roo.grid.AbstractSelectionModel",
199 "isConstructor" : false,
213 "desc" : "Returns true if the selections are locked.",
214 "sig" : "()\n{\n\n}",
216 "memberOf" : "Roo.grid.AbstractSelectionModel",
218 "isConstructor" : false,
238 "desc" : "Unlocks the selections.",
239 "sig" : "()\n{\n\n}",
241 "memberOf" : "Roo.grid.AbstractSelectionModel",
243 "isConstructor" : false,
255 "name" : "purgeListeners",
257 "desc" : "Removes all listeners for this object",
258 "sig" : "()\n{\n\n}",
260 "memberOf" : "Roo.util.Observable",
262 "isConstructor" : false,
276 "desc" : "Appends an event handler to this element (shorthand for addListener)",
277 "sig" : "(eventName, handler, scope, options)",
279 "memberOf" : "Roo.util.Observable",
281 "isConstructor" : false,
291 "name" : "eventName",
293 "desc" : "The type of event to listen for",
299 "desc" : "The method the event invokes",
305 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
311 "desc" : "(optional)",
320 "desc" : "Removes a listener (shorthand for removeListener)",
321 "sig" : "(eventName, handler, scope)",
323 "memberOf" : "Roo.util.Observable",
325 "isConstructor" : false,
335 "name" : "eventName",
337 "desc" : "The type of event to listen for",
343 "desc" : "The handler to remove",
349 "desc" : "(optional) The scope (this object) for the handler",
356 "name" : "addEvents",
358 "desc" : "Used to define events on this Observable",
361 "memberOf" : "Roo.util.Observable",
363 "isConstructor" : false,
375 "desc" : "The object with the events defined",
382 "name" : "releaseCapture",
384 "desc" : "Removes <b>all</b> added captures from the Observable.",
387 "memberOf" : "Roo.util.Observable",
389 "isConstructor" : false,
400 "type" : "Observable",
401 "desc" : "The Observable to release",
408 "name" : "removeListener",
410 "desc" : "Removes a listener",
411 "sig" : "(eventName, handler, scope)",
413 "memberOf" : "Roo.util.Observable",
415 "isConstructor" : false,
425 "name" : "eventName",
427 "desc" : "The type of event to listen for",
433 "desc" : "The handler to remove",
439 "desc" : "(optional) The scope (this object) for the handler",
446 "name" : "fireEvent",
448 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
449 "sig" : "(eventName, args)",
451 "memberOf" : "Roo.util.Observable",
453 "isConstructor" : false,
463 "name" : "eventName",
470 "type" : "Object...",
471 "desc" : "Variable number of parameters are passed to handlers",
479 "desc" : "returns false if any of the handlers return false otherwise it returns true"
484 "name" : "hasListener",
486 "desc" : "Checks to see if this object has any listeners for a specified event",
487 "sig" : "(eventName)",
489 "memberOf" : "Roo.util.Observable",
491 "isConstructor" : false,
501 "name" : "eventName",
503 "desc" : "The name of the event to check for",
511 "desc" : "True if the event is being listened for, else false"
518 "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.",
519 "sig" : "(o, fn, scope)",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
534 "type" : "Observable",
535 "desc" : "The Observable to capture",
541 "desc" : "The function to call",
547 "desc" : "(optional) The scope (this object) for the fn",
554 "name" : "addListener",
556 "desc" : "Appends an event handler to this component",
557 "sig" : "(eventName, handler, scope, options)",
559 "memberOf" : "Roo.util.Observable",
561 "isConstructor" : false,
571 "name" : "eventName",
573 "desc" : "The type of event to listen for",
579 "desc" : "The method the event invokes",
585 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
591 "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>",
600 "name" : "beforeeditnext",
602 "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",
603 "sig" : "function (eventdata)\n{\n\n}",
611 "name" : "eventdata",
613 "desc" : "object : { cell : [ row, col ] }",
620 "name" : "cellselect",
622 "desc" : "Fires when a cell is selected.",
623 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
632 "type" : "SelectionModel",
639 "desc" : "The selected row index",
645 "desc" : "The selected cell index",
654 "desc" : "Fires when the tab (or enter) was pressed on the last editable cell\nYou can use this to trigger add new row.",
655 "sig" : "function (_self)\n{\n\n}",
664 "type" : "SelectionModel",
672 "name" : "selectionchange",
674 "desc" : "Fires when the active selection changes.",
675 "sig" : "function (_self, selection)\n{\n\n}",
684 "type" : "SelectionModel",
689 "name" : "selection",
691 "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>",
698 "name" : "beforerowselect",
700 "desc" : "Fires before a cell is selected.",
701 "sig" : "function (_self, rowIndex, colIndex)\n{\n\n}",
710 "type" : "SelectionModel",
717 "desc" : "The selected row index",
723 "desc" : "The selected cell index",