2 "name" : "Roo.grid.RowSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
7 "desc" : "The default SelectionModel used by {@link Roo.grid.Grid}.\nIt supports multiple selections and keyboard selection/navigation.",
11 "memberOf" : "RowSelectionModel",
29 "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>",
30 "memberOf" : "Roo.util.Observable",
34 "name" : "singleSelect",
36 "desc" : "True to allow selection of only one row at a time (defaults to false)",
37 "memberOf" : "Roo.grid.RowSelectionModel",
43 "name" : "selectRange",
44 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
46 "isConstructor" : false,
48 "memberOf" : "Roo.grid.RowSelectionModel",
57 "desc" : "The index of the first row in the range",
63 "desc" : "The index of the last row in the range",
67 "name" : "keepExisting",
69 "desc" : "(optional) True to retain existing selections",
76 "name" : "selectFirstRow",
77 "desc" : "Selects the first row in the grid.",
79 "isConstructor" : false,
81 "memberOf" : "Roo.grid.RowSelectionModel",
90 "name" : "deselectRow",
91 "desc" : "Deselects a row.",
93 "isConstructor" : false,
95 "memberOf" : "Roo.grid.RowSelectionModel",
104 "desc" : "The index of the row to deselect",
112 "desc" : "Gets the number of selected rows.",
114 "isConstructor" : false,
116 "memberOf" : "Roo.grid.RowSelectionModel",
131 "name" : "isSelected",
132 "desc" : "Returns True if the specified row is selected.",
134 "isConstructor" : false,
136 "memberOf" : "Roo.grid.RowSelectionModel",
144 "type" : "Number/Record",
145 "desc" : "The record or index of the record to check",
158 "name" : "selectLastRow",
159 "desc" : "Select the last row.",
161 "isConstructor" : false,
163 "memberOf" : "Roo.grid.RowSelectionModel",
170 "name" : "keepExisting",
172 "desc" : "(optional) True to keep existing selections",
179 "name" : "hasSelection",
180 "desc" : "Returns True if there is a selection.",
182 "isConstructor" : false,
184 "memberOf" : "Roo.grid.RowSelectionModel",
199 "name" : "isIdSelected",
200 "desc" : "Returns True if the specified record id is selected.",
202 "isConstructor" : false,
204 "memberOf" : "Roo.grid.RowSelectionModel",
213 "desc" : "The id of record to check",
226 "name" : "getSelected",
227 "desc" : "Returns the first selected record.",
229 "isConstructor" : false,
231 "memberOf" : "Roo.grid.RowSelectionModel",
246 "name" : "selectRecords",
247 "desc" : "Select records.",
249 "isConstructor" : false,
251 "memberOf" : "Roo.grid.RowSelectionModel",
260 "desc" : "The records to select",
264 "name" : "keepExisting",
266 "desc" : "(optional) True to keep existing selections",
273 "name" : "clearSelections",
274 "desc" : "Clears all selections.",
276 "isConstructor" : false,
278 "memberOf" : "Roo.grid.RowSelectionModel",
287 "name" : "deselectRange",
288 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
290 "isConstructor" : false,
292 "memberOf" : "Roo.grid.RowSelectionModel",
301 "desc" : "The index of the first row in the range",
307 "desc" : "The index of the last row in the range",
314 "name" : "getSelections",
315 "desc" : "Returns the selected records",
317 "isConstructor" : false,
319 "memberOf" : "Roo.grid.RowSelectionModel",
329 "desc" : "Array of selected records"
334 "name" : "selectNext",
335 "desc" : "Selects the row immediately following the last selected row.",
337 "isConstructor" : false,
339 "memberOf" : "Roo.grid.RowSelectionModel",
346 "name" : "keepExisting",
348 "desc" : "(optional) True to keep existing selections",
355 "name" : "selectAll",
356 "desc" : "Selects all rows.",
358 "isConstructor" : false,
360 "memberOf" : "Roo.grid.RowSelectionModel",
369 "name" : "selectRow",
370 "desc" : "Selects a row.",
372 "isConstructor" : false,
374 "memberOf" : "Roo.grid.RowSelectionModel",
383 "desc" : "The index of the row to select",
387 "name" : "keepExisting",
389 "desc" : "(optional) True to keep existing selections",
396 "name" : "selectRows",
397 "desc" : "Selects multiple rows.",
399 "isConstructor" : false,
401 "memberOf" : "Roo.grid.RowSelectionModel",
410 "desc" : "Array of the indexes of the row to select",
414 "name" : "keepExisting",
416 "desc" : "(optional) True to keep existing selections",
423 "name" : "selectPrevious",
424 "desc" : "Selects the row that precedes the last selected row.",
426 "isConstructor" : false,
428 "memberOf" : "Roo.grid.RowSelectionModel",
435 "name" : "keepExisting",
437 "desc" : "(optional) True to keep existing selections",
445 "desc" : "Locks the selections.",
447 "isConstructor" : false,
449 "memberOf" : "Roo.grid.AbstractSelectionModel",
459 "desc" : "Returns true if the selections are locked.",
461 "isConstructor" : false,
463 "memberOf" : "Roo.grid.AbstractSelectionModel",
479 "desc" : "Unlocks the selections.",
481 "isConstructor" : false,
483 "memberOf" : "Roo.grid.AbstractSelectionModel",
492 "name" : "purgeListeners",
493 "desc" : "Removes all listeners for this object",
495 "isConstructor" : false,
497 "memberOf" : "Roo.util.Observable",
507 "desc" : "Appends an event handler to this element (shorthand for addListener)",
509 "isConstructor" : false,
511 "memberOf" : "Roo.util.Observable",
518 "name" : "eventName",
520 "desc" : "The type of event to listen for",
526 "desc" : "The method the event invokes",
532 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
538 "desc" : "(optional)",
546 "desc" : "Removes a listener (shorthand for removeListener)",
548 "isConstructor" : false,
550 "memberOf" : "Roo.util.Observable",
557 "name" : "eventName",
559 "desc" : "The type of event to listen for",
565 "desc" : "The handler to remove",
571 "desc" : "(optional) The scope (this object) for the handler",
578 "name" : "addEvents",
579 "desc" : "Used to define events on this Observable",
581 "isConstructor" : false,
583 "memberOf" : "Roo.util.Observable",
592 "desc" : "The object with the events defined",
599 "name" : "releaseCapture",
600 "desc" : "Removes <b>all</b> added captures from the Observable.",
602 "isConstructor" : false,
604 "memberOf" : "Roo.util.Observable",
612 "type" : "Observable",
613 "desc" : "The Observable to release",
620 "name" : "removeListener",
621 "desc" : "Removes a listener",
623 "isConstructor" : false,
625 "memberOf" : "Roo.util.Observable",
632 "name" : "eventName",
634 "desc" : "The type of event to listen for",
640 "desc" : "The handler to remove",
646 "desc" : "(optional) The scope (this object) for the handler",
653 "name" : "fireEvent",
654 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
656 "isConstructor" : false,
658 "memberOf" : "Roo.util.Observable",
665 "name" : "eventName",
672 "type" : "Object...",
673 "desc" : "Variable number of parameters are passed to handlers",
681 "desc" : "returns false if any of the handlers return false otherwise it returns true"
686 "name" : "hasListener",
687 "desc" : "Checks to see if this object has any listeners for a specified event",
689 "isConstructor" : false,
691 "memberOf" : "Roo.util.Observable",
698 "name" : "eventName",
700 "desc" : "The name of the event to check for",
708 "desc" : "True if the event is being listened for, else false"
714 "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.",
716 "isConstructor" : false,
718 "memberOf" : "Roo.util.Observable",
726 "type" : "Observable",
727 "desc" : "The Observable to capture",
733 "desc" : "The function to call",
739 "desc" : "(optional) The scope (this object) for the fn",
746 "name" : "addListener",
747 "desc" : "Appends an event handler to this component",
749 "isConstructor" : false,
751 "memberOf" : "Roo.util.Observable",
758 "name" : "eventName",
760 "desc" : "The type of event to listen for",
766 "desc" : "The method the event invokes",
772 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
778 "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>",
787 "name" : "selectionchange",
788 "desc" : "Fires when the selection changes",
789 "memberOf" : "Roo.grid.RowSelectionModel",
797 "type" : "SelectionModel",
805 "name" : "rowselect",
806 "desc" : "Fires when a row is selected.",
807 "memberOf" : "Roo.grid.RowSelectionModel",
815 "type" : "SelectionModel",
822 "desc" : "The selected index",
827 "type" : "Roo.data.Record",
828 "desc" : "The record",
835 "name" : "beforerowselect",
836 "desc" : "Fires when a row is selected being selected, return false to cancel.",
837 "memberOf" : "Roo.grid.RowSelectionModel",
845 "type" : "SelectionModel",
852 "desc" : "The selected index",
856 "name" : "keepExisting",
858 "desc" : "False if other selections will be cleared",
865 "name" : "afterselectionchange",
866 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
867 "memberOf" : "Roo.grid.RowSelectionModel",
875 "type" : "SelectionModel",
883 "name" : "rowdeselect",
884 "desc" : "Fires when a row is deselected.",
885 "memberOf" : "Roo.grid.RowSelectionModel",
893 "type" : "SelectionModel",
900 "desc" : "The selected index",