2 "name" : "Roo.grid.GridView",
10 "isSingleton" : false,
14 "isBuilderTop" : false,
15 "memberOf" : "GridView",
35 "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>",
36 "memberOf" : "Roo.util.Observable",
43 "name" : "getFooterPanel",
45 "desc" : "Gets a panel in the footer of the grid that can be used for toolbars etc.\nAfter modifying the contents of this panel a call to grid.autoSize() may be\nrequired to register any changes in size.",
50 "isConstructor" : false,
62 "desc" : "By default the footer is hidden. Pass true to show the panel",
70 "desc" : "Roo.Element"
75 "name" : "fitColumns",
77 "desc" : "Autofits all columns to the grid's width proportionate with their current size",
78 "sig" : "(reserveScrollSpace)",
82 "isConstructor" : false,
92 "name" : "reserveScrollSpace",
94 "desc" : "Reserve space for a scrollbar",
103 "desc" : "Focuses the specified row.",
108 "isConstructor" : false,
120 "desc" : "The row index",
127 "name" : "focusCell",
129 "desc" : "Focuses the specified cell.",
130 "sig" : "(row, col, hscroll)",
134 "isConstructor" : false,
146 "desc" : "The row index",
152 "desc" : "The column index",
158 "desc" : "false to disable horizontal scrolling",
165 "name" : "autoSizeColumn",
167 "desc" : "Autofit a column to its content.",
168 "sig" : "(colIndex, forceMinSize)",
172 "isConstructor" : false,
188 "name" : "forceMinSize",
190 "desc" : "true to force the column to go smaller if possible",
197 "name" : "getHeaderPanel",
199 "desc" : "Gets a panel in the header of the grid that can be used for toolbars etc.\nAfter modifying the contents of this panel a call to grid.autoSize() may be\nrequired to register any changes in size.",
204 "isConstructor" : false,
216 "desc" : "By default the header is hidden. Pass true to show the panel",
224 "desc" : "Roo.Element"
229 "name" : "scrollToTop",
231 "desc" : "Scrolls the grid to the top",
232 "sig" : "()\n{\n\n}",
236 "isConstructor" : false,
250 "desc" : "Gets the 'td' of the cell",
251 "sig" : "(rowIndex, colIndex)",
255 "isConstructor" : false,
267 "desc" : "row to select",
273 "desc" : "column to select",
288 "desc" : "Refreshes the grid",
289 "sig" : "(headersToo)",
293 "isConstructor" : false,
303 "name" : "headersToo",
312 "name" : "autoSizeColumns",
314 "desc" : "Autofits all columns to their content and then expands to fit any extra space in the grid",
315 "sig" : "()\n{\n\n}",
319 "isConstructor" : false,
331 "name" : "ensureVisible",
333 "desc" : "Scrolls the specified cell into view",
334 "sig" : "(row, col, hscroll)",
338 "isConstructor" : false,
350 "desc" : "The row index",
356 "desc" : "The column index",
362 "desc" : "false to disable horizontal scrolling",
369 "name" : "purgeListeners",
371 "desc" : "Removes all listeners for this object",
372 "sig" : "()\n{\n\n}",
374 "memberOf" : "Roo.util.Observable",
376 "isConstructor" : false,
390 "desc" : "Appends an event handler to this element (shorthand for addListener)",
391 "sig" : "(eventName, handler, scope, options)",
393 "memberOf" : "Roo.util.Observable",
395 "isConstructor" : false,
405 "name" : "eventName",
407 "desc" : "The type of event to listen for",
413 "desc" : "The method the event invokes",
419 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
425 "desc" : "(optional)",
434 "desc" : "Removes a listener (shorthand for removeListener)",
435 "sig" : "(eventName, handler, scope)",
437 "memberOf" : "Roo.util.Observable",
439 "isConstructor" : false,
449 "name" : "eventName",
451 "desc" : "The type of event to listen for",
457 "desc" : "The handler to remove",
463 "desc" : "(optional) The scope (this object) for the handler",
470 "name" : "addEvents",
472 "desc" : "Used to define events on this Observable",
475 "memberOf" : "Roo.util.Observable",
477 "isConstructor" : false,
489 "desc" : "The object with the events defined",
496 "name" : "releaseCapture",
498 "desc" : "Removes <b>all</b> added captures from the Observable.",
501 "memberOf" : "Roo.util.Observable",
503 "isConstructor" : false,
514 "type" : "Observable",
515 "desc" : "The Observable to release",
522 "name" : "removeListener",
524 "desc" : "Removes a listener",
525 "sig" : "(eventName, handler, scope)",
527 "memberOf" : "Roo.util.Observable",
529 "isConstructor" : false,
539 "name" : "eventName",
541 "desc" : "The type of event to listen for",
547 "desc" : "The handler to remove",
553 "desc" : "(optional) The scope (this object) for the handler",
560 "name" : "fireEvent",
562 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
563 "sig" : "(eventName, args)",
565 "memberOf" : "Roo.util.Observable",
567 "isConstructor" : false,
577 "name" : "eventName",
584 "type" : "Object...",
585 "desc" : "Variable number of parameters are passed to handlers",
593 "desc" : "returns false if any of the handlers return false otherwise it returns true"
598 "name" : "hasListener",
600 "desc" : "Checks to see if this object has any listeners for a specified event",
601 "sig" : "(eventName)",
603 "memberOf" : "Roo.util.Observable",
605 "isConstructor" : false,
615 "name" : "eventName",
617 "desc" : "The name of the event to check for",
625 "desc" : "True if the event is being listened for, else false"
632 "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.",
633 "sig" : "(o, fn, scope)",
635 "memberOf" : "Roo.util.Observable",
637 "isConstructor" : false,
648 "type" : "Observable",
649 "desc" : "The Observable to capture",
655 "desc" : "The function to call",
661 "desc" : "(optional) The scope (this object) for the fn",
668 "name" : "addListener",
670 "desc" : "Appends an event handler to this component",
671 "sig" : "(eventName, handler, scope, options)",
673 "memberOf" : "Roo.util.Observable",
675 "isConstructor" : false,
685 "name" : "eventName",
687 "desc" : "The type of event to listen for",
693 "desc" : "The method the event invokes",
699 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
705 "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>",