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
|
<!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::WTableColumn 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_1WTableColumn.html">WTableColumn</a>
</div>
</div>
<div class="contents">
<h1>Wt::WTableColumn Class Reference</h1><!-- doxytag: class="Wt::WTableColumn" --><!-- doxytag: inherits="Wt::WObject" -->A table column.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WTableColumn></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WTableColumn:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WTableColumn__inherit__graph.png" border="0" usemap="#Wt_1_1WTableColumn__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WTableColumn__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="23,5,119,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WTableColumn-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_1WTableColumn.html#ec83d3ab2ad075209fed09e5ee80df64">table</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the table to which this column belongs. <a href="#ec83d3ab2ad075209fed09e5ee80df64"></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_1WTableColumn.html#75bdc9289edad19c01e7698414db6147">columnNum</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the column number of this column in the table. <a href="#75bdc9289edad19c01e7698414db6147"></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_1WTableColumn.html#5c5c0bb9110387e389e5151cbeaab81e">setWidth</a> (const <a class="el" href="classWt_1_1WLength.html">WLength</a> &width)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the column width. <a href="#5c5c0bb9110387e389e5151cbeaab81e"></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_1WTableColumn.html#4a527b0b4294c5a9b367eb5b6b653812">width</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the column width. <a href="#4a527b0b4294c5a9b367eb5b6b653812"></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_1WTableColumn.html#ae7b55f11d53043c2512536144eab42d">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 column. <a href="#ae7b55f11d53043c2512536144eab42d"></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_1WTableColumn.html#da5fb02b5164ebf3cd7f0e5abe98cc53">styleClass</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the CSS style class for this column. <a href="#da5fb02b5164ebf3cd7f0e5abe98cc53"></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_1WTableColumn.html#319304807e13d2a15ea40384f9080033">setId</a> (const std::string &id)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the CSS Id. <a href="#319304807e13d2a15ea40384f9080033"></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_1WTableColumn.html#bd8af1a254554ad9bc465bccb4411b02">id</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the (unique) identifier for this object. <a href="#bd8af1a254554ad9bc465bccb4411b02"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A table column.
<p>
A WTableColumn is returned by <a class="el" href="classWt_1_1WTable.html#37dc3995a309d32a0e4bf857596df00e" title="Returns the column object for the given column.">WTable::columnAt()</a> and managing various properties of a single column in a table (it is however not a widget).<p>
You cannot access table cells through the column. 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 column corresponds to the HTML <code><col></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_1WTableRow.html" title="A table row.">WTableRow</a> </dd></dl>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="ec83d3ab2ad075209fed09e5ee80df64"></a><!-- doxytag: member="Wt::WTableColumn::table" ref="ec83d3ab2ad075209fed09e5ee80df64" 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::WTableColumn::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 column 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="75bdc9289edad19c01e7698414db6147"></a><!-- doxytag: member="Wt::WTableColumn::columnNum" ref="75bdc9289edad19c01e7698414db6147" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">int Wt::WTableColumn::columnNum </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the column number of this column 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="5c5c0bb9110387e389e5151cbeaab81e"></a><!-- doxytag: member="Wt::WTableColumn::setWidth" ref="5c5c0bb9110387e389e5151cbeaab81e" args="(const WLength &width)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableColumn::setWidth </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>
<td> ) </td>
<td></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Sets the column width.
<p>
The default column width 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_1WTableColumn.html#4a527b0b4294c5a9b367eb5b6b653812" title="Returns the column width.">width()</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="4a527b0b4294c5a9b367eb5b6b653812"></a><!-- doxytag: member="Wt::WTableColumn::width" ref="4a527b0b4294c5a9b367eb5b6b653812" 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::WTableColumn::width </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const</td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns the column width.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableColumn.html#5c5c0bb9110387e389e5151cbeaab81e" title="Sets the column width.">setWidth(const WLength&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="ae7b55f11d53043c2512536144eab42d"></a><!-- doxytag: member="Wt::WTableColumn::setStyleClass" ref="ae7b55f11d53043c2512536144eab42d" args="(const WString &style)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableColumn::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 column.
<p>
The style is inherited by all table cells in this column.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableColumn.html#da5fb02b5164ebf3cd7f0e5abe98cc53" title="Returns the CSS style class for this column.">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="da5fb02b5164ebf3cd7f0e5abe98cc53"></a><!-- doxytag: member="Wt::WTableColumn::styleClass" ref="da5fb02b5164ebf3cd7f0e5abe98cc53" 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::WTableColumn::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 column.
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WTableColumn.html#da5fb02b5164ebf3cd7f0e5abe98cc53" title="Returns the CSS style class for this column.">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="319304807e13d2a15ea40384f9080033"></a><!-- doxytag: member="Wt::WTableColumn::setId" ref="319304807e13d2a15ea40384f9080033" args="(const std::string &id)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WTableColumn::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="bd8af1a254554ad9bc465bccb4411b02"></a><!-- doxytag: member="Wt::WTableColumn::id" ref="bd8af1a254554ad9bc465bccb4411b02" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">const std::string Wt::WTableColumn::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>
|