1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WTable Class Reference</title>
<link href="doxygen.css" rel="stylesheet" type="text/css">
</head><body>
<!-- Generated by Doxygen 1.5.6 -->
<div class="navigation" id="top">
<div class="tabs">
<ul>
<li><a href="index.html"><span>Main Page</span></a></li>
<li><a href="pages.html"><span>Related Pages</span></a></li>
<li><a href="modules.html"><span>Modules</span></a></li>
<li><a href="namespaces.html"><span>Namespaces</span></a></li>
<li class="current"><a href="annotated.html"><span>Classes</span></a></li>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WTable.html">WTable</a>
</div>
</div>
<div class="contents">
<h1>Wt::WTable Class Reference</h1><!-- doxytag: class="Wt::WTable" --><!-- doxytag: inherits="Wt::WInteractWidget" -->A container widget which provides layout of children in a table grid.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WTable></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTable:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTable__inherit__graph.png" border="0" usemap="#Wt_1_1WTable__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTable__inherit__map">
<area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user-interface interaction." alt="" coords="5,229,147,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="15,155,137,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="28,80,124,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="28,5,124,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WTable-members.html">List of all members.</a><table border="0" cellpadding="0" cellspacing="0">
<tr><td></td></tr>
<tr><td colspan="2"><br><h2>Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="a5c23e5c08d11315063e7714c85a8364"></a><!-- doxytag: member="Wt::WTable::WTable" ref="a5c23e5c08d11315063e7714c85a8364" args="(WContainerWidget *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a5c23e5c08d11315063e7714c85a8364">WTable</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates an empty table. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="342361febd4e025a71d4ccf3990b9c7c"></a><!-- doxytag: member="Wt::WTable::~WTable" ref="342361febd4e025a71d4ccf3990b9c7c" args="()" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#342361febd4e025a71d4ccf3990b9c7c">~WTable</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes the table and its entire contents. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4">elementAt</a> (int row, int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Accesses the table element at the given row and column. <a href="#c4b59af9a44e185edb14e7f1f439d6c4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTableRow.html">WTableRow</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#ff46a40881a7d0967d7435d8d479bedb">rowAt</a> (int row)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the row object for the given row. <a href="#ff46a40881a7d0967d7435d8d479bedb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTableColumn.html">WTableColumn</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#37dc3995a309d32a0e4bf857596df00e">columnAt</a> (int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the column object for the given column. <a href="#37dc3995a309d32a0e4bf857596df00e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#5c45c882a0b3af6d0c0ed13b6217c078">removeCell</a> (<a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> *item)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a table cell and its contents. <a href="#5c45c882a0b3af6d0c0ed13b6217c078"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#46b216d395d19f3f9a71d1f168ca4f16">removeCell</a> (int row, int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes the table cell at the given position. <a href="#46b216d395d19f3f9a71d1f168ca4f16"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="53a8121130504141346ec8f355f6d691"></a><!-- doxytag: member="Wt::WTable::insertRow" ref="53a8121130504141346ec8f355f6d691" args="(int row)" -->
<a class="el" href="classWt_1_1WTableRow.html">WTableRow</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#53a8121130504141346ec8f355f6d691">insertRow</a> (int row)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts an empty row. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#1e0910054f11ebdc8ae3a5cd7b03975c">deleteRow</a> (int row)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a row and all its contents. <a href="#1e0910054f11ebdc8ae3a5cd7b03975c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="cfc99f211e1bbf2ad5c5898347a412a4"></a><!-- doxytag: member="Wt::WTable::insertColumn" ref="cfc99f211e1bbf2ad5c5898347a412a4" args="(int column)" -->
<a class="el" href="classWt_1_1WTableColumn.html">WTableColumn</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#cfc99f211e1bbf2ad5c5898347a412a4">insertColumn</a> (int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Inserts an empty column. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5cb1b9e4cc08ff62f203eab0894e0756"></a><!-- doxytag: member="Wt::WTable::deleteColumn" ref="5cb1b9e4cc08ff62f203eab0894e0756" args="(int column)" -->
void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#5cb1b9e4cc08ff62f203eab0894e0756">deleteColumn</a> (int column)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Delete a column and all its contents. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#431d6a3da63ab9696e084ad7c2438afb">clear</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Clears the entire table. <a href="#431d6a3da63ab9696e084ad7c2438afb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="79d5dfe40ee5e67c5007ee370e8cd2f3"></a><!-- doxytag: member="Wt::WTable::rowCount" ref="79d5dfe40ee5e67c5007ee370e8cd2f3" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#79d5dfe40ee5e67c5007ee370e8cd2f3">rowCount</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of rows in the table. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4d062330d1c9b3f202985b92dcb59d4f"></a><!-- doxytag: member="Wt::WTable::columnCount" ref="4d062330d1c9b3f202985b92dcb59d4f" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#4d062330d1c9b3f202985b92dcb59d4f">columnCount</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of columns in the table. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#e5e4e17ae51492b26e1930332d2f5bae">setHeaderCount</a> (int count, <a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation=Horizontal)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the number of header rows or columns. <a href="#e5e4e17ae51492b26e1930332d2f5bae"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#b742cd4fbda9d0692aad3165c34e0e84">headerCount</a> (<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation=Horizontal)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of header rows or columns. <a href="#b742cd4fbda9d0692aad3165c34e0e84"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A container widget which provides layout of children in a table grid.
<p>
A WTable arranges its children in a table.<p>
To insert or access contents, use <a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt(int row, int column)</a> to access the <a class="el" href="classWt_1_1WTableCell.html">cell</a> at a particular location in the table. The WTable expands automatically to create the indexed (row, column) as necessary.<p>
It is possible to insert and delete entire rows or columns from the table using the <a class="el" href="classWt_1_1WTable.html#cfc99f211e1bbf2ad5c5898347a412a4" title="Inserts an empty column.">insertColumn(int column)</a>, <a class="el" href="classWt_1_1WTable.html#53a8121130504141346ec8f355f6d691" title="Inserts an empty row.">insertRow(int row)</a>, <a class="el" href="classWt_1_1WTable.html#5cb1b9e4cc08ff62f203eab0894e0756" title="Delete a column and all its contents.">deleteColumn(int column)</a>, or <a class="el" href="classWt_1_1WTable.html#1e0910054f11ebdc8ae3a5cd7b03975c" title="Deletes a row and all its contents.">deleteRow(int row)</a> methods.<p>
You may indicate a number of rows and columns that act as headers using <a class="el" href="classWt_1_1WTable.html#e5e4e17ae51492b26e1930332d2f5bae" title="Sets the number of header rows or columns.">setHeaderCount()</a>. Header cells are rendered as <code><th></code> instead of <code><td></code> elements. By default, no rows or columns are configured as headers.<p>
WTable is displayed as a <a class="el" href="classWt_1_1WWidget.html#c78e3af143883334c82031790c87416e">block</a>.<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid.">Wt::WTable</a> *table = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid.">Wt::WTable</a>(<span class="keyword">this</span>);
table-><a class="code" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(0, 0)->addWidget(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Item @ row 0, column 0"</span>));
table-><a class="code" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(0, 1)->addWidget(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Item @ row 0, column 1"</span>));
table-><a class="code" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(1, 0)->addWidget(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Item @ row 1, column 0"</span>));
table-><a class="code" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(1, 1)->addWidget(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Item @ row 1, column 1"</span>));
<a class="code" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">Wt::WTableCell</a> *cell = table-><a class="code" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(2, 0);
cell-><a class="code" href="classWt_1_1WContainerWidget.html#2cfe66d9b62940f889e99538a9f478d2" title="Adds a child widget to this container.">addWidget</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WText.html" title="A widget that renders (XHTML) text.">Wt::WText</a>(<span class="stringliteral">"Item @ row 2"</span>));
cell-><a class="code" href="classWt_1_1WTableCell.html#0f4912b4c023b78e6de41561e2e0a62a" title="Sets the column span.">setColumnSpan</a>(2);
</pre></div><p>
<h3>CSS</h3>
<p>
The widget corresponds to the HTML <code><table></code> tag and does not provide styling. It can be styled using inline or external CSS as appropriate.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">WTableCell</a>, <a class="el" href="classWt_1_1WTableRow.html" title="A table row.">WTableRow</a>, <a class="el" href="classWt_1_1WTableColumn.html" title="A table column.">WTableColumn</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="c4b59af9a44e185edb14e7f1f439d6c4"></a><!-- doxytag: member="Wt::WTable::elementAt" ref="c4b59af9a44e185edb14e7f1f439d6c4" args="(int row, int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> * Wt::WTable::elementAt </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>row</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Accesses the table element at the given row and column.
<p>
If the row/column is beyond the current table dimensions, then the table is expanded automatically.
</div>
</div><p>
<a class="anchor" name="ff46a40881a7d0967d7435d8d479bedb"></a><!-- doxytag: member="Wt::WTable::rowAt" ref="ff46a40881a7d0967d7435d8d479bedb" args="(int row)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WTableRow.html">WTableRow</a> * Wt::WTable::rowAt </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>row</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the row object for the given row.
<p>
Like with <a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt()</a>, the table expands automatically when the row is beyond the current table dimensions.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt(int, int)</a>, <a class="el" href="classWt_1_1WTable.html#37dc3995a309d32a0e4bf857596df00e" title="Returns the column object for the given column.">columnAt(int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="37dc3995a309d32a0e4bf857596df00e"></a><!-- doxytag: member="Wt::WTable::columnAt" ref="37dc3995a309d32a0e4bf857596df00e" args="(int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WTableColumn.html">WTableColumn</a> * Wt::WTable::columnAt </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the column object for the given column.
<p>
Like with <a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt()</a>, the table expands automatically when the column is beyond the current table dimensions.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt(int, int)</a>, <a class="el" href="classWt_1_1WTable.html#ff46a40881a7d0967d7435d8d479bedb" title="Returns the row object for the given row.">rowAt(int)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="5c45c882a0b3af6d0c0ed13b6217c078"></a><!-- doxytag: member="Wt::WTable::removeCell" ref="5c45c882a0b3af6d0c0ed13b6217c078" args="(WTableCell *item)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTable::removeCell </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WTableCell.html">WTableCell</a> * </td>
<td class="paramname"> <em>item</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Deletes a table cell and its contents.
<p>
The table cell at that position is recreated.
</div>
</div><p>
<a class="anchor" name="46b216d395d19f3f9a71d1f168ca4f16"></a><!-- doxytag: member="Wt::WTable::removeCell" ref="46b216d395d19f3f9a71d1f168ca4f16" args="(int row, int column)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTable::removeCell </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>row</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype">int </td>
<td class="paramname"> <em>column</em></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Deletes the table cell at the given position.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#5c45c882a0b3af6d0c0ed13b6217c078" title="Deletes a table cell and its contents.">removeCell(WTableCell *)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="1e0910054f11ebdc8ae3a5cd7b03975c"></a><!-- doxytag: member="Wt::WTable::deleteRow" ref="1e0910054f11ebdc8ae3a5cd7b03975c" args="(int row)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTable::deleteRow </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>row</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Deletes a row and all its contents.
<p>
Rows below the given row are shifted up.
</div>
</div><p>
<a class="anchor" name="431d6a3da63ab9696e084ad7c2438afb"></a><!-- doxytag: member="Wt::WTable::clear" ref="431d6a3da63ab9696e084ad7c2438afb" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTable::clear </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Clears the entire table.
<p>
This method clears the entire table: all cells and their contents are deleted.
</div>
</div><p>
<a class="anchor" name="e5e4e17ae51492b26e1930332d2f5bae"></a><!-- doxytag: member="Wt::WTable::setHeaderCount" ref="e5e4e17ae51492b26e1930332d2f5bae" args="(int count, Orientation orientation=Horizontal)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTable::setHeaderCount </td>
<td>(</td>
<td class="paramtype">int </td>
<td class="paramname"> <em>count</em>, </td>
</tr>
<tr>
<td class="paramkey"></td>
<td></td>
<td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> </td>
<td class="paramname"> <em>orientation</em> = <code>Horizontal</code></td><td> </td>
</tr>
<tr>
<td></td>
<td>)</td>
<td></td><td></td><td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the number of header rows or columns.
<p>
The default values are 0.<p>
<dl class="note" compact><dt><b>Note:</b></dt><dd>This must be set before the initial rendering and cannot be changed later. </dd></dl>
</div>
</div><p>
<a class="anchor" name="b742cd4fbda9d0692aad3165c34e0e84"></a><!-- doxytag: member="Wt::WTable::headerCount" ref="b742cd4fbda9d0692aad3165c34e0e84" args="(Orientation orientation=Horizontal)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WTable::headerCount </td>
<td>(</td>
<td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> </td>
<td class="paramname"> <em>orientation</em> = <code>Horizontal</code> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the number of header rows or columns.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#e5e4e17ae51492b26e1930332d2f5bae" title="Sets the number of header rows or columns.">setHeaderCount()</a> </dd></dl>
</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" align="middle" border="0"></a> 1.5.6</small></address>
</body>
</html>
|