2 "name" : "Roo.grid.GridView",
11 "memberOf" : "GridView",
31 "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>",
32 "memberOf" : "Roo.util.Observable"
37 "name" : "getFooterPanel",
39 "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.",
44 "isConstructor" : false,
56 "desc" : "By default the footer is hidden. Pass true to show the panel",
64 "desc" : "Roo.Element"
69 "name" : "fitColumns",
71 "desc" : "Autofits all columns to the grid's width proportionate with their current size",
72 "sig" : "(reserveScrollSpace)",
76 "isConstructor" : false,
86 "name" : "reserveScrollSpace",
88 "desc" : "Reserve space for a scrollbar",
97 "desc" : "Focuses the specified row.",
102 "isConstructor" : false,
114 "desc" : "The row index",
121 "name" : "focusCell",
123 "desc" : "Focuses the specified cell.",
124 "sig" : "(row, col, hscroll)",
128 "isConstructor" : false,
140 "desc" : "The row index",
146 "desc" : "The column index",
152 "desc" : "false to disable horizontal scrolling",
159 "name" : "autoSizeColumn",
161 "desc" : "Autofit a column to its content.",
162 "sig" : "(colIndex, forceMinSize)",
166 "isConstructor" : false,
182 "name" : "forceMinSize",
184 "desc" : "true to force the column to go smaller if possible",
191 "name" : "getHeaderPanel",
193 "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.",
198 "isConstructor" : false,
210 "desc" : "By default the header is hidden. Pass true to show the panel",
218 "desc" : "Roo.Element"
223 "name" : "scrollToTop",
225 "desc" : "Scrolls the grid to the top",
226 "sig" : "()\n{\n\n}",
230 "isConstructor" : false,
244 "desc" : "Gets the 'td' of the cell",
245 "sig" : "(rowIndex, colIndex)",
249 "isConstructor" : false,
261 "desc" : "row to select",
267 "desc" : "column to select",
282 "desc" : "Refreshes the grid",
283 "sig" : "(headersToo)",
287 "isConstructor" : false,
297 "name" : "headersToo",
306 "name" : "autoSizeColumns",
308 "desc" : "Autofits all columns to their content and then expands to fit any extra space in the grid",
309 "sig" : "()\n{\n\n}",
313 "isConstructor" : false,
325 "name" : "ensureVisible",
327 "desc" : "Scrolls the specified cell into view",
328 "sig" : "(row, col, hscroll)",
332 "isConstructor" : false,
344 "desc" : "The row index",
350 "desc" : "The column index",
356 "desc" : "false to disable horizontal scrolling",
363 "name" : "purgeListeners",
365 "desc" : "Removes all listeners for this object",
366 "sig" : "()\n{\n\n}",
368 "memberOf" : "Roo.util.Observable",
370 "isConstructor" : false,
384 "desc" : "Appends an event handler to this element (shorthand for addListener)",
385 "sig" : "(eventName, handler, scope, options)",
387 "memberOf" : "Roo.util.Observable",
389 "isConstructor" : false,
399 "name" : "eventName",
401 "desc" : "The type of event to listen for",
407 "desc" : "The method the event invokes",
413 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
419 "desc" : "(optional)",
428 "desc" : "Removes a listener (shorthand for removeListener)",
429 "sig" : "(eventName, handler, scope)",
431 "memberOf" : "Roo.util.Observable",
433 "isConstructor" : false,
443 "name" : "eventName",
445 "desc" : "The type of event to listen for",
451 "desc" : "The handler to remove",
457 "desc" : "(optional) The scope (this object) for the handler",
464 "name" : "addEvents",
466 "desc" : "Used to define events on this Observable",
469 "memberOf" : "Roo.util.Observable",
471 "isConstructor" : false,
483 "desc" : "The object with the events defined",
490 "name" : "releaseCapture",
492 "desc" : "Removes <b>all</b> added captures from the Observable.",
495 "memberOf" : "Roo.util.Observable",
497 "isConstructor" : false,
508 "type" : "Observable",
509 "desc" : "The Observable to release",
516 "name" : "removeListener",
518 "desc" : "Removes a listener",
519 "sig" : "(eventName, handler, scope)",
521 "memberOf" : "Roo.util.Observable",
523 "isConstructor" : false,
533 "name" : "eventName",
535 "desc" : "The type of event to listen for",
541 "desc" : "The handler to remove",
547 "desc" : "(optional) The scope (this object) for the handler",
554 "name" : "fireEvent",
556 "desc" : "Fires the specified event with the passed parameters (minus the event name).",
557 "sig" : "(eventName, args)",
559 "memberOf" : "Roo.util.Observable",
561 "isConstructor" : false,
571 "name" : "eventName",
578 "type" : "Object...",
579 "desc" : "Variable number of parameters are passed to handlers",
587 "desc" : "returns false if any of the handlers return false otherwise it returns true"
592 "name" : "hasListener",
594 "desc" : "Checks to see if this object has any listeners for a specified event",
595 "sig" : "(eventName)",
597 "memberOf" : "Roo.util.Observable",
599 "isConstructor" : false,
609 "name" : "eventName",
611 "desc" : "The name of the event to check for",
619 "desc" : "True if the event is being listened for, else false"
626 "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.",
627 "sig" : "(o, fn, scope)",
629 "memberOf" : "Roo.util.Observable",
631 "isConstructor" : false,
642 "type" : "Observable",
643 "desc" : "The Observable to capture",
649 "desc" : "The function to call",
655 "desc" : "(optional) The scope (this object) for the fn",
662 "name" : "addListener",
664 "desc" : "Appends an event handler to this component",
665 "sig" : "(eventName, handler, scope, options)",
667 "memberOf" : "Roo.util.Observable",
669 "isConstructor" : false,
679 "name" : "eventName",
681 "desc" : "The type of event to listen for",
687 "desc" : "The method the event invokes",
693 "desc" : "(optional) The scope in which to execute the handler\nfunction. The handler function's \"this\" context.",
699 "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>",