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"
41 "name" : "getFooterPanel",
43 "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.",
48 "isConstructor" : false,
60 "desc" : "By default the footer is hidden. Pass true to show the panel",
68 "desc" : "Roo.Element"
73 "name" : "fitColumns",
75 "desc" : "Autofits all columns to the grid's width proportionate with their current size",
76 "sig" : "(reserveScrollSpace)",
80 "isConstructor" : false,
90 "name" : "reserveScrollSpace",
92 "desc" : "Reserve space for a scrollbar",
101 "desc" : "Focuses the specified row.",
106 "isConstructor" : false,
118 "desc" : "The row index",
125 "name" : "focusCell",
127 "desc" : "Focuses the specified cell.",
128 "sig" : "(row, col, hscroll)",
132 "isConstructor" : false,
144 "desc" : "The row index",
150 "desc" : "The column index",
156 "desc" : "false to disable horizontal scrolling",
163 "name" : "autoSizeColumn",
165 "desc" : "Autofit a column to its content.",
166 "sig" : "(colIndex, forceMinSize)",
170 "isConstructor" : false,
186 "name" : "forceMinSize",
188 "desc" : "true to force the column to go smaller if possible",
195 "name" : "getHeaderPanel",
197 "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.",
202 "isConstructor" : false,
214 "desc" : "By default the header is hidden. Pass true to show the panel",
222 "desc" : "Roo.Element"
227 "name" : "scrollToTop",
229 "desc" : "Scrolls the grid to the top",
230 "sig" : "()\n{\n\n}",
234 "isConstructor" : false,
248 "desc" : "Gets the 'td' of the cell",
249 "sig" : "(rowIndex, colIndex)",
253 "isConstructor" : false,
265 "desc" : "row to select",
271 "desc" : "column to select",
286 "desc" : "Refreshes the grid",
287 "sig" : "(headersToo)",
291 "isConstructor" : false,
301 "name" : "headersToo",
310 "name" : "autoSizeColumns",
312 "desc" : "Autofits all columns to their content and then expands to fit any extra space in the grid",
313 "sig" : "()\n{\n\n}",
317 "isConstructor" : false,
329 "name" : "ensureVisible",
331 "desc" : "Scrolls the specified cell into view",
332 "sig" : "(row, col, hscroll)",
336 "isConstructor" : false,
348 "desc" : "The row index",
354 "desc" : "The column index",
360 "desc" : "false to disable horizontal scrolling",
367 "name" : "purgeListeners",
369 "desc" : "Removes all listeners for this object",
370 "sig" : "()\n{\n\n}",
372 "memberOf" : "Roo.util.Observable",
374 "isConstructor" : false,
388 "desc" : "Appends an event handler to this element (shorthand for addListener)",
389 "sig" : "(eventName, handler, scope, options)",
391 "memberOf" : "Roo.util.Observable",
393 "isConstructor" : false,
403 "name" : "eventName",
405 "desc" : "The type of event to listen for",
411 "desc" : "The method the event invokes",
417 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
423 "desc" : "(optional)",
432 "desc" : "Removes a listener (shorthand for removeListener)",
433 "sig" : "(eventName, handler, scope)",
435 "memberOf" : "Roo.util.Observable",
437 "isConstructor" : false,
447 "name" : "eventName",
449 "desc" : "The type of event to listen for",
455 "desc" : "The handler to remove",
461 "desc" : "(optional) The scope (this object) for the handler",
468 "name" : "addEvents",
470 "desc" : "Used to define events on this Observable",
473 "memberOf" : "Roo.util.Observable",
475 "isConstructor" : false,
487 "desc" : "The object with the events defined",
494 "name" : "releaseCapture",
496 "desc" : "Removes <b>all</b> added captures from the Observable.",
499 "memberOf" : "Roo.util.Observable",
501 "isConstructor" : false,
512 "type" : "Observable",
513 "desc" : "The Observable to release",
520 "name" : "removeListener",
522 "desc" : "Removes a listener",
523 "sig" : "(eventName, handler, scope)",
525 "memberOf" : "Roo.util.Observable",
527 "isConstructor" : false,
537 "name" : "eventName",
539 "desc" : "The type of event to listen for",
545 "desc" : "The handler to remove",
551 "desc" : "(optional) The scope (this object) for the handler",
558 "name" : "fireEvent",
560 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
561 "sig" : "(eventName, args)",
563 "memberOf" : "Roo.util.Observable",
565 "isConstructor" : false,
575 "name" : "eventName",
582 "type" : "Object...",
583 "desc" : "Variable number of parameters are passed to handlers",
591 "desc" : "returns false if any of the handlers return false otherwise it returns true"
596 "name" : "hasListener",
598 "desc" : "Checks to see if this object has any listeners for a specified event",
599 "sig" : "(eventName)",
601 "memberOf" : "Roo.util.Observable",
603 "isConstructor" : false,
613 "name" : "eventName",
615 "desc" : "The name of the event to check for",
623 "desc" : "True if the event is being listened for, else false"
630 "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.",
631 "sig" : "(o, fn, scope)",
633 "memberOf" : "Roo.util.Observable",
635 "isConstructor" : false,
646 "type" : "Observable",
647 "desc" : "The Observable to capture",
653 "desc" : "The function to call",
659 "desc" : "(optional) The scope (this object) for the fn",
666 "name" : "addListener",
668 "desc" : "Appends an event handler to this component",
669 "sig" : "(eventName, handler, scope, options)",
671 "memberOf" : "Roo.util.Observable",
673 "isConstructor" : false,
683 "name" : "eventName",
685 "desc" : "The type of event to listen for",
691 "desc" : "The method the event invokes",
697 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
703 "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>",