webgui/www/extras/yui-ext/docs/output/YAHOO.ext.grid.GridView.html
JT Smith cfd09a5cb6 upgraded to yui 0.12.0
upgraded to yui-ext 0.33 rc2
2006-11-28 02:23:34 +00:00

246 lines
No EOL
13 KiB
HTML

<!doctype html public "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>YAHOO.ext.grid.GridView</title>
<link rel="stylesheet" type="text/css" href="../resources/reset.css"/>
<link rel="stylesheet" type="text/css" href="../resources/style.css" media="screen"/>
<link rel="stylesheet" type="text/css" href="../resources/print.css" media="print">
</head>
<body>
<div class="body-wrap">
<div class="top-tools"><img src="../resources/print.gif" width="16" height="16" align="absmiddle">&nbsp;<a href="YAHOO.ext.grid.GridView.html" target="_blank">Print Friendly</a></div>
<h1>Class YAHOO.ext.grid.GridView</h1>
<table cellspacing="0">
<tr><td class="label">Package:</td><td>YAHOO.ext.grid</td></tr>
<tr><td class="label">Class:</td><td>GridView</td></tr>
<tr><td class="label">Extends:</td><td>Object</td></tr>
<tr><td class="label">Subclasses:</td><td><a href="YAHOO.ext.grid.PagedGridView.html">PagedGridView</a></td></tr>
<tr><td class="label">Defined In:</td><td><a href="GridView.js.html">GridView.js</a></td></tr>
</table>
<div class="description">
Default UI code used internally by the Grid. This is the object returned by <a href="YAHOO.ext.grid.Grid.html#getView">YAHOO.ext.grid.Grid.getView</a>. </div>
<hr />
<a name="properties"></a>
<h2>Public Properties</h2>
<div class="no-members">This class has no public properties.</div> <a name="methods"></a>
<h2>Public Methods</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Method</th>
<th class="msource-header">Defined By</th>
</tr>
<tr>
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#GridView">GridView</a>()</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr>
<td class="mdesc"></td>
</tr>
<tr class="alt">
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#autoSizeColumn">autoSizeColumn</a>(<code>Number colIndex</code>, <code>Boolean forceMinSize</code>) : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr class="alt">
<td class="mdesc">Autofit a column to it's content.</td>
</tr>
<tr>
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#autoSizeColumns">autoSizeColumns</a>() : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr>
<td class="mdesc">Autofits all columns to their content and then expands to fit any extra space in the grid</td>
</tr>
<tr class="alt">
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#ensureVisible">ensureVisible</a>(<code>Number/HTMLElement row</code>, <code>Boolean disableDelay</code>) : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr class="alt">
<td class="mdesc">Scrolls the specified row into view. This call is automatically buffered (delayed), to disable
the delay, pass true f...</td>
</tr>
<tr>
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#fitColumns">fitColumns</a>() : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr>
<td class="mdesc">Autofits all columns to the grid's width proportionate with their current size</td>
</tr>
<tr class="alt">
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#focusRow">focusRow</a>(<code>Number/HTMLElement row</code>) : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr class="alt">
<td class="mdesc">Focuses the specified row. The preferred way to scroll to a row is <a href="#ensureVisible">ensureVisible</a>.</td>
</tr>
<tr>
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#getCellAtPoint">getCellAtPoint</a>(<code>Number x</code>, <code>Number y</code>) : Array</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr>
<td class="mdesc">Returns the rowIndex/columnIndex of the cell found at the passed page coordinates</td>
</tr>
<tr class="alt">
<td class="micon" rowspan="2">&nbsp;</td>
<td class="sig"><a class="mlink" href="#setCSSStyle">setCSSStyle</a>(<code>Number colIndex</code>, <code>String name</code>, <code>String value</code>) : void</td>
<td class="msource" rowspan="2">GridView</td>
</tr>
<tr class="alt">
<td class="mdesc">Set a css style for a column dynamically.</td>
</tr>
</table>
<a name="events"></a>
<h2>Public Events</h2>
<div class="no-members">This class has no public events.</div>
<a name="GridView"></a>
<h2 class="mdetail-head">Constructor Details</h2>
<div class="detail-wrap">
<div class="mdetail">
<h3>GridView</i></h3>
<code>public function GridView()</code>
<div class="mdetail-desc">
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
</div>
</div>
</div>
</div>
<h2 class="mdetail-head">Method Details</h2>
<div class="detail-wrap">
<a name="autoSizeColumn"></a>
<div class="mdetail">
<h3>autoSizeColumn</i></h3>
<code>public function autoSizeColumn(<code>Number colIndex</code>, <code>Boolean forceMinSize</code>)</code>
<div class="mdetail-desc">
Autofit a column to it's content.
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>colIndex</code> : Number<div class="sub-desc"></div></li><li><code>forceMinSize</code> : Boolean<div class="sub-desc">true to force the column to go smaller if possible</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="autoSizeColumns"></a>
<div class="mdetail alt">
<h3>autoSizeColumns</i></h3>
<code>public function autoSizeColumns()</code>
<div class="mdetail-desc">
Autofits all columns to their content and then expands to fit any extra space in the grid
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="ensureVisible"></a>
<div class="mdetail">
<h3>ensureVisible</i></h3>
<code>public function ensureVisible(<code>Number/HTMLElement row</code>, <code>Boolean disableDelay</code>)</code>
<div class="mdetail-desc">
Scrolls the specified row into view. This call is automatically buffered (delayed), to disable
the delay, pass true for disableDelay.
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>row</code> : Number/HTMLElement<div class="sub-desc">The index of a row or the row itself</div></li><li><code>disableDelay</code> : Boolean<div class="sub-desc"></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="fitColumns"></a>
<div class="mdetail alt">
<h3>fitColumns</i></h3>
<code>public function fitColumns()</code>
<div class="mdetail-desc">
Autofits all columns to the grid's width proportionate with their current size
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="focusRow"></a>
<div class="mdetail">
<h3>focusRow</i></h3>
<code>public function focusRow(<code>Number/HTMLElement row</code>)</code>
<div class="mdetail-desc">
Focuses the specified row. The preferred way to scroll to a row is <a href="#ensureVisible">ensureVisible</a>.
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>row</code> : Number/HTMLElement<div class="sub-desc">The index of a row or the row itself</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="getCellAtPoint"></a>
<div class="mdetail alt">
<h3>getCellAtPoint</i></h3>
<code>public function getCellAtPoint(<code>Number x</code>, <code>Number y</code>)</code>
<div class="mdetail-desc">
Returns the rowIndex/columnIndex of the cell found at the passed page coordinates
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>x</code> : Number<div class="sub-desc"></div></li><li><code>y</code> : Number<div class="sub-desc"></div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>Array</code><div class="sub-desc">[rowIndex, columnIndex]</div></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
<a name="setCSSStyle"></a>
<div class="mdetail">
<h3>setCSSStyle</i></h3>
<code>public function setCSSStyle(<code>Number colIndex</code>, <code>String name</code>, <code>String value</code>)</code>
<div class="mdetail-desc">
Set a css style for a column dynamically.
<div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>colIndex</code> : Number<div class="sub-desc">The index of the column</div></li><li><code>name</code> : String<div class="sub-desc">The css property name</div></li><li><code>value</code> : String<div class="sub-desc">The css value</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
<div class="mdetail-def">This method is defined by GridView.</div>
</div>
</div>
</div>
<hr>
Copyright &copy; 2006 Jack Slocum. All rights reserved.
</body>
</html>