<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>Wt: Wt::WTable Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css" /> <link href="search/search.css" rel="stylesheet" type="text/css"/> <script type="text/javascript" src="jquery.js"></script> <script type="text/javascript" src="search/search.js"></script> <script type="text/javascript"> $(document).ready(function() { searchBox.OnSelectItem(0); }); </script> </head> <body> <div id="top"><!-- do not remove this div! --> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">Wt  <span id="projectnumber">3.2.3</span> </div> </td> </tr> </tbody> </table> </div> <!-- Generated by Doxygen 1.7.5.1 --> <script type="text/javascript"> var searchBox = new SearchBox("searchBox", "search",false,'Search'); </script> <div id="navrow1" class="tabs"> <ul class="tablist"> <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> <li><a href="files.html"><span>Files</span></a></li> <li> <div id="MSearchBox" class="MSearchBoxInactive"> <span class="left"> <img id="MSearchSelect" src="search/mag_sel.png" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" alt=""/> <input type="text" id="MSearchField" value="Search" accesskey="S" onfocus="searchBox.OnSearchFieldFocus(true)" onblur="searchBox.OnSearchFieldFocus(false)" onkeyup="searchBox.OnSearchFieldChange(event)"/> </span><span class="right"> <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a> </span> </div> </li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a> </li> <li class="navelem"><a class="el" href="classWt_1_1WTable.html">WTable</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> </div> <div class="headertitle"> <div class="title">Wt::WTable Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="Wt::WTable" --><!-- doxytag: inherits="Wt::WInteractWidget" --> <p>A container widget which provides layout of children in a table grid. <a href="classWt_1_1WTable.html#details">More...</a></p> <p><code>#include <Wt/WTable></code></p> <div class="dynheader"> Inheritance diagram for Wt::WTable:</div> <div class="dyncontent"> <div class="center"><img src="classWt_1_1WTable__inherit__graph.png" border="0" usemap="#Wt_1_1WTable_inherit__map" alt="Inheritance graph"/></div> <map name="Wt_1_1WTable_inherit__map" id="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,149,256"/><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="13,155,141,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="28,80,127,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="29,5,125,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classWt_1_1WTable-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa5c23e5c08d11315063e7714c85a8364"></a><!-- doxytag: member="Wt::WTable::WTable" ref="aa5c23e5c08d11315063e7714c85a8364" args="(WContainerWidget *parent=0)" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#aa5c23e5c08d11315063e7714c85a8364">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" align="right" valign="top"><a class="anchor" id="a342361febd4e025a71d4ccf3990b9c7c"></a><!-- doxytag: member="Wt::WTable::~WTable" ref="a342361febd4e025a71d4ccf3990b9c7c" args="()" -->  </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a342361febd4e025a71d4ccf3990b9c7c">~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" 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#ac4b59af9a44e185edb14e7f1f439d6c4">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="#ac4b59af9a44e185edb14e7f1f439d6c4"></a><br/></td></tr> <tr><td class="memItemLeft" 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#aff46a40881a7d0967d7435d8d479bedb">rowAt</a> (int row)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the row object for the given row. <a href="#aff46a40881a7d0967d7435d8d479bedb"></a><br/></td></tr> <tr><td class="memItemLeft" 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#a37dc3995a309d32a0e4bf857596df00e">columnAt</a> (int column)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the column object for the given column. <a href="#a37dc3995a309d32a0e4bf857596df00e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a5c45c882a0b3af6d0c0ed13b6217c078">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="#a5c45c882a0b3af6d0c0ed13b6217c078"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a46b216d395d19f3f9a71d1f168ca4f16">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="#a46b216d395d19f3f9a71d1f168ca4f16"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a53a8121130504141346ec8f355f6d691"></a><!-- doxytag: member="Wt::WTable::insertRow" ref="a53a8121130504141346ec8f355f6d691" 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#a53a8121130504141346ec8f355f6d691">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" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a1e0910054f11ebdc8ae3a5cd7b03975c">deleteRow</a> (int row)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Deletes a row and all its contents. <a href="#a1e0910054f11ebdc8ae3a5cd7b03975c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="acfc99f211e1bbf2ad5c5898347a412a4"></a><!-- doxytag: member="Wt::WTable::insertColumn" ref="acfc99f211e1bbf2ad5c5898347a412a4" 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#acfc99f211e1bbf2ad5c5898347a412a4">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" align="right" valign="top"><a class="anchor" id="a5cb1b9e4cc08ff62f203eab0894e0756"></a><!-- doxytag: member="Wt::WTable::deleteColumn" ref="a5cb1b9e4cc08ff62f203eab0894e0756" args="(int column)" --> void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a5cb1b9e4cc08ff62f203eab0894e0756">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" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a431d6a3da63ab9696e084ad7c2438afb">clear</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Clears the entire table. <a href="#a431d6a3da63ab9696e084ad7c2438afb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a79d5dfe40ee5e67c5007ee370e8cd2f3"></a><!-- doxytag: member="Wt::WTable::rowCount" ref="a79d5dfe40ee5e67c5007ee370e8cd2f3" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a79d5dfe40ee5e67c5007ee370e8cd2f3">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" align="right" valign="top"><a class="anchor" id="a4d062330d1c9b3f202985b92dcb59d4f"></a><!-- doxytag: member="Wt::WTable::columnCount" ref="a4d062330d1c9b3f202985b92dcb59d4f" args="() const " --> int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a4d062330d1c9b3f202985b92dcb59d4f">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" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#ae5e4e17ae51492b26e1930332d2f5bae">setHeaderCount</a> (int count, <a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation=Horizontal)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the number of header rows or columns. <a href="#ae5e4e17ae51492b26e1930332d2f5bae"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#ab742cd4fbda9d0692aad3165c34e0e84">headerCount</a> (<a class="el" href="namespaceWt.html#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation=Horizontal)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of header rows or columns. <a href="#ab742cd4fbda9d0692aad3165c34e0e84"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a239d85781509ff321eb964af042bcf57">moveRow</a> (int from, int to)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Move a table row from its original position to a new position. <a href="#a239d85781509ff321eb964af042bcf57"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTable.html#a0670b90a05a6c0176c773bf8766a5bf2">moveColumn</a> (int from, int to)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Move a table column from its original position to a new position. <a href="#a0670b90a05a6c0176c773bf8766a5bf2"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A container widget which provides layout of children in a table grid. </p> <p>A WTable arranges its children in a table.</p> <p>To insert or access contents, use <a class="el" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" 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> <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#acfc99f211e1bbf2ad5c5898347a412a4" title="Inserts an empty column.">insertColumn(int column)</a>, <a class="el" href="classWt_1_1WTable.html#a53a8121130504141346ec8f355f6d691" title="Inserts an empty row.">insertRow(int row)</a>, <a class="el" href="classWt_1_1WTable.html#a5cb1b9e4cc08ff62f203eab0894e0756" title="Delete a column and all its contents.">deleteColumn(int column)</a>, or <a class="el" href="classWt_1_1WTable.html#a1e0910054f11ebdc8ae3a5cd7b03975c" title="Deletes a row and all its contents.">deleteRow(int row)</a> methods.</p> <p>You may indicate a number of rows and columns that act as headers using <a class="el" href="classWt_1_1WTable.html#ae5e4e17ae51492b26e1930332d2f5bae" 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> <p>WTable is displayed as a <a class="el" href="classWt_1_1WWidget.html#ac78e3af143883334c82031790c87416e">block</a>.</p> <p>Usage example: </p> <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#aa5c23e5c08d11315063e7714c85a8364" title="Creates an empty table.">Wt::WTable</a>(<span class="keyword">this</span>); table-><a class="code" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" 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#ac4b59af9a44e185edb14e7f1f439d6c4" 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#ac4b59af9a44e185edb14e7f1f439d6c4" 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#ac4b59af9a44e185edb14e7f1f439d6c4" 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#ac4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt</a>(2, 0); cell-><a class="code" href="classWt_1_1WContainerWidget.html#a2cfe66d9b62940f889e99538a9f478d2" 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#a0f4912b4c023b78e6de41561e2e0a62a" title="Sets the column span.">setColumnSpan</a>(2); </pre></div><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"><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> </div><hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a431d6a3da63ab9696e084ad7c2438afb"></a><!-- doxytag: member="Wt::WTable::clear" ref="a431d6a3da63ab9696e084ad7c2438afb" 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> <p>This method clears the entire table: all cells and their contents are deleted. </p> </div> </div> <a class="anchor" id="a37dc3995a309d32a0e4bf857596df00e"></a><!-- doxytag: member="Wt::WTable::columnAt" ref="a37dc3995a309d32a0e4bf857596df00e" 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> <p>Like with <a class="el" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" 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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt(int, int)</a>, <a class="el" href="classWt_1_1WTable.html#aff46a40881a7d0967d7435d8d479bedb" title="Returns the row object for the given row.">rowAt(int)</a> </dd></dl> </div> </div> <a class="anchor" id="a1e0910054f11ebdc8ae3a5cd7b03975c"></a><!-- doxytag: member="Wt::WTable::deleteRow" ref="a1e0910054f11ebdc8ae3a5cd7b03975c" 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> <p>Rows below the given row are shifted up. </p> </div> </div> <a class="anchor" id="ac4b59af9a44e185edb14e7f1f439d6c4"></a><!-- doxytag: member="Wt::WTable::elementAt" ref="ac4b59af9a44e185edb14e7f1f439d6c4" 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> </tr> <tr> <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> <p>If the row/column is beyond the current table dimensions, then the table is expanded automatically. </p> </div> </div> <a class="anchor" id="ab742cd4fbda9d0692aad3165c34e0e84"></a><!-- doxytag: member="Wt::WTable::headerCount" ref="ab742cd4fbda9d0692aad3165c34e0e84" 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#a2a8d45559e16a0185bf61bfad0a67912">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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#ae5e4e17ae51492b26e1930332d2f5bae" title="Sets the number of header rows or columns.">setHeaderCount()</a> </dd></dl> </div> </div> <a class="anchor" id="a0670b90a05a6c0176c773bf8766a5bf2"></a><!-- doxytag: member="Wt::WTable::moveColumn" ref="a0670b90a05a6c0176c773bf8766a5bf2" args="(int from, int to)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Wt::WTable::moveColumn </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>from</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>to</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Move a table column from its original position to a new position. </p> <p>The table expands automatically when the <code>to</code> column is beyond the current table dimensions.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#a239d85781509ff321eb964af042bcf57" title="Move a table row from its original position to a new position.">moveRow()</a> </dd></dl> </div> </div> <a class="anchor" id="a239d85781509ff321eb964af042bcf57"></a><!-- doxytag: member="Wt::WTable::moveRow" ref="a239d85781509ff321eb964af042bcf57" args="(int from, int to)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Wt::WTable::moveRow </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>from</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>to</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Move a table row from its original position to a new position. </p> <p>The table expands automatically when the <code>to</code> row is beyond the current table dimensions.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#a0670b90a05a6c0176c773bf8766a5bf2" title="Move a table column from its original position to a new position.">moveColumn()</a> </dd></dl> </div> </div> <a class="anchor" id="a5c45c882a0b3af6d0c0ed13b6217c078"></a><!-- doxytag: member="Wt::WTable::removeCell" ref="a5c45c882a0b3af6d0c0ed13b6217c078" 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> <p>The table cell at that position is recreated. </p> </div> </div> <a class="anchor" id="a46b216d395d19f3f9a71d1f168ca4f16"></a><!-- doxytag: member="Wt::WTable::removeCell" ref="a46b216d395d19f3f9a71d1f168ca4f16" 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> </tr> <tr> <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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#a5c45c882a0b3af6d0c0ed13b6217c078" title="Deletes a table cell and its contents.">removeCell(WTableCell *)</a> </dd></dl> </div> </div> <a class="anchor" id="aff46a40881a7d0967d7435d8d479bedb"></a><!-- doxytag: member="Wt::WTable::rowAt" ref="aff46a40881a7d0967d7435d8d479bedb" 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> <p>Like with <a class="el" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" 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"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#ac4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">elementAt(int, int)</a>, <a class="el" href="classWt_1_1WTable.html#a37dc3995a309d32a0e4bf857596df00e" title="Returns the column object for the given column.">columnAt(int)</a> </dd></dl> </div> </div> <a class="anchor" id="ae5e4e17ae51492b26e1930332d2f5bae"></a><!-- doxytag: member="Wt::WTable::setHeaderCount" ref="ae5e4e17ae51492b26e1930332d2f5bae" 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#a2a8d45559e16a0185bf61bfad0a67912">Orientation</a> </td> <td class="paramname"><em>orientation</em> = <code>Horizontal</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the number of header rows or columns. </p> <p>The default values are 0.</p> <dl class="note"><dt><b>Note:</b></dt><dd>This must be set before the initial rendering and cannot be changed later. </dd></dl> </div> </div> </div> <!-- window showing the filter options --> <div id="MSearchSelectWindow" onmouseover="return searchBox.OnSearchSelectShow()" onmouseout="return searchBox.OnSearchSelectHide()" onkeydown="return searchBox.OnSearchSelectKey(event)"> <a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark"> </span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark"> </span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark"> </span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark"> </span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark"> </span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark"> </span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark"> </span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark"> </span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark"> </span>Enumerator</a></div> <!-- iframe showing the search results (closed by default) --> <div id="MSearchResultsWindow"> <iframe src="javascript:void(0)" frameborder="0" name="MSearchResults" id="MSearchResults"> </iframe> </div> <hr size="1"><address style="text-align: right; margin: 3px"><small> Generated on Thu Nov 1 2012 for <a href="http://www.webtoolkit.eu/wt">the C++ Web Toolkit (Wt)</a> by <a href="http://www.doxygen.org/index.html"><img src="doxygen.png" alt="doxygen" border="0" style="vertical-align: middle; display: inline-block; height: 2em"></a> 1.7.5.1</small></address> </body> </html>