2 "name" : "Roo.grid.RowSelectionModel",
4 "Roo.grid.AbstractSelectionModel",
8 "desc" : "The default SelectionModel used by {@link Roo.grid.Grid}.\nIt supports multiple selections and keyboard selection/navigation.",
12 "memberOf" : "RowSelectionModel",
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" : "singleSelect",
38 "desc" : "True to allow selection of only one row at a time (defaults to false)",
44 "name" : "selectRange",
46 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
47 "sig" : "(startRow, endRow, keepExisting)",
51 "isConstructor" : false,
63 "desc" : "The index of the first row in the range",
69 "desc" : "The index of the last row in the range",
73 "name" : "keepExisting",
75 "desc" : "(optional) True to retain existing selections",
82 "name" : "selectFirstRow",
84 "desc" : "Selects the first row in the grid.",
89 "isConstructor" : false,
101 "name" : "deselectRow",
103 "desc" : "Deselects a row.",
108 "isConstructor" : false,
120 "desc" : "The index of the row to deselect",
129 "desc" : "Gets the number of selected rows.",
130 "sig" : "()\n{\n\n}",
134 "isConstructor" : false,
152 "name" : "isSelected",
154 "desc" : "Returns True if the specified row is selected.",
159 "isConstructor" : false,
170 "type" : "Number/Record",
171 "desc" : "The record or index of the record to check",
184 "name" : "selectLastRow",
186 "desc" : "Select the last row.",
187 "sig" : "(keepExisting)",
191 "isConstructor" : false,
201 "name" : "keepExisting",
203 "desc" : "(optional) True to keep existing selections",
210 "name" : "hasSelection",
212 "desc" : "Returns True if there is a selection.",
213 "sig" : "()\n{\n\n}",
217 "isConstructor" : false,
235 "name" : "isIdSelected",
237 "desc" : "Returns True if the specified record id is selected.",
242 "isConstructor" : false,
254 "desc" : "The id of record to check",
267 "name" : "getSelected",
269 "desc" : "Returns the first selected record.",
270 "sig" : "()\n{\n\n}",
274 "isConstructor" : false,
292 "name" : "selectRecords",
294 "desc" : "Select records.",
295 "sig" : "(records, keepExisting)",
299 "isConstructor" : false,
311 "desc" : "The records to select",
315 "name" : "keepExisting",
317 "desc" : "(optional) True to keep existing selections",
324 "name" : "clearSelections",
326 "desc" : "Clears all selections.",
327 "sig" : "()\n{\n\n}",
331 "isConstructor" : false,
343 "name" : "deselectRange",
345 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
346 "sig" : "(startRow, endRow)",
350 "isConstructor" : false,
362 "desc" : "The index of the first row in the range",
368 "desc" : "The index of the last row in the range",
375 "name" : "getSelections",
377 "desc" : "Returns the selected records",
378 "sig" : "()\n{\n\n}",
382 "isConstructor" : false,
395 "desc" : "Array of selected records"
400 "name" : "selectNext",
402 "desc" : "Selects the row immediately following the last selected row.",
403 "sig" : "(keepExisting)",
407 "isConstructor" : false,
417 "name" : "keepExisting",
419 "desc" : "(optional) True to keep existing selections",
426 "name" : "selectAll",
428 "desc" : "Selects all rows.",
429 "sig" : "()\n{\n\n}",
433 "isConstructor" : false,
445 "name" : "selectRow",
447 "desc" : "Selects a row.",
448 "sig" : "(row, keepExisting)",
452 "isConstructor" : false,
464 "desc" : "The index of the row to select",
468 "name" : "keepExisting",
470 "desc" : "(optional) True to keep existing selections",
477 "name" : "selectRows",
479 "desc" : "Selects multiple rows.",
480 "sig" : "(rows, keepExisting)",
484 "isConstructor" : false,
496 "desc" : "Array of the indexes of the row to select",
500 "name" : "keepExisting",
502 "desc" : "(optional) True to keep existing selections",
509 "name" : "selectPrevious",
511 "desc" : "Selects the row that precedes the last selected row.",
512 "sig" : "(keepExisting)",
516 "isConstructor" : false,
526 "name" : "keepExisting",
528 "desc" : "(optional) True to keep existing selections",
537 "desc" : "Locks the selections.",
538 "sig" : "()\n{\n\n}",
540 "memberOf" : "Roo.grid.AbstractSelectionModel",
542 "isConstructor" : false,
556 "desc" : "Returns true if the selections are locked.",
557 "sig" : "()\n{\n\n}",
559 "memberOf" : "Roo.grid.AbstractSelectionModel",
561 "isConstructor" : false,
581 "desc" : "Unlocks the selections.",
582 "sig" : "()\n{\n\n}",
584 "memberOf" : "Roo.grid.AbstractSelectionModel",
586 "isConstructor" : false,
598 "name" : "purgeListeners",
600 "desc" : "Removes all listeners for this object",
601 "sig" : "()\n{\n\n}",
603 "memberOf" : "Roo.util.Observable",
605 "isConstructor" : false,
619 "desc" : "Appends an event handler to this element (shorthand for addListener)",
620 "sig" : "(eventName, handler, scope, options)",
622 "memberOf" : "Roo.util.Observable",
624 "isConstructor" : false,
634 "name" : "eventName",
636 "desc" : "The type of event to listen for",
642 "desc" : "The method the event invokes",
648 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
654 "desc" : "(optional)",
663 "desc" : "Removes a listener (shorthand for removeListener)",
664 "sig" : "(eventName, handler, scope)",
666 "memberOf" : "Roo.util.Observable",
668 "isConstructor" : false,
678 "name" : "eventName",
680 "desc" : "The type of event to listen for",
686 "desc" : "The handler to remove",
692 "desc" : "(optional) The scope (this object) for the handler",
699 "name" : "addEvents",
701 "desc" : "Used to define events on this Observable",
704 "memberOf" : "Roo.util.Observable",
706 "isConstructor" : false,
718 "desc" : "The object with the events defined",
725 "name" : "releaseCapture",
727 "desc" : "Removes <b>all</b> added captures from the Observable.",
730 "memberOf" : "Roo.util.Observable",
732 "isConstructor" : false,
743 "type" : "Observable",
744 "desc" : "The Observable to release",
751 "name" : "removeListener",
753 "desc" : "Removes a listener",
754 "sig" : "(eventName, handler, scope)",
756 "memberOf" : "Roo.util.Observable",
758 "isConstructor" : false,
768 "name" : "eventName",
770 "desc" : "The type of event to listen for",
776 "desc" : "The handler to remove",
782 "desc" : "(optional) The scope (this object) for the handler",
789 "name" : "fireEvent",
791 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
792 "sig" : "(eventName, args)",
794 "memberOf" : "Roo.util.Observable",
796 "isConstructor" : false,
806 "name" : "eventName",
813 "type" : "Object...",
814 "desc" : "Variable number of parameters are passed to handlers",
822 "desc" : "returns false if any of the handlers return false otherwise it returns true"
827 "name" : "hasListener",
829 "desc" : "Checks to see if this object has any listeners for a specified event",
830 "sig" : "(eventName)",
832 "memberOf" : "Roo.util.Observable",
834 "isConstructor" : false,
844 "name" : "eventName",
846 "desc" : "The name of the event to check for",
854 "desc" : "True if the event is being listened for, else false"
861 "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.",
862 "sig" : "(o, fn, scope)",
864 "memberOf" : "Roo.util.Observable",
866 "isConstructor" : false,
877 "type" : "Observable",
878 "desc" : "The Observable to capture",
884 "desc" : "The function to call",
890 "desc" : "(optional) The scope (this object) for the fn",
897 "name" : "addListener",
899 "desc" : "Appends an event handler to this component",
900 "sig" : "(eventName, handler, scope, options)",
902 "memberOf" : "Roo.util.Observable",
904 "isConstructor" : false,
914 "name" : "eventName",
916 "desc" : "The type of event to listen for",
922 "desc" : "The method the event invokes",
928 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
934 "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>",
943 "name" : "selectionchange",
945 "desc" : "Fires when the selection changes",
946 "sig" : "function (_self)\n{\n\n}",
955 "type" : "SelectionModel",
963 "name" : "rowselect",
965 "desc" : "Fires when a row is selected.",
966 "sig" : "function (_self, rowIndex, r)\n{\n\n}",
975 "type" : "SelectionModel",
982 "desc" : "The selected index",
987 "type" : "Roo.data.Record",
988 "desc" : "The record",
995 "name" : "beforerowselect",
997 "desc" : "Fires when a row is selected being selected, return false to cancel.",
998 "sig" : "function (_self, rowIndex, keepExisting)\n{\n\n}",
1007 "type" : "SelectionModel",
1009 "isOptional" : false
1012 "name" : "rowIndex",
1014 "desc" : "The selected index",
1015 "isOptional" : false
1018 "name" : "keepExisting",
1020 "desc" : "False if other selections will be cleared",
1021 "isOptional" : false
1027 "name" : "afterselectionchange",
1028 "type" : "function",
1029 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
1030 "sig" : "function (_self)\n{\n\n}",
1039 "type" : "SelectionModel",
1041 "isOptional" : false
1047 "name" : "rowdeselect",
1048 "type" : "function",
1049 "desc" : "Fires when a row is deselected.",
1050 "sig" : "function (_self, rowIndex)\n{\n\n}",
1059 "type" : "SelectionModel",
1061 "isOptional" : false
1064 "name" : "rowIndex",
1066 "desc" : "The selected index",
1067 "isOptional" : false