2 "name" : "Roo.bootstrap.Table.RowSelectionModel",
4 "Roo.bootstrap.Table.AbstractSelectionModel",
7 "desc" : "The default SelectionModel used by {@link Roo.bootstrap.Table}.\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.bootstrap.Table.RowSelectionModel",
44 "desc" : "Gets the number of selected rows.",
46 "isConstructor" : false,
48 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
63 "name" : "getSelections",
64 "desc" : "Returns the selected records",
66 "isConstructor" : false,
68 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
78 "desc" : "Array of selected records"
83 "name" : "selectRange",
84 "desc" : "Selects a range of rows. All rows in between startRow and endRow are also selected.",
86 "isConstructor" : false,
88 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
97 "desc" : "The index of the first row in the range",
103 "desc" : "The index of the last row in the range",
107 "name" : "keepExisting",
109 "desc" : "(optional) True to retain existing selections",
116 "name" : "selectFirstRow",
117 "desc" : "Selects the first row in the grid.",
119 "isConstructor" : false,
121 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
130 "name" : "selectLastRow",
131 "desc" : "Select the last row.",
133 "isConstructor" : false,
135 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
142 "name" : "keepExisting",
144 "desc" : "(optional) True to keep existing selections",
151 "name" : "deselectRow",
152 "desc" : "Deselects a row.",
154 "isConstructor" : false,
156 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
165 "desc" : "The index of the row to deselect",
172 "name" : "selectNext",
173 "desc" : "Selects the row immediately following the last selected row.",
175 "isConstructor" : false,
177 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
184 "name" : "keepExisting",
186 "desc" : "(optional) True to keep existing selections",
193 "name" : "selectPrevious",
194 "desc" : "Selects the row that precedes the last selected row.",
196 "isConstructor" : false,
198 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
205 "name" : "keepExisting",
207 "desc" : "(optional) True to keep existing selections",
214 "name" : "selectRows",
215 "desc" : "Selects multiple rows.",
217 "isConstructor" : false,
219 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
228 "desc" : "Array of the indexes of the row to select",
232 "name" : "keepExisting",
234 "desc" : "(optional) True to keep existing selections",
241 "name" : "selectRecords",
242 "desc" : "Select records.",
244 "isConstructor" : false,
246 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
255 "desc" : "The records to select",
259 "name" : "keepExisting",
261 "desc" : "(optional) True to keep existing selections",
268 "name" : "hasSelection",
269 "desc" : "Returns True if there is a selection.",
271 "isConstructor" : false,
273 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
288 "name" : "isIdSelected",
289 "desc" : "Returns True if the specified record id is selected.",
291 "isConstructor" : false,
293 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
302 "desc" : "The id of record to check",
315 "name" : "selectAll",
316 "desc" : "Selects all rows.",
318 "isConstructor" : false,
320 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
329 "name" : "selectRow",
330 "desc" : "Selects a row.",
332 "isConstructor" : false,
334 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
343 "desc" : "The index of the row to select",
347 "name" : "keepExisting",
349 "desc" : "(optional) True to keep existing selections",
356 "name" : "getSelected",
357 "desc" : "Returns the first selected record.",
359 "isConstructor" : false,
361 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
376 "name" : "isSelected",
377 "desc" : "Returns True if the specified row is selected.",
379 "isConstructor" : false,
381 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
389 "type" : "Number/Record",
390 "desc" : "The record or index of the record to check",
403 "name" : "clearSelections",
404 "desc" : "Clears all selections.",
406 "isConstructor" : false,
408 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
417 "name" : "deselectRange",
418 "desc" : "Deselects a range of rows. All rows in between startRow and endRow are also deselected.",
420 "isConstructor" : false,
422 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
431 "desc" : "The index of the first row in the range",
437 "desc" : "The index of the last row in the range",
445 "desc" : "Locks the selections.",
447 "isConstructor" : false,
449 "memberOf" : "Roo.bootstrap.Table.AbstractSelectionModel",
459 "desc" : "Unlocks the selections.",
461 "isConstructor" : false,
463 "memberOf" : "Roo.bootstrap.Table.AbstractSelectionModel",
473 "desc" : "Returns true if the selections are locked.",
475 "isConstructor" : false,
477 "memberOf" : "Roo.bootstrap.Table.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" : "rowselect",
788 "desc" : "Fires when a row is selected.",
789 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
797 "type" : "SelectionModel",
804 "desc" : "The selected index",
809 "type" : "Roo.data.Record",
810 "desc" : "The record",
817 "name" : "beforerowselect",
818 "desc" : "Fires when a row is selected being selected, return false to cancel.",
819 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
827 "type" : "SelectionModel",
834 "desc" : "The selected index",
838 "name" : "keepExisting",
840 "desc" : "False if other selections will be cleared",
847 "name" : "rowdeselect",
848 "desc" : "Fires when a row is deselected.",
849 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
857 "type" : "SelectionModel",
864 "desc" : "The selected index",
871 "name" : "afterselectionchange",
872 "desc" : "Fires after the selection changes (eg. by key press or clicking)",
873 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
881 "type" : "SelectionModel",
889 "name" : "selectionchange",
890 "desc" : "Fires when the selection changes",
891 "memberOf" : "Roo.bootstrap.Table.RowSelectionModel",
899 "type" : "SelectionModel",