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 364 365 366 367 368 369 370 371
|
<!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::WTableRow 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 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>
</ul>
</div>
<div class="tabs">
<ul>
<li><a href="annotated.html"><span>Class List</span></a></li>
<li><a href="hierarchy.html"><span>Class Hierarchy</span></a></li>
<li><a href="functions.html"><span>Class Members</span></a></li>
</ul>
</div>
<div class="navpath"><a class="el" href="namespaceWt.html">Wt</a>::<a class="el" href="classWt_1_1WTableRow.html">WTableRow</a>
</div>
</div>
<div class="contents">
<h1>Wt::WTableRow Class Reference</h1><!-- doxytag: class="Wt::WTableRow" --><!-- doxytag: inherits="Wt::WObject" -->A table row.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WTableRow></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTableRow:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTableRow__inherit__graph.png" border="0" usemap="#Wt_1_1WTableRow__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTableRow__inherit__map">
<area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="13,5,109,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WTableRow-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"><a class="el" href="classWt_1_1WTable.html">WTable</a> * </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#f06f80cc7f5fc9bdc36cdefa691433d7">table</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the table to which this row belongs. <a href="#f06f80cc7f5fc9bdc36cdefa691433d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#67848b510b4803a2ba3be800de89b7bd">rowNum</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the row number of this row in the table. <a href="#67848b510b4803a2ba3be800de89b7bd"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#ac0b7d156d2f4d3897802b7e9771c1de">setHeight</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &height)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the row height. <a href="#ac0b7d156d2f4d3897802b7e9771c1de"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap 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_1WTableRow.html#71719040fa936136f48a43301301f46e">height</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the row height. <a href="#71719040fa936136f48a43301301f46e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#5ccc6742f7b5e1aa1284fb6f5f62540e">setStyleClass</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &style)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the CSS style class for this row. <a href="#5ccc6742f7b5e1aa1284fb6f5f62540e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#74e64af29ed20db6a6b5cd84e3eb05a3">styleClass</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the CSS style class for this row. <a href="#74e64af29ed20db6a6b5cd84e3eb05a3"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#c9d66838aceb059dfb0b43c250caa6ec">setHidden</a> (bool how)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether the row must be hidden. <a href="#c9d66838aceb059dfb0b43c250caa6ec"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#9f39b7412ea915eec131fef374d8a5e4">isHidden</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the rows is hidden. <a href="#9f39b7412ea915eec131fef374d8a5e4"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#99b3fcea3f7dec12b34d2e0222699010">hide</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Hides the row. <a href="#99b3fcea3f7dec12b34d2e0222699010"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#189bb29f29777795bd0910468e697c4e">show</a> ()</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Shows the row. <a href="#189bb29f29777795bd0910468e697c4e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#d7dbf026ef77f8204a7d49d805fdbb10">setId</a> (const std::string &id)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the CSS Id. <a href="#d7dbf026ef77f8204a7d49d805fdbb10"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual const std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WTableRow.html#c16b8e1246aa646e7dca93c13685a392">id</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the (unique) identifier for this object. <a href="#c16b8e1246aa646e7dca93c13685a392"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A table row.
<p>
A WTableRow is returned by <a class="el" href="classWt_1_1WTable.html#ff46a40881a7d0967d7435d8d479bedb" title="Returns the row object for the given row.">WTable::rowAt()</a> and managing various properties of a single row in a table (it is however not a widget).<p>
You cannot access table cells through the row. Instead, to access table cells, see <a class="el" href="classWt_1_1WTable.html#c4b59af9a44e185edb14e7f1f439d6c4" title="Accesses the table element at the given row and column.">WTable::elementAt()</a>.<p>
A table row corresponds to the HTML <code><tr></code> tag.<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>, <a class="el" href="classWt_1_1WTableColumn.html" title="A table column.">WTableColumn</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="f06f80cc7f5fc9bdc36cdefa691433d7"></a><!-- doxytag: member="Wt::WTableRow::table" ref="f06f80cc7f5fc9bdc36cdefa691433d7" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WTable.html">WTable</a>* Wt::WTableRow::table </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the table to which this row belongs.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#ff46a40881a7d0967d7435d8d479bedb" title="Returns the row object for the given row.">WTable::rowAt()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="67848b510b4803a2ba3be800de89b7bd"></a><!-- doxytag: member="Wt::WTableRow::rowNum" ref="67848b510b4803a2ba3be800de89b7bd" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WTableRow::rowNum </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the row number of this row in the table.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTable.html#ff46a40881a7d0967d7435d8d479bedb" title="Returns the row object for the given row.">WTable::rowAt()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ac0b7d156d2f4d3897802b7e9771c1de"></a><!-- doxytag: member="Wt::WTableRow::setHeight" ref="ac0b7d156d2f4d3897802b7e9771c1de" args="(const WLength &height)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::setHeight </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WLength.html">WLength</a> & </td>
<td class="paramname"> <em>height</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the row height.
<p>
The default row height is <a class="el" href="classWt_1_1WLength.html#0cf39ca4225776879d56ade60320c31a" title="An 'auto' length.">WLength::Auto</a>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#71719040fa936136f48a43301301f46e" title="Returns the row height.">height()</a>, <a class="el" href="classWt_1_1WWidget.html#5bebad8f1582b8bebf01a9ed0ee11972" title="Resizes the widget.">WWidget::resize()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="71719040fa936136f48a43301301f46e"></a><!-- doxytag: member="Wt::WTableRow::height" ref="71719040fa936136f48a43301301f46e" args="() 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::WTableRow::height </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the row height.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#ac0b7d156d2f4d3897802b7e9771c1de" title="Sets the row height.">setHeight(const WLength&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="5ccc6742f7b5e1aa1284fb6f5f62540e"></a><!-- doxytag: member="Wt::WTableRow::setStyleClass" ref="5ccc6742f7b5e1aa1284fb6f5f62540e" args="(const WString &style)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::setStyleClass </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </td>
<td class="paramname"> <em>style</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the CSS style class for this row.
<p>
The style is inherited by all table cells in this row.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#74e64af29ed20db6a6b5cd84e3eb05a3" title="Returns the CSS style class for this row.">styleClass()</a>, <a class="el" href="classWt_1_1WWidget.html#4be23ecf48d5968efb5d926e38e01708" title="Sets (one or more) CSS style classes.">WWidget::setStyleClass()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="74e64af29ed20db6a6b5cd84e3eb05a3"></a><!-- doxytag: member="Wt::WTableRow::styleClass" ref="74e64af29ed20db6a6b5cd84e3eb05a3" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>& Wt::WTableRow::styleClass </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the CSS style class for this row.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#74e64af29ed20db6a6b5cd84e3eb05a3" title="Returns the CSS style class for this row.">styleClass()</a>, <a class="el" href="classWt_1_1WWidget.html#d5a84cacbaa1e4da97f7ba68de060330" title="Returns the CSS style class.">WWidget::styleClass()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c9d66838aceb059dfb0b43c250caa6ec"></a><!-- doxytag: member="Wt::WTableRow::setHidden" ref="c9d66838aceb059dfb0b43c250caa6ec" args="(bool how)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::setHidden </td>
<td>(</td>
<td class="paramtype">bool </td>
<td class="paramname"> <em>how</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets whether the row must be hidden.
<p>
Hide or show the row.<p>
The default value is <code>false</code> (row is not hidden).<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#99b3fcea3f7dec12b34d2e0222699010" title="Hides the row.">hide()</a>, <a class="el" href="classWt_1_1WTableRow.html#189bb29f29777795bd0910468e697c4e" title="Shows the row.">show()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="9f39b7412ea915eec131fef374d8a5e4"></a><!-- doxytag: member="Wt::WTableRow::isHidden" ref="9f39b7412ea915eec131fef374d8a5e4" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">bool Wt::WTableRow::isHidden </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [inline]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns whether the rows is hidden.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#c9d66838aceb059dfb0b43c250caa6ec" title="Sets whether the row must be hidden.">setHidden()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="99b3fcea3f7dec12b34d2e0222699010"></a><!-- doxytag: member="Wt::WTableRow::hide" ref="99b3fcea3f7dec12b34d2e0222699010" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::hide </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Hides the row.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#c9d66838aceb059dfb0b43c250caa6ec" title="Sets whether the row must be hidden.">setHidden()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="189bb29f29777795bd0910468e697c4e"></a><!-- doxytag: member="Wt::WTableRow::show" ref="189bb29f29777795bd0910468e697c4e" args="()" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::show </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Shows the row.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableRow.html#c9d66838aceb059dfb0b43c250caa6ec" title="Sets whether the row must be hidden.">setHidden()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="d7dbf026ef77f8204a7d49d805fdbb10"></a><!-- doxytag: member="Wt::WTableRow::setId" ref="d7dbf026ef77f8204a7d49d805fdbb10" args="(const std::string &id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableRow::setId </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>id</em> </td>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the CSS Id.
<p>
Sets a custom Id. Note that the Id must be unique across the whole widget tree, can only be set right after construction and cannot be changed.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WObject.html#5c5cc1d7aada99baf97d0dc203e42154" title="Returns the (unique) identifier for this object.">WObject::id()</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="c16b8e1246aa646e7dca93c13685a392"></a><!-- doxytag: member="Wt::WTableRow::id" ref="c16b8e1246aa646e7dca93c13685a392" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string Wt::WTableRow::id </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the (unique) identifier for this object.
<p>
For a WWidget, this corresponds to the id of the DOM element that represents the widget. This is not entirely unique, since a <a class="el" href="classWt_1_1WCompositeWidget.html">composite widget</a> shares the same id as its implementation.<p>
By default, the id is auto-generated, unless a custom id is set for a widget using <a class="el" href="classWt_1_1WWidget.html#93ff9d1ca04e733cd54cd40a06775f7e" title="Sets the CSS Id.">WWidget::setId()</a>. The auto-generated id is created by concatenating <a class="el" href="classWt_1_1WObject.html#5cad0cc3f73402de1422747653ece18f" title="Returns the object name.">objectName()</a> with a unique number.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WWidget.html#a2b7078b3b43d53a85e5244b45d504f7" title="Returns a JavaScript expression to the corresponding DOM node.">WWidget::jsRef()</a> </dd></dl>
<p>Reimplemented from <a class="el" href="classWt_1_1WObject.html#5c5cc1d7aada99baf97d0dc203e42154">Wt::WObject</a>.</p>
</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 <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>
|