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.",
15 "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>",
16 "memberOf" : "Roo.util.Observable",
21 "name" : "singleSelect",
23 "desc" : "True to allow selection of only one row at a time (defaults to false)",
24 "memberOf" : "Roo.grid.RowSelectionModel",
31 "name" : "selectRange",
32 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
34 "isConstructor" : false,
36 "memberOf" : "Roo.grid.RowSelectionModel",
45 "desc" : "The index of the first row in the range",
51 "desc" : "The index of the last row in the range",
55 "name" : "keepExisting",
57 "desc" : "(optional) True to retain existing selections",
65 "name" : "selectFirstRow",
66 "desc" : "Selects the first row in the grid.",
68 "isConstructor" : false,
70 "memberOf" : "Roo.grid.RowSelectionModel",
81 "name" : "deselectRow",
82 "desc" : "Deselects a row.",
84 "isConstructor" : false,
86 "memberOf" : "Roo.grid.RowSelectionModel",
95 "desc" : "The index of the row to deselect",
104 "desc" : "Gets the number of selected rows.",
106 "isConstructor" : false,
108 "memberOf" : "Roo.grid.RowSelectionModel",
124 "name" : "isSelected",
125 "desc" : "Returns True if the specified row is selected.",
127 "isConstructor" : false,
129 "memberOf" : "Roo.grid.RowSelectionModel",
137 "type" : "Number/Record",
138 "desc" : "The record or index of the record to check",
151 "name" : "selectLastRow",
152 "desc" : "Select the last row.",
154 "isConstructor" : false,
156 "memberOf" : "Roo.grid.RowSelectionModel",
163 "name" : "keepExisting",
165 "desc" : "(optional) True to keep existing selections",
173 "name" : "hasSelection",
174 "desc" : "Returns True if there is a selection.",
176 "isConstructor" : false,
178 "memberOf" : "Roo.grid.RowSelectionModel",
194 "name" : "isIdSelected",
195 "desc" : "Returns True if the specified record id is selected.",
197 "isConstructor" : false,
199 "memberOf" : "Roo.grid.RowSelectionModel",
208 "desc" : "The id of record to check",
221 "name" : "getSelected",
222 "desc" : "Returns the first selected record.",
224 "isConstructor" : false,
226 "memberOf" : "Roo.grid.RowSelectionModel",
242 "name" : "selectRecords",
243 "desc" : "Select records.",
245 "isConstructor" : false,
247 "memberOf" : "Roo.grid.RowSelectionModel",
256 "desc" : "The records to select",
260 "name" : "keepExisting",
262 "desc" : "(optional) True to keep existing selections",
270 "name" : "clearSelections",
271 "desc" : "Clears all selections.",
273 "isConstructor" : false,
275 "memberOf" : "Roo.grid.RowSelectionModel",
286 "name" : "deselectRange",
287 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
289 "isConstructor" : false,
291 "memberOf" : "Roo.grid.RowSelectionModel",
300 "desc" : "The index of the first row in the range",
306 "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",
330 "desc" : "Array of selected records"
335 "name" : "selectNext",
336 "desc" : "Selects the row immediately following the last selected row.",
338 "isConstructor" : false,
340 "memberOf" : "Roo.grid.RowSelectionModel",
347 "name" : "keepExisting",
349 "desc" : "(optional) True to keep existing selections",
357 "name" : "selectAll",
358 "desc" : "Selects all rows.",
360 "isConstructor" : false,
362 "memberOf" : "Roo.grid.RowSelectionModel",
373 "name" : "selectRow",
374 "desc" : "Selects a row.",
376 "isConstructor" : false,
378 "memberOf" : "Roo.grid.RowSelectionModel",
387 "desc" : "The index of the row to select",
391 "name" : "keepExisting",
393 "desc" : "(optional) True to keep existing selections",
401 "name" : "selectRows",
402 "desc" : "Selects multiple rows.",
404 "isConstructor" : false,
406 "memberOf" : "Roo.grid.RowSelectionModel",
415 "desc" : "Array of the indexes of the row to select",
419 "name" : "keepExisting",
421 "desc" : "(optional) True to keep existing selections",
429 "name" : "selectPrevious",
430 "desc" : "Selects the row that precedes the last selected row.",
432 "isConstructor" : false,
434 "memberOf" : "Roo.grid.RowSelectionModel",
441 "name" : "keepExisting",
443 "desc" : "(optional) True to keep existing selections",
452 "desc" : "Locks the selections.",
454 "isConstructor" : false,
456 "memberOf" : "Roo.grid.AbstractSelectionModel",
468 "desc" : "Returns true if the selections are locked.",
470 "isConstructor" : false,
472 "memberOf" : "Roo.grid.AbstractSelectionModel",
489 "desc" : "Unlocks the selections.",
491 "isConstructor" : false,
493 "memberOf" : "Roo.grid.AbstractSelectionModel",
504 "name" : "purgeListeners",
505 "desc" : "Removes all listeners for this object",
507 "isConstructor" : false,
509 "memberOf" : "Roo.util.Observable",
521 "desc" : "Appends an event handler to this element (shorthand for addListener)",
523 "isConstructor" : false,
525 "memberOf" : "Roo.util.Observable",
532 "name" : "eventName",
534 "desc" : "The type of event to listen for",
540 "desc" : "The method the event invokes",
546 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
552 "desc" : "(optional)",
561 "desc" : "Removes a listener (shorthand for removeListener)",
563 "isConstructor" : false,
565 "memberOf" : "Roo.util.Observable",
572 "name" : "eventName",
574 "desc" : "The type of event to listen for",
580 "desc" : "The handler to remove",
586 "desc" : "(optional) The scope (this object) for the handler",
594 "name" : "addEvents",
595 "desc" : "Used to define events on this Observable",
597 "isConstructor" : false,
599 "memberOf" : "Roo.util.Observable",
608 "desc" : "The object with the events defined",
616 "name" : "releaseCapture",
617 "desc" : "Removes <b>all</b> added captures from the Observable.",
619 "isConstructor" : false,
621 "memberOf" : "Roo.util.Observable",
629 "type" : "Observable",
630 "desc" : "The Observable to release",
638 "name" : "removeListener",
639 "desc" : "Removes a listener",
641 "isConstructor" : false,
643 "memberOf" : "Roo.util.Observable",
650 "name" : "eventName",
652 "desc" : "The type of event to listen for",
658 "desc" : "The handler to remove",
664 "desc" : "(optional) The scope (this object) for the handler",
672 "name" : "fireEvent",
673 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
675 "isConstructor" : false,
677 "memberOf" : "Roo.util.Observable",
684 "name" : "eventName",
691 "type" : "Object...",
692 "desc" : "Variable number of parameters are passed to handlers",
700 "desc" : "returns false if any of the handlers return false otherwise it returns true"
705 "name" : "hasListener",
706 "desc" : "Checks to see if this object has any listeners for a specified event",
708 "isConstructor" : false,
710 "memberOf" : "Roo.util.Observable",
717 "name" : "eventName",
719 "desc" : "The name of the event to check for",
727 "desc" : "True if the event is being listened for, else false"
733 "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.",
735 "isConstructor" : false,
737 "memberOf" : "Roo.util.Observable",
745 "type" : "Observable",
746 "desc" : "The Observable to capture",
752 "desc" : "The function to call",
758 "desc" : "(optional) The scope (this object) for the fn",
766 "name" : "addListener",
767 "desc" : "Appends an event handler to this component",
769 "isConstructor" : false,
771 "memberOf" : "Roo.util.Observable",
778 "name" : "eventName",
780 "desc" : "The type of event to listen for",
786 "desc" : "The method the event invokes",
792 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
798 "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>",
808 "name" : "selectionchange",
809 "desc" : "Fires when the selection changes",
818 "type" : "SelectionModel",
827 "name" : "rowselect",
828 "desc" : "Fires when a row is selected.",
837 "type" : "SelectionModel",
844 "desc" : "The selected index",
849 "type" : "Roo.data.Record",
850 "desc" : "The record",
858 "name" : "beforerowselect",
859 "desc" : "Fires when a row is selected being selected, return false to cancel.",
868 "type" : "SelectionModel",
875 "desc" : "The selected index",
879 "name" : "keepExisting",
881 "desc" : "False if other selections will be cleared",
889 "name" : "afterselectionchange",
890 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
899 "type" : "SelectionModel",
908 "name" : "rowdeselect",
909 "desc" : "Fires when a row is deselected.",
918 "type" : "SelectionModel",
925 "desc" : "The selected index",