<!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::WTreeTable 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_1WTreeTable.html">WTreeTable</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::WTreeTable Class Reference</div> </div> </div> <div class="contents"> <!-- doxytag: class="Wt::WTreeTable" --><!-- doxytag: inherits="Wt::WCompositeWidget" --> <p>A table with a navigatable tree in the first column. <a href="classWt_1_1WTreeTable.html#details">More...</a></p> <p><code>#include <Wt/WTreeTable></code></p> <div class="dynheader"> Inheritance diagram for Wt::WTreeTable:</div> <div class="dyncontent"> <div class="center"><img src="classWt_1_1WTreeTable__inherit__graph.png" border="0" usemap="#Wt_1_1WTreeTable_inherit__map" alt="Inheritance graph"/></div> <map name="Wt_1_1WTreeTable_inherit__map" id="Wt_1_1WTreeTable_inherit__map"> <area shape="rect" href="classWt_1_1WCompositeWidget.html" title="A widget that hides the implementation of composite widgets." alt="" coords="5,155,168,181"/><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user-interface component." alt="" coords="37,80,136,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="39,5,135,32"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classWt_1_1WTreeTable-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"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#ab6224d3b98077147c7c6ce96d167e407">WTreeTable</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new tree table. <a href="#ab6224d3b98077147c7c6ce96d167e407"></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_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1">addColumn</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &header, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &width)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds an extra column. <a href="#a2ec7655241ad65f99c114d6ed37b49a1"></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_1WTreeTable.html#abcc40b31b73d964c025e2891224e081f">columnCount</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the number of columns in this table. <a href="#abcc40b31b73d964c025e2891224e081f"></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_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0">setTreeRoot</a> (<a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> *root, const <a class="el" href="classWt_1_1WString.html">WString</a> &header)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tree root. <a href="#a1a9de525c82f7f6aadb9842f2bcf46a0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ad2df80ef5a3243b7b695946f5fbd8614"></a><!-- doxytag: member="Wt::WTreeTable::treeRoot" ref="ad2df80ef5a3243b7b695946f5fbd8614" args="()" --> <a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#ad2df80ef5a3243b7b695946f5fbd8614">treeRoot</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the tree root. <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#a7a886c66febb9c32c0b044b6f5cffb0a">setTree</a> (<a class="el" href="classWt_1_1WTree.html">WTree</a> *tree, const <a class="el" href="classWt_1_1WString.html">WString</a> &header)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tree which provides the data for the tree table. <a href="#a7a886c66febb9c32c0b044b6f5cffb0a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WTree.html">WTree</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#a4c9a1d8257e8f24d164708f3c2738de3">tree</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the tree that provides the data this table. <a href="#a4c9a1d8257e8f24d164708f3c2738de3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WLength.html">WLength</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#afdb33da75ddd2eb71272a11b445ed346">columnWidth</a> (int column) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the column width for the given column. <a href="#afdb33da75ddd2eb71272a11b445ed346"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WText.html">WText</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#af20309bf1c221d907a72823595766af8">header</a> (int column) const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the header for the given column. <a href="#af20309bf1c221d907a72823595766af8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#afa8204f217f77725f7e243ece08e5ddb">headerWidget</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the header widget. <a href="#afa8204f217f77725f7e243ece08e5ddb"></a><br/></td></tr> </table> <hr/><a name="details" id="details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A table with a navigatable tree in the first column. </p> <p>A WTreeTable implements a tree table, where additional data associated is associated with tree items, which are organized in columns.</p> <p>Unlike the MVC-based <a class="el" href="classWt_1_1WTreeView.html" title="A view class that displays a model as a tree or tree table.">WTreeView</a> widget, the tree renders a widget hierarchy, rather than a hierarhical standard model. This provides extra flexibility (as any widget can be used as contents), at the cost of server-side, client-side and bandwidth resources (especially for large tree tables).</p> <p>The actual data is organized and provided by <a class="el" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">WTreeTableNode</a> widgets.</p> <p>To use the tree table, you need <b>first</b> to call <a class="el" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> to specify the additional data columns. Next, you need to set the tree root using <a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a> and bind additional information (text or other widgets) in each node using <a class="el" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">WTreeTableNode::setColumnWidget()</a>. Thus, you cannot change the number of columns once the tree root has been set.</p> <p>The table cannot be given a height using CSS style rules, instead you must use layout managers, or use <a class="el" href="classWt_1_1WCompositeWidget.html#a976e94e38c7a9cc0f212e13a9792912e" title="Resizes the widget.">resize()</a>.</p> <p>Usage example: </p> <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WTreeTable.html" title="A table with a navigatable tree in the first column.">Wt::WTreeTable</a> *treeTable = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTreeTable.html#ab6224d3b98077147c7c6ce96d167e407" title="Creates a new tree table.">Wt::WTreeTable</a>(); treeTable-><a class="code" href="classWt_1_1WCompositeWidget.html#a976e94e38c7a9cc0f212e13a9792912e" title="Resizes the widget.">resize</a>(650, 300); <span class="comment">// Add 3 extra columns</span> treeTable-><a class="code" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn</a>(<span class="stringliteral">"Yuppie Factor"</span>, 125); treeTable-><a class="code" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn</a>(<span class="stringliteral">"# Holidays"</span>, 125); treeTable-><a class="code" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn</a>(<span class="stringliteral">"Favorite Item"</span>, 125); <span class="comment">// Create and set the root node</span> <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a> *root = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a>(<span class="stringliteral">"All Personnel"</span>); root-><a class="code" href="classWt_1_1WTreeNode.html#aff37a6152a8195dd9b2a80e593d94298" title="Sets the image pack for this (sub)tree (deprecated).">setImagePack</a>(<span class="stringliteral">"resources/"</span>); treeTable-><a class="code" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot</a>(root, <span class="stringliteral">"Emweb Organigram"</span>); <span class="comment">// Populate the tree with data nodes.</span> <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a> *node1 = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a>(<span class="stringliteral">"Upper Management"</span>, 0, root); <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a> *node2; node2 = <span class="keyword">new</span> <a class="code" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">Wt::WTreeTableNode</a>(<span class="stringliteral">"Chief Anything Officer"</span>, 0, node1); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(1, <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">"-2.8"</span>)); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(2, <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">"20"</span>)); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(3, <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">"Scepter"</span>)); node2 = <span class="keyword">new</span> WTreeTableNode(<span class="stringliteral">"Vice President of Parties"</span>, 0, node1); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(1, <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">"13.57"</span>)); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(2, <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">"365"</span>)); node2-><a class="code" href="classWt_1_1WTreeTableNode.html#a136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget</a>(3, <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">"Flag"</span>)); root-><a class="code" href="classWt_1_1WTreeNode.html#a10e99f9db96ec2fc500927a5d50caafe" title="Expands this node.">expand</a>(); </pre></div><h3>CSS</h3> <p>The treetable is styled by the current CSS theme. The look can be overridden using the <code>Wt-treetable</code> CSS class. The style selectors that affect the rendering of the tree are indicated in the documentation for <a class="el" href="classWt_1_1WTree.html" title="A widget that represents a navigatable tree.">WTree</a> (for selection) and <a class="el" href="classWt_1_1WTreeNode.html" title="A single node in a tree.">WTreeNode</a> (for decoration). In addition, the following selector may be used to to style the header:</p> <div class="fragment"><pre class="fragment"> .Wt-treetable .Wt-header : header </pre></div><p>A screenshot of the treetable: </p> <div class="image"> <img src="WTreeTable-default-1.png" alt="WTreeTable-default-1.png"/> <div class="caption"> An example WTreeTable (default)</div></div> <div class="image"> <img src="WTreeTable-polished-1.png" alt="WTreeTable-polished-1.png"/> <div class="caption"> An example WTreeTable (polished)</div></div> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTableNode.html" title="A specialized tree node which allows additional data to be associated with each node.">WTreeTableNode</a>, <a class="el" href="classWt_1_1WTreeView.html" title="A view class that displays a model as a tree or tree table.">WTreeView</a> </dd></dl> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="ab6224d3b98077147c7c6ce96d167e407"></a><!-- doxytag: member="Wt::WTreeTable::WTreeTable" ref="ab6224d3b98077147c7c6ce96d167e407" args="(WContainerWidget *parent=0)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Wt::WTreeTable::WTreeTable </td> <td>(</td> <td class="paramtype"><a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> * </td> <td class="paramname"><em>parent</em> = <code>0</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new tree table. </p> <p>The <a class="el" href="classWt_1_1WTreeTable.html#ad2df80ef5a3243b7b695946f5fbd8614" title="Returns the tree root.">treeRoot()</a> is <code>0</code>. The table should first be properly dimensioned using <a class="el" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> calls, and then data using <a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a>. </p> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a2ec7655241ad65f99c114d6ed37b49a1"></a><!-- doxytag: member="Wt::WTreeTable::addColumn" ref="a2ec7655241ad65f99c114d6ed37b49a1" args="(const WString &header, const WLength &width)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Wt::WTreeTable::addColumn </td> <td>(</td> <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td> <td class="paramname"><em>header</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> & </td> <td class="paramname"><em>width</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds an extra column. </p> <p>Add an extra column, specifying the column header and a column width. The extra columns are numbered from 1 as column 0 contains the tree itself. The header for column 0 (the tree itself) is specified in <a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a>, and the width of column 0 takes the remaining available width. </p> </div> </div> <a class="anchor" id="abcc40b31b73d964c025e2891224e081f"></a><!-- doxytag: member="Wt::WTreeTable::columnCount" ref="abcc40b31b73d964c025e2891224e081f" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Wt::WTreeTable::columnCount </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the number of columns in this table. </p> <p>Returns the number of columns in the table, including in the count column 0 (which contains the tree).</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> </dd></dl> </div> </div> <a class="anchor" id="afdb33da75ddd2eb71272a11b445ed346"></a><!-- doxytag: member="Wt::WTreeTable::columnWidth" ref="afdb33da75ddd2eb71272a11b445ed346" args="(int column) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classWt_1_1WLength.html">WLength</a> Wt::WTreeTable::columnWidth </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>column</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the column width for the given column. </p> <p>The width of the first column (with index 0), containing the tree, is implied by the width set for the table minus the width of all other columns.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a>, <a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a> </dd></dl> </div> </div> <a class="anchor" id="af20309bf1c221d907a72823595766af8"></a><!-- doxytag: member="Wt::WTreeTable::header" ref="af20309bf1c221d907a72823595766af8" args="(int column) const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classWt_1_1WText.html">WText</a> * Wt::WTreeTable::header </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>column</em></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the header for the given column. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#a2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a>, <a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a> </dd></dl> </div> </div> <a class="anchor" id="afa8204f217f77725f7e243ece08e5ddb"></a><!-- doxytag: member="Wt::WTreeTable::headerWidget" ref="afa8204f217f77725f7e243ece08e5ddb" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::WTreeTable::headerWidget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the header widget. </p> <p>This is the widget that contains the column headers. </p> </div> </div> <a class="anchor" id="a7a886c66febb9c32c0b044b6f5cffb0a"></a><!-- doxytag: member="Wt::WTreeTable::setTree" ref="a7a886c66febb9c32c0b044b6f5cffb0a" args="(WTree *tree, const WString &header)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Wt::WTreeTable::setTree </td> <td>(</td> <td class="paramtype"><a class="el" href="classWt_1_1WTree.html">WTree</a> * </td> <td class="paramname"><em>tree</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td> <td class="paramname"><em>header</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the tree which provides the data for the tree table. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#a1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a>. </dd></dl> </div> </div> <a class="anchor" id="a1a9de525c82f7f6aadb9842f2bcf46a0"></a><!-- doxytag: member="Wt::WTreeTable::setTreeRoot" ref="a1a9de525c82f7f6aadb9842f2bcf46a0" args="(WTreeTableNode *root, const WString &header)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Wt::WTreeTable::setTreeRoot </td> <td>(</td> <td class="paramtype"><a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> * </td> <td class="paramname"><em>root</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td> <td class="paramname"><em>header</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the tree root. </p> <p>Sets the data for the tree table, and specify the header for the first column.</p> <p>The initial <code>root</code> is <code>0</code>.</p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#ad2df80ef5a3243b7b695946f5fbd8614" title="Returns the tree root.">treeRoot()</a>, <a class="el" href="classWt_1_1WTreeTable.html#a7a886c66febb9c32c0b044b6f5cffb0a" title="Sets the tree which provides the data for the tree table.">setTree()</a> </dd></dl> </div> </div> <a class="anchor" id="a4c9a1d8257e8f24d164708f3c2738de3"></a><!-- doxytag: member="Wt::WTreeTable::tree" ref="a4c9a1d8257e8f24d164708f3c2738de3" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classWt_1_1WTree.html">WTree</a>* Wt::WTreeTable::tree </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the tree that provides the data this table. </p> <dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#a7a886c66febb9c32c0b044b6f5cffb0a" title="Sets the tree which provides the data for the tree table.">setTree()</a>. </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>