File: classWt_1_1WTreeTable.html

package info (click to toggle)
witty 3.1.2-3
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 45,512 kB
  • ctags: 35,832
  • sloc: cpp: 69,469; ansic: 66,945; xml: 4,383; sh: 594; perl: 108; makefile: 106
file content (363 lines) | stat: -rw-r--r-- 26,721 bytes parent folder | download
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
361
362
363
<!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::WTreeTable 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&nbsp;Page</span></a></li>
      <li><a href="pages.html"><span>Related&nbsp;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&nbsp;List</span></a></li>
      <li><a href="hierarchy.html"><span>Class&nbsp;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&nbsp;Members</span></a></li>
    </ul>
  </div>
  <div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WTreeTable.html">WTreeTable</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WTreeTable Class Reference</h1><!-- doxytag: class="Wt::WTreeTable" --><!-- doxytag: inherits="Wt::WCompositeWidget" -->A table with a navigatable tree in the first column.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WTreeTable&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTreeTable:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTreeTable__inherit__graph.png" border="0" usemap="#Wt_1_1WTreeTable__inherit__map" alt="Inheritance graph"></center>
<map name="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,165,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="37,80,133,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="37,5,133,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WTreeTable-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">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#b6224d3b98077147c7c6ce96d167e407">WTreeTable</a> (<a class="el" href="classWt_1_1WContainerWidget.html">WContainerWidget</a> *parent=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new tree table.  <a href="#b6224d3b98077147c7c6ce96d167e407"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1">addColumn</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;header, const <a class="el" href="classWt_1_1WLength.html">WLength</a> &amp;width)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds an extra column.  <a href="#2ec7655241ad65f99c114d6ed37b49a1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#bcc40b31b73d964c025e2891224e081f">columnCount</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the number of columns in this table.  <a href="#bcc40b31b73d964c025e2891224e081f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0">setTreeRoot</a> (<a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> *root, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;header)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the tree root.  <a href="#1a9de525c82f7f6aadb9842f2bcf46a0"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="d2df80ef5a3243b7b695946f5fbd8614"></a><!-- doxytag: member="Wt::WTreeTable::treeRoot" ref="d2df80ef5a3243b7b695946f5fbd8614" args="()" -->
<a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#d2df80ef5a3243b7b695946f5fbd8614">treeRoot</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the tree root. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#7a886c66febb9c32c0b044b6f5cffb0a">setTree</a> (<a class="el" href="classWt_1_1WTree.html">WTree</a> *tree, const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;header)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the tree which provides the data for the tree table.  <a href="#7a886c66febb9c32c0b044b6f5cffb0a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WTree.html">WTree</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#4c9a1d8257e8f24d164708f3c2738de3">tree</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the tree that provides the data this table.  <a href="#4c9a1d8257e8f24d164708f3c2738de3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLength.html">WLength</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#fdb33da75ddd2eb71272a11b445ed346">columnWidth</a> (int column) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column width for the given column.  <a href="#fdb33da75ddd2eb71272a11b445ed346"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WText.html">WText</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#f20309bf1c221d907a72823595766af8">header</a> (int column) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the header for the given column.  <a href="#f20309bf1c221d907a72823595766af8"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTable.html#fa8204f217f77725f7e243ece08e5ddb">headerWidget</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the header widget.  <a href="#fa8204f217f77725f7e243ece08e5ddb"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A table with a navigatable tree in the first column. 
<p>
A WTreeTable implements a tree table, where additional data associated is associated with tree items, which are organized in columns.<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>
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>
To use the tree table, you must first use <a class="el" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> to specify the additional data columns. Then, you must set the tree root using <a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" 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#136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">WTreeTableNode::setColumnWidget()</a>.<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#976e94e38c7a9cc0f212e13a9792912e" title="Resizes the widget.">resize()</a>.<p>
Usage example: <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" title="A table with a navigatable tree in the first column.">Wt::WTreeTable</a>();
 treeTable-&gt;<a class="code" href="classWt_1_1WCompositeWidget.html#976e94e38c7a9cc0f212e13a9792912e" title="Resizes the widget.">resize</a>(650, 300);

 <span class="comment">// Add 3 extra columns</span>
 treeTable-&gt;<a class="code" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn</a>(<span class="stringliteral">"Yuppie Factor"</span>, 125);
 treeTable-&gt;<a class="code" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn</a>(<span class="stringliteral">"# Holidays"</span>, 125);
 treeTable-&gt;<a class="code" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" 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-&gt;<a class="code" href="classWt_1_1WTreeNode.html#ff37a6152a8195dd9b2a80e593d94298" title="Sets the image pack for this (sub)tree (deprecated).">setImagePack</a>(<span class="stringliteral">"resources/"</span>);
 treeTable-&gt;<a class="code" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" 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-&gt;<a class="code" href="classWt_1_1WTreeNode.html#10e99f9db96ec2fc500927a5d50caafe" title="Expands this node.">expand</a>();
</pre></div><p>
<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: <div align="center">
<img src="WTreeTable-default-1.png" alt="WTreeTable-default-1.png">
<p><strong>An example WTreeTable (default)</strong></p></div>
 <div align="center">
<img src="WTreeTable-polished-1.png" alt="WTreeTable-polished-1.png">
<p><strong>An example WTreeTable (polished)</strong></p></div>
 <dl class="see" compact><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>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="b6224d3b98077147c7c6ce96d167e407"></a><!-- doxytag: member="Wt::WTreeTable::WTreeTable" ref="b6224d3b98077147c7c6ce96d167e407" 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> *&nbsp;</td>
          <td class="paramname"> <em>parent</em> = <code>0</code>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new tree table. 
<p>
The <a class="el" href="classWt_1_1WTreeTable.html#d2df80ef5a3243b7b695946f5fbd8614" 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#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> calls, and then data using <a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="2ec7655241ad65f99c114d6ed37b49a1"></a><!-- doxytag: member="Wt::WTreeTable::addColumn" ref="2ec7655241ad65f99c114d6ed37b49a1" args="(const WString &amp;header, const WLength &amp;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> &amp;&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>width</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Adds an extra column. 
<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#1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a>, and the width of column 0 takes the remaining available width. 
</div>
</div><p>
<a class="anchor" name="bcc40b31b73d964c025e2891224e081f"></a><!-- doxytag: member="Wt::WTreeTable::columnCount" ref="bcc40b31b73d964c025e2891224e081f" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the number of columns in this table. 
<p>
Returns the number of columns in the table, including in the count column 0 (which contains the tree).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="1a9de525c82f7f6aadb9842f2bcf46a0"></a><!-- doxytag: member="Wt::WTreeTable::setTreeRoot" ref="1a9de525c82f7f6aadb9842f2bcf46a0" args="(WTreeTableNode *root, const WString &amp;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> *&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>header</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the tree root. 
<p>
Sets the data for the tree table, and specify the header for the first column.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#d2df80ef5a3243b7b695946f5fbd8614" title="Returns the tree root.">treeRoot()</a>, <a class="el" href="classWt_1_1WTreeTable.html#7a886c66febb9c32c0b044b6f5cffb0a" title="Sets the tree which provides the data for the tree table.">setTree(WTree *tree, const WString&amp;)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="7a886c66febb9c32c0b044b6f5cffb0a"></a><!-- doxytag: member="Wt::WTreeTable::setTree" ref="7a886c66febb9c32c0b044b6f5cffb0a" args="(WTree *tree, const WString &amp;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> *&nbsp;</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> &amp;&nbsp;</td>
          <td class="paramname"> <em>header</em></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot(WTreeTableNode *, const WString&amp;)</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="4c9a1d8257e8f24d164708f3c2738de3"></a><!-- doxytag: member="Wt::WTreeTable::tree" ref="4c9a1d8257e8f24d164708f3c2738de3" 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>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the tree that provides the data this table. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#7a886c66febb9c32c0b044b6f5cffb0a" title="Sets the tree which provides the data for the tree table.">setTree(WTree *tree, const WString&amp;)</a>. </dd></dl>

</div>
</div><p>
<a class="anchor" name="fdb33da75ddd2eb71272a11b445ed346"></a><!-- doxytag: member="Wt::WTreeTable::columnWidth" ref="fdb33da75ddd2eb71272a11b445ed346" 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&nbsp;</td>
          <td class="paramname"> <em>column</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the column width for the given column. 
<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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a>, <a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="f20309bf1c221d907a72823595766af8"></a><!-- doxytag: member="Wt::WTreeTable::header" ref="f20309bf1c221d907a72823595766af8" 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&nbsp;</td>
          <td class="paramname"> <em>column</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the header for the given column. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeTable.html#2ec7655241ad65f99c114d6ed37b49a1" title="Adds an extra column.">addColumn()</a>, <a class="el" href="classWt_1_1WTreeTable.html#1a9de525c82f7f6aadb9842f2bcf46a0" title="Sets the tree root.">setTreeRoot()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="fa8204f217f77725f7e243ece08e5ddb"></a><!-- doxytag: member="Wt::WTreeTable::headerWidget" ref="fa8204f217f77725f7e243ece08e5ddb" 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>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the header widget. 
<p>
This is the widget that contains the column headers. 
</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&nbsp;<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>