File: classWt_1_1WFormWidget.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 (403 lines) | stat: -rw-r--r-- 26,124 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
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
<!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::WFormWidget 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_1WFormWidget.html">WFormWidget</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WFormWidget Class Reference</h1><!-- doxytag: class="Wt::WFormWidget" --><!-- doxytag: inherits="Wt::WInteractWidget" -->An abstract widget that corresponds to an HTML form element.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WFormWidget&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WFormWidget:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WFormWidget__inherit__graph.png" border="0" usemap="#Wt_1_1WFormWidget__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WFormWidget__inherit__map">
<area shape="rect" href="classWt_1_1WAbstractToggleButton.html" title="An abstract base class for radio buttons and check boxes." alt="" coords="109,379,291,405"><area shape="rect" href="classWt_1_1WComboBox.html" title="A widget that provides a drop&#45;down combo&#45;box control." alt="" coords="315,379,435,405"><area shape="rect" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit." alt="" coords="459,379,563,405"><area shape="rect" href="classWt_1_1WPushButton.html" title="A widget that represents a push button." alt="" coords="587,379,712,405"><area shape="rect" href="classWt_1_1WTextArea.html" title="A widget that provides a multi&#45;line edit." alt="" coords="736,379,845,405"><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="440,229,581,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="449,155,572,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="463,80,559,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="463,5,559,32"><area shape="rect" href="classWt_1_1WCheckBox.html" title="A user control that represents a check box." alt="" coords="5,453,123,480"><area shape="rect" href="classWt_1_1WRadioButton.html" title="A user control that represents a radio button." alt="" coords="147,453,275,480"><area shape="rect" href="classWt_1_1WSelectionBox.html" title="A selection box allows selection from a list of options." alt="" coords="308,453,441,480"><area shape="rect" href="classWt_1_1WTextEdit.html" title="A rich&#45;text XHTML editor." alt="" coords="739,453,843,480"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WFormWidget-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="anchor" name="63194da5d63a46188b38bbda2936cf61"></a><!-- doxytag: member="Wt::WFormWidget::WFormWidget" ref="63194da5d63a46188b38bbda2936cf61" args="(WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#63194da5d63a46188b38bbda2936cf61">WFormWidget</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 WFormWidget with an optional parent. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#f9027662449d08a70e361611f6fcf4c7">~WFormWidget</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Destructor.  <a href="#f9027662449d08a70e361611f6fcf4c7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLabel.html">WLabel</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#82f0eaf7fb35132644b429e2b3b8930f">label</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the label associated with this widget.  <a href="#82f0eaf7fb35132644b429e2b3b8930f"></a><br></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_1WFormWidget.html#f7db6da14a0530408a7b68668d0d11ff">setHidden</a> (bool hidden)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the hidden state of this widget.  <a href="#f7db6da14a0530408a7b68668d0d11ff"></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_1WFormWidget.html#a773d16013d6959149ce5081e84b259c">setValidator</a> (<a class="el" href="classWt_1_1WValidator.html">WValidator</a> *validator)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets a validator for this field.  <a href="#a773d16013d6959149ce5081e84b259c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4643be79e2c92bc448ce46e7d314335b"></a><!-- doxytag: member="Wt::WFormWidget::validator" ref="4643be79e2c92bc448ce46e7d314335b" args="() const " -->
<a class="el" href="classWt_1_1WValidator.html">WValidator</a> *&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#4643be79e2c92bc448ce46e7d314335b">validator</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the validator. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7960606393d6158abb4a2d8c9d8fd2ef"></a><!-- doxytag: member="Wt::WFormWidget::validate" ref="7960606393d6158abb4a2d8c9d8fd2ef" args="()" -->
virtual <a class="el" href="classWt_1_1WValidator.html#638a1feefca259ea2f806a8add2d18a3">WValidator::State</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#7960606393d6158abb4a2d8c9d8fd2ef">validate</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Validates the field. <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_1WFormWidget.html#d26d15f452d47832a4467608977f03f5">setEnabled</a> (bool enabled)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets whether the widget is enabled.  <a href="#d26d15f452d47832a4467608977f03f5"></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_1WFormWidget.html#fe33f5c3658ddbd08fec9f6c203c578b">setFocus</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Gives focus to this widget.  <a href="#fe33f5c3658ddbd08fec9f6c203c578b"></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_1WFormWidget.html#353ae79a10748c870f1fa2ce1f174eaa">setReadOnly</a> (bool readOnly)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the element read-only.  <a href="#353ae79a10748c870f1fa2ce1f174eaa"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">bool&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#06ffc301c0cfb7f9da4c74deb469282a">isReadOnly</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns whether the form element is read-only.  <a href="#06ffc301c0cfb7f9da4c74deb469282a"></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_1WFormWidget.html#92de7a4d9ca6796607dc9fd26f608436">setEmptyText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;emptyText)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the empty text to be shown when the field is empty.  <a href="#92de7a4d9ca6796607dc9fd26f608436"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#0f9f7ac3c423521f9ab0df855704eb71">emptyText</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the empty text to be shown when the field is empty.  <a href="#0f9f7ac3c423521f9ab0df855704eb71"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5216ba1594b5dc525cc47cad593c7ba8"></a><!-- doxytag: member="Wt::WFormWidget::changed" ref="5216ba1594b5dc525cc47cad593c7ba8" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#5216ba1594b5dc525cc47cad593c7ba8">changed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the value was changed. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="4f7fcabf3e2f51b884230c179ee52137"></a><!-- doxytag: member="Wt::WFormWidget::selected" ref="4f7fcabf3e2f51b884230c179ee52137" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#4f7fcabf3e2f51b884230c179ee52137">selected</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when ?? <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="5158413489fa4721d4689cc4639c914e"></a><!-- doxytag: member="Wt::WFormWidget::blurred" ref="5158413489fa4721d4689cc4639c914e" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#5158413489fa4721d4689cc4639c914e">blurred</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the widget lost focus. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe56345bd7225852e2f8ef92bc048f6a"></a><!-- doxytag: member="Wt::WFormWidget::focussed" ref="fe56345bd7225852e2f8ef92bc048f6a" args="()" -->
<a class="el" href="classWt_1_1EventSignal.html">EventSignal</a> &amp;&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WFormWidget.html#fe56345bd7225852e2f8ef92bc048f6a">focussed</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Signal emitted when the widget recieved focus. <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_1WFormWidget.html#503448cefdd06c5fe18bf13e911e8bb8">enableAjax</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Progresses to an Ajax-enabled widget.  <a href="#503448cefdd06c5fe18bf13e911e8bb8"></a><br></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_1WFormWidget.html#ff5d72ac52040b97a77c21b0b38d44c8">propagateSetEnabled</a> (bool enabled)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Propagates that a widget was enabled or disabled through children.  <a href="#ff5d72ac52040b97a77c21b0b38d44c8"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
An abstract widget that corresponds to an HTML form element. 
<p>
A WFormWidget may receive focus, can be disabled, and can have a label that acts as proxy for getting focus. It provides signals which reflect changes to its value, or changes to its focus.<p>
Form widgets also have built-in support for validation, using <a class="el" href="classWt_1_1WFormWidget.html#a773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator(WValidator *)</a>. If the validator provide client-side validation, then an invalid validation state is reflected using the style class <code>"Wt-invalid"</code>. All validators provided by Wt implement client-side validation.<p>
On the server-side, use <a class="el" href="classWt_1_1WFormWidget.html#7960606393d6158abb4a2d8c9d8fd2ef" title="Validates the field.">validate()</a> method to validate the content using a validator previously set. <hr><h2>Constructor &amp; Destructor Documentation</h2>
<a class="anchor" name="f9027662449d08a70e361611f6fcf4c7"></a><!-- doxytag: member="Wt::WFormWidget::~WFormWidget" ref="f9027662449d08a70e361611f6fcf4c7" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">Wt::WFormWidget::~WFormWidget           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Destructor. 
<p>
If a label was associated with the widget, its buddy is reset to <code>0</code>. 
</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="82f0eaf7fb35132644b429e2b3b8930f"></a><!-- doxytag: member="Wt::WFormWidget::label" ref="82f0eaf7fb35132644b429e2b3b8930f" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLabel.html">WLabel</a>* Wt::WFormWidget::label           </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 label associated with this widget. 
<p>
Returns the label (if there is one) that acts as a proxy for this widget.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLabel.html#f468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">WLabel::setBuddy(WFormWidget *)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="f7db6da14a0530408a7b68668d0d11ff"></a><!-- doxytag: member="Wt::WFormWidget::setHidden" ref="f7db6da14a0530408a7b68668d0d11ff" args="(bool hidden)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setHidden           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>hidden</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the hidden state of this widget. 
<p>
If the widget has a label, it is hidden and shown together with this widget. 
<p>Reimplemented from <a class="el" href="classWt_1_1WWebWidget.html#bf00d84015803f7553c9e6650dc10bd4">Wt::WWebWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="a773d16013d6959149ce5081e84b259c"></a><!-- doxytag: member="Wt::WFormWidget::setValidator" ref="a773d16013d6959149ce5081e84b259c" args="(WValidator *validator)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setValidator           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WValidator.html">WValidator</a> *&nbsp;</td>
          <td class="paramname"> <em>validator</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets a validator for this field. 
<p>
The validator is used to validate the current input.<p>
If the validator has no parent yet, then ownership is transferred to the form field, and thus the validator will be deleted together with the form field.<p>
The default value is <code>0</code>.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WFormWidget.html#7960606393d6158abb4a2d8c9d8fd2ef" title="Validates the field.">validate()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="d26d15f452d47832a4467608977f03f5"></a><!-- doxytag: member="Wt::WFormWidget::setEnabled" ref="d26d15f452d47832a4467608977f03f5" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setEnabled           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enabled</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets whether the widget is enabled. 
<p>
A widget that is disabled cannot receive focus or user interaction.<p>
This is the opposite of <a class="el" href="classWt_1_1WWebWidget.html#0d73f278ece864ab5322e92ff5f6de6c" title="Sets whether the widget is disabled.">setDisabled()</a>. 
</div>
</div><p>
<a class="anchor" name="fe33f5c3658ddbd08fec9f6c203c578b"></a><!-- doxytag: member="Wt::WFormWidget::setFocus" ref="fe33f5c3658ddbd08fec9f6c203c578b" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setFocus           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Gives focus to this widget. 
<p>
Giving focus to an input element only works when JavaScript is enabled. 
</div>
</div><p>
<a class="anchor" name="353ae79a10748c870f1fa2ce1f174eaa"></a><!-- doxytag: member="Wt::WFormWidget::setReadOnly" ref="353ae79a10748c870f1fa2ce1f174eaa" args="(bool readOnly)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setReadOnly           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>readOnly</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the element read-only. 
<p>
A read-only form element cannot be edited, but the contents can still be selected.<p>
By default, a form element area is not read-only.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WFormWidget.html#d26d15f452d47832a4467608977f03f5" title="Sets whether the widget is enabled.">setEnabled()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="06ffc301c0cfb7f9da4c74deb469282a"></a><!-- doxytag: member="Wt::WFormWidget::isReadOnly" ref="06ffc301c0cfb7f9da4c74deb469282a" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">bool Wt::WFormWidget::isReadOnly           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns whether the form element is read-only. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WFormWidget.html#353ae79a10748c870f1fa2ce1f174eaa" title="Sets the element read-only.">setReadOnly()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="92de7a4d9ca6796607dc9fd26f608436"></a><!-- doxytag: member="Wt::WFormWidget::setEmptyText" ref="92de7a4d9ca6796607dc9fd26f608436" args="(const WString &amp;emptyText)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::setEmptyText           </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&nbsp;</td>
          <td class="paramname"> <em>emptyText</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the empty text to be shown when the field is empty. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WFormWidget.html#0f9f7ac3c423521f9ab0df855704eb71" title="Returns the empty text to be shown when the field is empty.">emptyText()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="0f9f7ac3c423521f9ab0df855704eb71"></a><!-- doxytag: member="Wt::WFormWidget::emptyText" ref="0f9f7ac3c423521f9ab0df855704eb71" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const <a class="el" href="classWt_1_1WString.html">WString</a>&amp; Wt::WFormWidget::emptyText           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [inline]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the empty text to be shown when the field is empty. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WFormWidget.html#92de7a4d9ca6796607dc9fd26f608436" title="Sets the empty text to be shown when the field is empty.">setEmptyText()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="503448cefdd06c5fe18bf13e911e8bb8"></a><!-- doxytag: member="Wt::WFormWidget::enableAjax" ref="503448cefdd06c5fe18bf13e911e8bb8" args="()" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::enableAjax           </td>
          <td>(</td>
          <td class="paramname">          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Progresses to an Ajax-enabled widget. 
<p>
This method is called when the progressive bootstrap method is used, and support for AJAX has been detected. The default behavior will upgrade the widget's event handling to use AJAX instead of full page reloads, and propagate the call to its children.<p>
You may want to reimplement this method if you want to make changes to widget when AJAX is enabled. You should always call the base implementation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WApplication.html#78016406c4746c56b2c2ffce7c5e181f" title="Progresses to an Ajax-enabled user interface.">WApplication::enableAjax()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWebWidget.html#2893433f4aa1d6775875f1ebddd7c5ba">Wt::WWebWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="ff5d72ac52040b97a77c21b0b38d44c8"></a><!-- doxytag: member="Wt::WFormWidget::propagateSetEnabled" ref="ff5d72ac52040b97a77c21b0b38d44c8" args="(bool enabled)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WFormWidget::propagateSetEnabled           </td>
          <td>(</td>
          <td class="paramtype">bool&nbsp;</td>
          <td class="paramname"> <em>enabled</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td><code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Propagates that a widget was enabled or disabled through children. 
<p>
When enabling or disabling a widget, you usually also want to disable contained children. This method is called by <a class="el" href="classWt_1_1WWebWidget.html#0d73f278ece864ab5322e92ff5f6de6c" title="Sets whether the widget is disabled.">setDisabled()</a> to propagate its state to all children.<p>
You may want to reimplement this method if they wish to render differently when a widget is disabled. The default implementation will propagate the signal to all children. 
<p>Reimplemented from <a class="el" href="classWt_1_1WWebWidget.html#a9655ae1c50b9c979b6fe93f9d0064d3">Wt::WWebWidget</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&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>