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",
30 "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>",
31 "memberOf" : "Roo.util.Observable",
36 "name" : "singleSelect",
38 "desc" : "True to allow selection of only one row at a time (defaults to false)",
39 "memberOf" : "Roo.grid.RowSelectionModel",
46 "name" : "selectRange",
47 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
49 "isConstructor" : false,
51 "memberOf" : "Roo.grid.RowSelectionModel",
60 "desc" : "The index of the first row in the range",
66 "desc" : "The index of the last row in the range",
70 "name" : "keepExisting",
72 "desc" : "(optional) True to retain existing selections",
80 "name" : "selectFirstRow",
81 "desc" : "Selects the first row in the grid.",
83 "isConstructor" : false,
85 "memberOf" : "Roo.grid.RowSelectionModel",
96 "name" : "deselectRow",
97 "desc" : "Deselects a row.",
99 "isConstructor" : false,
101 "memberOf" : "Roo.grid.RowSelectionModel",
110 "desc" : "The index of the row to deselect",
119 "desc" : "Gets the number of selected rows.",
121 "isConstructor" : false,
123 "memberOf" : "Roo.grid.RowSelectionModel",
139 "name" : "isSelected",
140 "desc" : "Returns True if the specified row is selected.",
142 "isConstructor" : false,
144 "memberOf" : "Roo.grid.RowSelectionModel",
152 "type" : "Number/Record",
153 "desc" : "The record or index of the record to check",
166 "name" : "selectLastRow",
167 "desc" : "Select the last row.",
169 "isConstructor" : false,
171 "memberOf" : "Roo.grid.RowSelectionModel",
178 "name" : "keepExisting",
180 "desc" : "(optional) True to keep existing selections",
188 "name" : "hasSelection",
189 "desc" : "Returns True if there is a selection.",
191 "isConstructor" : false,
193 "memberOf" : "Roo.grid.RowSelectionModel",
209 "name" : "isIdSelected",
210 "desc" : "Returns True if the specified record id is selected.",
212 "isConstructor" : false,
214 "memberOf" : "Roo.grid.RowSelectionModel",
223 "desc" : "The id of record to check",
236 "name" : "getSelected",
237 "desc" : "Returns the first selected record.",
239 "isConstructor" : false,
241 "memberOf" : "Roo.grid.RowSelectionModel",
257 "name" : "selectRecords",
258 "desc" : "Select records.",
260 "isConstructor" : false,
262 "memberOf" : "Roo.grid.RowSelectionModel",
271 "desc" : "The records to select",
275 "name" : "keepExisting",
277 "desc" : "(optional) True to keep existing selections",
285 "name" : "clearSelections",
286 "desc" : "Clears all selections.",
288 "isConstructor" : false,
290 "memberOf" : "Roo.grid.RowSelectionModel",
301 "name" : "deselectRange",
302 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
304 "isConstructor" : false,
306 "memberOf" : "Roo.grid.RowSelectionModel",
315 "desc" : "The index of the first row in the range",
321 "desc" : "The index of the last row in the range",
329 "name" : "getSelections",
330 "desc" : "Returns the selected records",
332 "isConstructor" : false,
334 "memberOf" : "Roo.grid.RowSelectionModel",
345 "desc" : "Array of selected records"
350 "name" : "selectNext",
351 "desc" : "Selects the row immediately following the last selected row.",
353 "isConstructor" : false,
355 "memberOf" : "Roo.grid.RowSelectionModel",
362 "name" : "keepExisting",
364 "desc" : "(optional) True to keep existing selections",
372 "name" : "selectAll",
373 "desc" : "Selects all rows.",
375 "isConstructor" : false,
377 "memberOf" : "Roo.grid.RowSelectionModel",
388 "name" : "selectRow",
389 "desc" : "Selects a row.",
391 "isConstructor" : false,
393 "memberOf" : "Roo.grid.RowSelectionModel",
402 "desc" : "The index of the row to select",
406 "name" : "keepExisting",
408 "desc" : "(optional) True to keep existing selections",
416 "name" : "selectRows",
417 "desc" : "Selects multiple rows.",
419 "isConstructor" : false,
421 "memberOf" : "Roo.grid.RowSelectionModel",
430 "desc" : "Array of the indexes of the row to select",
434 "name" : "keepExisting",
436 "desc" : "(optional) True to keep existing selections",
444 "name" : "selectPrevious",
445 "desc" : "Selects the row that precedes the last selected row.",
447 "isConstructor" : false,
449 "memberOf" : "Roo.grid.RowSelectionModel",
456 "name" : "keepExisting",
458 "desc" : "(optional) True to keep existing selections",
467 "desc" : "Locks the selections.",
469 "isConstructor" : false,
471 "memberOf" : "Roo.grid.AbstractSelectionModel",
483 "desc" : "Returns true if the selections are locked.",
485 "isConstructor" : false,
487 "memberOf" : "Roo.grid.AbstractSelectionModel",
504 "desc" : "Unlocks the selections.",
506 "isConstructor" : false,
508 "memberOf" : "Roo.grid.AbstractSelectionModel",
519 "name" : "purgeListeners",
520 "desc" : "Removes all listeners for this object",
522 "isConstructor" : false,
524 "memberOf" : "Roo.util.Observable",
536 "desc" : "Appends an event handler to this element (shorthand for addListener)",
538 "isConstructor" : false,
540 "memberOf" : "Roo.util.Observable",
547 "name" : "eventName",
549 "desc" : "The type of event to listen for",
555 "desc" : "The method the event invokes",
561 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
567 "desc" : "(optional)",
576 "desc" : "Removes a listener (shorthand for removeListener)",
578 "isConstructor" : false,
580 "memberOf" : "Roo.util.Observable",
587 "name" : "eventName",
589 "desc" : "The type of event to listen for",
595 "desc" : "The handler to remove",
601 "desc" : "(optional) The scope (this object) for the handler",
609 "name" : "addEvents",
610 "desc" : "Used to define events on this Observable",
612 "isConstructor" : false,
614 "memberOf" : "Roo.util.Observable",
623 "desc" : "The object with the events defined",
631 "name" : "releaseCapture",
632 "desc" : "Removes <b>all</b> added captures from the Observable.",
634 "isConstructor" : false,
636 "memberOf" : "Roo.util.Observable",
644 "type" : "Observable",
645 "desc" : "The Observable to release",
653 "name" : "removeListener",
654 "desc" : "Removes a listener",
656 "isConstructor" : false,
658 "memberOf" : "Roo.util.Observable",
665 "name" : "eventName",
667 "desc" : "The type of event to listen for",
673 "desc" : "The handler to remove",
679 "desc" : "(optional) The scope (this object) for the handler",
687 "name" : "fireEvent",
688 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
690 "isConstructor" : false,
692 "memberOf" : "Roo.util.Observable",
699 "name" : "eventName",
706 "type" : "Object...",
707 "desc" : "Variable number of parameters are passed to handlers",
715 "desc" : "returns false if any of the handlers return false otherwise it returns true"
720 "name" : "hasListener",
721 "desc" : "Checks to see if this object has any listeners for a specified event",
723 "isConstructor" : false,
725 "memberOf" : "Roo.util.Observable",
732 "name" : "eventName",
734 "desc" : "The name of the event to check for",
742 "desc" : "True if the event is being listened for, else false"
748 "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.",
750 "isConstructor" : false,
752 "memberOf" : "Roo.util.Observable",
760 "type" : "Observable",
761 "desc" : "The Observable to capture",
767 "desc" : "The function to call",
773 "desc" : "(optional) The scope (this object) for the fn",
781 "name" : "addListener",
782 "desc" : "Appends an event handler to this component",
784 "isConstructor" : false,
786 "memberOf" : "Roo.util.Observable",
793 "name" : "eventName",
795 "desc" : "The type of event to listen for",
801 "desc" : "The method the event invokes",
807 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
813 "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>",
823 "name" : "selectionchange",
824 "desc" : "Fires when the selection changes",
833 "type" : "SelectionModel",
842 "name" : "rowselect",
843 "desc" : "Fires when a row is selected.",
852 "type" : "SelectionModel",
859 "desc" : "The selected index",
864 "type" : "Roo.data.Record",
865 "desc" : "The record",
873 "name" : "beforerowselect",
874 "desc" : "Fires when a row is selected being selected, return false to cancel.",
883 "type" : "SelectionModel",
890 "desc" : "The selected index",
894 "name" : "keepExisting",
896 "desc" : "False if other selections will be cleared",
904 "name" : "afterselectionchange",
905 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
914 "type" : "SelectionModel",
923 "name" : "rowdeselect",
924 "desc" : "Fires when a row is deselected.",
933 "type" : "SelectionModel",
940 "desc" : "The selected index",