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",
31 "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>",
32 "memberOf" : "Roo.util.Observable"
35 "name" : "singleSelect",
37 "desc" : "True to allow selection of only one row at a time (defaults to false)",
43 "name" : "selectRange",
45 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
46 "sig" : "(startRow, endRow, keepExisting)",
50 "isConstructor" : false,
62 "desc" : "The index of the first row in the range",
68 "desc" : "The index of the last row in the range",
72 "name" : "keepExisting",
74 "desc" : "(optional) True to retain existing selections",
81 "name" : "selectFirstRow",
83 "desc" : "Selects the first row in the grid.",
88 "isConstructor" : false,
100 "name" : "deselectRow",
102 "desc" : "Deselects a row.",
107 "isConstructor" : false,
119 "desc" : "The index of the row to deselect",
128 "desc" : "Gets the number of selected rows.",
129 "sig" : "()\n{\n\n}",
133 "isConstructor" : false,
151 "name" : "isSelected",
153 "desc" : "Returns True if the specified row is selected.",
158 "isConstructor" : false,
169 "type" : "Number/Record",
170 "desc" : "The record or index of the record to check",
183 "name" : "selectLastRow",
185 "desc" : "Select the last row.",
186 "sig" : "(keepExisting)",
190 "isConstructor" : false,
200 "name" : "keepExisting",
202 "desc" : "(optional) True to keep existing selections",
209 "name" : "hasSelection",
211 "desc" : "Returns True if there is a selection.",
212 "sig" : "()\n{\n\n}",
216 "isConstructor" : false,
234 "name" : "isIdSelected",
236 "desc" : "Returns True if the specified record id is selected.",
241 "isConstructor" : false,
253 "desc" : "The id of record to check",
266 "name" : "getSelected",
268 "desc" : "Returns the first selected record.",
269 "sig" : "()\n{\n\n}",
273 "isConstructor" : false,
291 "name" : "selectRecords",
293 "desc" : "Select records.",
294 "sig" : "(records, keepExisting)",
298 "isConstructor" : false,
310 "desc" : "The records to select",
314 "name" : "keepExisting",
316 "desc" : "(optional) True to keep existing selections",
323 "name" : "clearSelections",
325 "desc" : "Clears all selections.",
326 "sig" : "()\n{\n\n}",
330 "isConstructor" : false,
342 "name" : "deselectRange",
344 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
345 "sig" : "(startRow, endRow)",
349 "isConstructor" : false,
361 "desc" : "The index of the first row in the range",
367 "desc" : "The index of the last row in the range",
374 "name" : "getSelections",
376 "desc" : "Returns the selected records",
377 "sig" : "()\n{\n\n}",
381 "isConstructor" : false,
394 "desc" : "Array of selected records"
399 "name" : "selectNext",
401 "desc" : "Selects the row immediately following the last selected row.",
402 "sig" : "(keepExisting)",
406 "isConstructor" : false,
416 "name" : "keepExisting",
418 "desc" : "(optional) True to keep existing selections",
425 "name" : "selectAll",
427 "desc" : "Selects all rows.",
428 "sig" : "()\n{\n\n}",
432 "isConstructor" : false,
444 "name" : "selectRow",
446 "desc" : "Selects a row.",
447 "sig" : "(row, keepExisting)",
451 "isConstructor" : false,
463 "desc" : "The index of the row to select",
467 "name" : "keepExisting",
469 "desc" : "(optional) True to keep existing selections",
476 "name" : "selectRows",
478 "desc" : "Selects multiple rows.",
479 "sig" : "(rows, keepExisting)",
483 "isConstructor" : false,
495 "desc" : "Array of the indexes of the row to select",
499 "name" : "keepExisting",
501 "desc" : "(optional) True to keep existing selections",
508 "name" : "selectPrevious",
510 "desc" : "Selects the row that precedes the last selected row.",
511 "sig" : "(keepExisting)",
515 "isConstructor" : false,
525 "name" : "keepExisting",
527 "desc" : "(optional) True to keep existing selections",
536 "desc" : "Locks the selections.",
537 "sig" : "()\n{\n\n}",
539 "memberOf" : "Roo.grid.AbstractSelectionModel",
541 "isConstructor" : false,
555 "desc" : "Returns true if the selections are locked.",
556 "sig" : "()\n{\n\n}",
558 "memberOf" : "Roo.grid.AbstractSelectionModel",
560 "isConstructor" : false,
580 "desc" : "Unlocks the selections.",
581 "sig" : "()\n{\n\n}",
583 "memberOf" : "Roo.grid.AbstractSelectionModel",
585 "isConstructor" : false,
597 "name" : "purgeListeners",
599 "desc" : "Removes all listeners for this object",
600 "sig" : "()\n{\n\n}",
602 "memberOf" : "Roo.util.Observable",
604 "isConstructor" : false,
618 "desc" : "Appends an event handler to this element (shorthand for addListener)",
619 "sig" : "(eventName, handler, scope, options)",
621 "memberOf" : "Roo.util.Observable",
623 "isConstructor" : false,
633 "name" : "eventName",
635 "desc" : "The type of event to listen for",
641 "desc" : "The method the event invokes",
647 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
653 "desc" : "(optional)",
662 "desc" : "Removes a listener (shorthand for removeListener)",
663 "sig" : "(eventName, handler, scope)",
665 "memberOf" : "Roo.util.Observable",
667 "isConstructor" : false,
677 "name" : "eventName",
679 "desc" : "The type of event to listen for",
685 "desc" : "The handler to remove",
691 "desc" : "(optional) The scope (this object) for the handler",
698 "name" : "addEvents",
700 "desc" : "Used to define events on this Observable",
703 "memberOf" : "Roo.util.Observable",
705 "isConstructor" : false,
717 "desc" : "The object with the events defined",
724 "name" : "releaseCapture",
726 "desc" : "Removes <b>all</b> added captures from the Observable.",
729 "memberOf" : "Roo.util.Observable",
731 "isConstructor" : false,
742 "type" : "Observable",
743 "desc" : "The Observable to release",
750 "name" : "removeListener",
752 "desc" : "Removes a listener",
753 "sig" : "(eventName, handler, scope)",
755 "memberOf" : "Roo.util.Observable",
757 "isConstructor" : false,
767 "name" : "eventName",
769 "desc" : "The type of event to listen for",
775 "desc" : "The handler to remove",
781 "desc" : "(optional) The scope (this object) for the handler",
788 "name" : "fireEvent",
790 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
791 "sig" : "(eventName, args)",
793 "memberOf" : "Roo.util.Observable",
795 "isConstructor" : false,
805 "name" : "eventName",
812 "type" : "Object...",
813 "desc" : "Variable number of parameters are passed to handlers",
821 "desc" : "returns false if any of the handlers return false otherwise it returns true"
826 "name" : "hasListener",
828 "desc" : "Checks to see if this object has any listeners for a specified event",
829 "sig" : "(eventName)",
831 "memberOf" : "Roo.util.Observable",
833 "isConstructor" : false,
843 "name" : "eventName",
845 "desc" : "The name of the event to check for",
853 "desc" : "True if the event is being listened for, else false"
860 "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.",
861 "sig" : "(o, fn, scope)",
863 "memberOf" : "Roo.util.Observable",
865 "isConstructor" : false,
876 "type" : "Observable",
877 "desc" : "The Observable to capture",
883 "desc" : "The function to call",
889 "desc" : "(optional) The scope (this object) for the fn",
896 "name" : "addListener",
898 "desc" : "Appends an event handler to this component",
899 "sig" : "(eventName, handler, scope, options)",
901 "memberOf" : "Roo.util.Observable",
903 "isConstructor" : false,
913 "name" : "eventName",
915 "desc" : "The type of event to listen for",
921 "desc" : "The method the event invokes",
927 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
933 "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>",
942 "name" : "selectionchange",
944 "desc" : "Fires when the selection changes",
945 "sig" : "function (_self)\n{\n\n}",
954 "type" : "SelectionModel",
962 "name" : "rowselect",
964 "desc" : "Fires when a row is selected.",
965 "sig" : "function (_self, rowIndex, r)\n{\n\n}",
974 "type" : "SelectionModel",
981 "desc" : "The selected index",
986 "type" : "Roo.data.Record",
987 "desc" : "The record",
994 "name" : "beforerowselect",
996 "desc" : "Fires when a row is selected being selected, return false to cancel.",
997 "sig" : "function (_self, rowIndex, keepExisting)\n{\n\n}",
1006 "type" : "SelectionModel",
1008 "isOptional" : false
1011 "name" : "rowIndex",
1013 "desc" : "The selected index",
1014 "isOptional" : false
1017 "name" : "keepExisting",
1019 "desc" : "False if other selections will be cleared",
1020 "isOptional" : false
1026 "name" : "afterselectionchange",
1027 "type" : "function",
1028 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
1029 "sig" : "function (_self)\n{\n\n}",
1038 "type" : "SelectionModel",
1040 "isOptional" : false
1046 "name" : "rowdeselect",
1047 "type" : "function",
1048 "desc" : "Fires when a row is deselected.",
1049 "sig" : "function (_self, rowIndex)\n{\n\n}",
1058 "type" : "SelectionModel",
1060 "isOptional" : false
1063 "name" : "rowIndex",
1065 "desc" : "The selected index",
1066 "isOptional" : false