File: classWt_1_1WTableCell.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 (172 lines) | stat: -rw-r--r-- 11,730 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
<!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::WTableCell 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_1WTableCell.html">WTableCell</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WTableCell Class Reference</h1><!-- doxytag: class="Wt::WTableCell" --><!-- doxytag: inherits="Wt::WContainerWidget" -->A container widget that represents a cell in a table.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WTableCell&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTableCell:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTableCell__inherit__graph.png" border="0" usemap="#Wt_1_1WTableCell__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTableCell__inherit__map">
<area shape="rect" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets." alt="" coords="5,304,157,331"><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="11,229,152,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="20,155,143,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="33,80,129,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="33,5,129,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WTableCell-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">void&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableCell.html#e14b338d8395de33d93f7a28ef2b3edd">setRowSpan</a> (int rowSpan)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the row span.  <a href="#e14b338d8395de33d93f7a28ef2b3edd"></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_1WTableCell.html#d2a5d47f9ae33fc3a0bcba6bd84ddd7b">rowSpan</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the row span.  <a href="#d2a5d47f9ae33fc3a0bcba6bd84ddd7b"></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_1WTableCell.html#0f4912b4c023b78e6de41561e2e0a62a">setColumnSpan</a> (int colSpan)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the column span.  <a href="#0f4912b4c023b78e6de41561e2e0a62a"></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_1WTableCell.html#885083e7e30a3d76f33c39847dc3a6bb">columnSpan</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column span.  <a href="#885083e7e30a3d76f33c39847dc3a6bb"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="50e770e21680477b17057056cf94d10b"></a><!-- doxytag: member="Wt::WTableCell::row" ref="50e770e21680477b17057056cf94d10b" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableCell.html#50e770e21680477b17057056cf94d10b">row</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the row index of this cell. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="2c1860eb33dbb70381eef117790862fa"></a><!-- doxytag: member="Wt::WTableCell::column" ref="2c1860eb33dbb70381eef117790862fa" args="() const " -->
int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableCell.html#2c1860eb33dbb70381eef117790862fa">column</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the column index of this cell. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="ee883c3bb465b97551f00947adb05a77"></a><!-- doxytag: member="Wt::WTableCell::table" ref="ee883c3bb465b97551f00947adb05a77" args="() const " -->
<a class="el" href="classWt_1_1WTable.html">WTable</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableCell.html#ee883c3bb465b97551f00947adb05a77">table</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the table to which this cell belongs. <br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A container widget that represents a cell in a table. 
<p>
A <a class="el" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid.">WTable</a> provides a table of WTableCell container widgets. A WTableCell may overspan more than one grid location in the table, by specifying a <a class="el" href="classWt_1_1WTableCell.html#e14b338d8395de33d93f7a28ef2b3edd">rowSpan </a> and <a class="el" href="classWt_1_1WTableCell.html#0f4912b4c023b78e6de41561e2e0a62a">columnSpan </a>. Table cells at overspanned positions are hidden. You cannot directly create a WTableCell, instead, they are created automatically by a table.<p>
A WTableCell acts as any other <a class="el" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">WContainerWidget</a>, except that both the vertical and horizontal alignment of contents may be specified by <a class="el" href="classWt_1_1WContainerWidget.html#ba13c9e62c74bcba53519ee9cf41f40a" title="Specifies how child widgets must be aligned within the container.">setContentAlignment()</a>.<p>
<h3>CSS</h3>
<p>
The widget corresponds to the HTML <code>&lt;td&gt;</code> or <code>&lt;th&gt;</code> tag, depending on whether the cell is a plain cell or a header cell. The widget does not provide styling, and can be styled using inline or external CSS as appropriate.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html" title="A container widget which provides layout of children in a table grid.">WTable</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="e14b338d8395de33d93f7a28ef2b3edd"></a><!-- doxytag: member="Wt::WTableCell::setRowSpan" ref="e14b338d8395de33d93f7a28ef2b3edd" args="(int rowSpan)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableCell::setRowSpan           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>rowSpan</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the row span. 
<p>
The row span indicates how many table rows this <a class="el" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">WTableCell</a> overspans. By default, a <a class="el" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">WTableCell</a> has a row span of 1, only occupying its own grid cell. A row span greater than 1 indicates that table cells to the right of this one are overspanned. 
</div>
</div><p>
<a class="anchor" name="d2a5d47f9ae33fc3a0bcba6bd84ddd7b"></a><!-- doxytag: member="Wt::WTableCell::rowSpan" ref="d2a5d47f9ae33fc3a0bcba6bd84ddd7b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTableCell::rowSpan           </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 row span. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableCell.html#e14b338d8395de33d93f7a28ef2b3edd" title="Sets the row span.">setRowSpan(int rowSpan)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0f4912b4c023b78e6de41561e2e0a62a"></a><!-- doxytag: member="Wt::WTableCell::setColumnSpan" ref="0f4912b4c023b78e6de41561e2e0a62a" args="(int colSpan)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WTableCell::setColumnSpan           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>colSpan</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the column span. 
<p>
The column span indicates how many table columns this <a class="el" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">WTableCell</a> overspans. By default, a <a class="el" href="classWt_1_1WTableCell.html" title="A container widget that represents a cell in a table.">WTableCell</a> has a column span of 1, only occupying its own grid cell. A column span greater than 1 indicates that table cells below this one are overspanned. 
</div>
</div><p>
<a class="anchor" name="885083e7e30a3d76f33c39847dc3a6bb"></a><!-- doxytag: member="Wt::WTableCell::columnSpan" ref="885083e7e30a3d76f33c39847dc3a6bb" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WTableCell::columnSpan           </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 column span. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableCell.html#0f4912b4c023b78e6de41561e2e0a62a" title="Sets the column span.">setColumnSpan(int colSpan)</a> </dd></dl>

</div>
</div><p>
</div>
<hr size="1"><address style="align: right;"><small>
Generated on Fri Mar 26 17:12:07 2010 for <a href="http://www.webtoolkit.eu/wt/">Wt</a> by&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>