File: classWt_1_1WTreeTableNode.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 (191 lines) | stat: -rw-r--r-- 11,426 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
<!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::WTreeTableNode 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_1WTreeTableNode.html">WTreeTableNode</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WTreeTableNode Class Reference</h1><!-- doxytag: class="Wt::WTreeTableNode" --><!-- doxytag: inherits="Wt::WTreeNode" -->A specialized tree node which allows additional data to be associated with each node.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WTreeTableNode&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTreeTableNode:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTreeTableNode__inherit__graph.png" border="0" usemap="#Wt_1_1WTreeTableNode__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTreeTableNode__inherit__map">
<area shape="rect" href="classWt_1_1WTreeNode.html" title="A single node in a tree." alt="" coords="29,229,141,256"><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_1WTreeTableNode-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_1WTreeTableNode.html#d5c6c8ff8d8d83d386271594444a2691">WTreeTableNode</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;labelText, <a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *labelIcon=0, <a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> *parentNode=0)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Creates a new tree table node.  <a href="#d5c6c8ff8d8d83d386271594444a2691"></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_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36">setColumnWidget</a> (int column, <a class="el" href="classWt_1_1WWidget.html">WWidget</a> *item)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets a widget to be displayed in the given column for this node.  <a href="#136a48e8cda5e0abbfd0e0d8cf008b36"></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_1WTreeTableNode.html#5e9f7b5afb4d92175a3d6307727eee81">columnWidget</a> (int column)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget set for a column.  <a href="#5e9f7b5afb4d92175a3d6307727eee81"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="e8a0182bc71c150bc1e39bb702239502"></a><!-- doxytag: member="Wt::WTreeTableNode::addChildNode" ref="e8a0182bc71c150bc1e39bb702239502" args="(WTreeNode *node)" -->
virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTableNode.html#e8a0182bc71c150bc1e39bb702239502">addChildNode</a> (<a class="el" href="classWt_1_1WTreeNode.html">WTreeNode</a> *node)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Adds a child node. <br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTreeTableNode.html#afe8ea0231f569644ee9e7a54deb13a9">setTable</a> (<a class="el" href="classWt_1_1WTreeTable.html">WTreeTable</a> *table)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the table for this node.  <a href="#afe8ea0231f569644ee9e7a54deb13a9"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A specialized tree node which allows additional data to be associated with each node. 
<p>
Additional data for each column can be set using <a class="el" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget()</a>.<p>
<h3>CSS</h3>
<p>
This widget is styled by the current CSS theme. See <a class="el" href="classWt_1_1WTreeNode.html" title="A single node in a tree.">WTreeNode</a> for details.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html" title="A single node in a tree.">WTreeNode</a>, <a class="el" href="classWt_1_1WTreeTable.html" title="A table with a navigatable tree in the first column.">WTreeTable</a> </dd></dl>
<hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="d5c6c8ff8d8d83d386271594444a2691"></a><!-- doxytag: member="Wt::WTreeTableNode::WTreeTableNode" ref="d5c6c8ff8d8d83d386271594444a2691" args="(const WString &amp;labelText, WIconPair *labelIcon=0, WTreeTableNode *parentNode=0)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WTreeTableNode::WTreeTableNode           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>labelText</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WIconPair.html">WIconPair</a> *&nbsp;</td>
          <td class="paramname"> <em>labelIcon</em> = <code>0</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeTableNode.html">WTreeTableNode</a> *&nbsp;</td>
          <td class="paramname"> <em>parentNode</em> = <code>0</code></td><td>&nbsp;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td><td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Creates a new tree table node. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTreeNode.html#169f429e0f0e1fe6d0874f9db72d041a" title="Creates a tree node with the given label.">WTreeNode::WTreeNode()</a> </dd></dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="136a48e8cda5e0abbfd0e0d8cf008b36"></a><!-- doxytag: member="Wt::WTreeTableNode::setColumnWidget" ref="136a48e8cda5e0abbfd0e0d8cf008b36" args="(int column, WWidget *item)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeTableNode::setColumnWidget           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> *&nbsp;</td>
          <td class="paramname"> <em>item</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 a widget to be displayed in the given column for this node. 
<p>
Columns are counted starting from 0 for the tree list itself, and 1 for the first additional column. 
</div>
</div><p>
<a class="anchor" name="5e9f7b5afb4d92175a3d6307727eee81"></a><!-- doxytag: member="Wt::WTreeTableNode::columnWidget" ref="5e9f7b5afb4d92175a3d6307727eee81" args="(int column)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WWidget.html">WWidget</a> * Wt::WTreeTableNode::columnWidget           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>column</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget set for a column. 
<p>
Returns the widget set previously using <a class="el" href="classWt_1_1WTreeTableNode.html#136a48e8cda5e0abbfd0e0d8cf008b36" title="Sets a widget to be displayed in the given column for this node.">setColumnWidget()</a>, or <code>0</code> if no widget was previously set. 
</div>
</div><p>
<a class="anchor" name="afe8ea0231f569644ee9e7a54deb13a9"></a><!-- doxytag: member="Wt::WTreeTableNode::setTable" ref="afe8ea0231f569644ee9e7a54deb13a9" args="(WTreeTable *table)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTreeTableNode::setTable           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WTreeTable.html">WTreeTable</a> *&nbsp;</td>
          <td class="paramname"> <em>table</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the table for this node. 
<p>
This method is called when the node is inserted, directly, or indirectly into a table.<p>
You may want to reimplement this method if you wish to customize the behaviour of the node depending on table properties. For example to only associate data with the node when the tree list is actually used inside a table. 
</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>