File: classWt_1_1WLineEdit.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 (384 lines) | stat: -rw-r--r-- 26,816 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
<!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::WLineEdit 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_1WLineEdit.html">WLineEdit</a>
  </div>
</div>
<div class="contents">
<h1>Wt::WLineEdit Class Reference</h1><!-- doxytag: class="Wt::WLineEdit" --><!-- doxytag: inherits="Wt::WFormWidget" -->A widget that provides a single line edit.  
<a href="#_details">More...</a>
<p>
<code>#include &lt;Wt/WLineEdit&gt;</code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WLineEdit:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WLineEdit__inherit__graph.png" border="0" usemap="#Wt_1_1WLineEdit__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WLineEdit__inherit__map">
<area shape="rect" href="classWt_1_1WFormWidget.html" title="An abstract widget that corresponds to an HTML form element." alt="" coords="12,304,140,331"><area shape="rect" href="classWt_1_1WInteractWidget.html" title="An abstract widget that can receive user&#45;interface interaction." alt="" coords="5,229,147,256"><area shape="rect" href="classWt_1_1WWebWidget.html" title="A base class for widgets with an HTML counterpart." alt="" coords="15,155,137,181"><area shape="rect" href="classWt_1_1WWidget.html" title="The abstract base class for a user&#45;interface component." alt="" coords="28,80,124,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="28,5,124,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>

<p>
<a href="classWt_1_1WLineEdit-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 Types</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">enum &nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">EchoMode</a> { <a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c4ebd4885d3cb474d78a43c414d71181d">Normal</a>, 
<a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159cd8804194006eac81d4072805a0d74666">Password</a>
 }</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Enumeration that describes how the contents is displayed.  <a href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">More...</a><br></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="287f11cd278eccfd293c7cc715f72b65"></a><!-- doxytag: member="Wt::WLineEdit::WLineEdit" ref="287f11cd278eccfd293c7cc715f72b65" args="(WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#287f11cd278eccfd293c7cc715f72b65">WLineEdit</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 line edit with empty content and optional parent. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="40fe6e402a904911e7389e4e16498b05"></a><!-- doxytag: member="Wt::WLineEdit::WLineEdit" ref="40fe6e402a904911e7389e4e16498b05" args="(const WString &amp;content, WContainerWidget *parent=0)" -->
&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#40fe6e402a904911e7389e4e16498b05">WLineEdit</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;content, <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 line edit with given content and optional parent. <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_1WLineEdit.html#4c6c5a52deefa5a246e0638f1572d0d8">setTextSize</a> (int chars)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specifies the width of the line edit in number of characters.  <a href="#4c6c5a52deefa5a246e0638f1572d0d8"></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_1WLineEdit.html#f2886f31812bd56dea9897606546f5f6">textSize</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current width of the line edit in number of characters.  <a href="#f2886f31812bd56dea9897606546f5f6"></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_1WLineEdit.html#ddb99c6ab5483836adf44a2706a410af">setText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the content of the line edit.  <a href="#ddb99c6ab5483836adf44a2706a410af"></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_1WLineEdit.html#c74b58779cb635898cac13e81d8b0c7a">text</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the current content.  <a href="#c74b58779cb635898cac13e81d8b0c7a"></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_1WLineEdit.html#aeca334d8a47be029b6a44912b01ed5d">setMaxLength</a> (int length)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Specifies the maximum length of text that can be entered.  <a href="#aeca334d8a47be029b6a44912b01ed5d"></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_1WLineEdit.html#0f5d01ba6e862a856b283d600e65e6ff">maxLength</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the maximum length of text that can be entered.  <a href="#0f5d01ba6e862a856b283d600e65e6ff"></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_1WLineEdit.html#27c9bc232bea0ab76ee266be3325a10e">setEchoMode</a> (<a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">EchoMode</a> echoMode)</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Sets the echo mode.  <a href="#27c9bc232bea0ab76ee266be3325a10e"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">EchoMode</a>&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#7454516e7195cecf2f990af35b1470d7">echoMode</a> () const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the echo mode.  <a href="#7454516e7195cecf2f990af35b1470d7"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="7eb722b7f1657a8714280533d8f25b0c"></a><!-- doxytag: member="Wt::WLineEdit::validate" ref="7eb722b7f1657a8714280533d8f25b0c" args="()" -->
<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_1WLineEdit.html#7eb722b7f1657a8714280533d8f25b0c">validate</a> ()</td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Validates the field. <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 int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#f347d0ad651b76abea5ee5dcae295db1">boxPadding</a> (<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget's built-in padding.  <a href="#f347d0ad651b76abea5ee5dcae295db1"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual int&nbsp;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WLineEdit.html#337dcba8f79f886b86c0d9bf7b721c75">boxBorder</a> (<a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a> orientation) const </td></tr>

<tr><td class="mdescLeft">&nbsp;</td><td class="mdescRight">Returns the widget's built-in border width.  <a href="#337dcba8f79f886b86c0d9bf7b721c75"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A widget that provides a single line edit. 
<p>
To act upon text changes, connect a slot to the <a class="el" href="classWt_1_1WFormWidget.html#5216ba1594b5dc525cc47cad593c7ba8" title="Signal emitted when the value was changed.">changed()</a> signal. This signal is emitted when the user changed the content, and subsequently removes the focus from the line edit.<p>
To act upon editing, connect a slot to the <a class="el" href="classWt_1_1WInteractWidget.html#7602bfbe38090d4acca674afc02f15c8" title="Event signal emitted when a keyboard key is released.">keyWentUp()</a> signal.<p>
At all times, the current content may be accessed with the <a class="el" href="classWt_1_1WLineEdit.html#c74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">text()</a> method.<p>
You may specify a maximum length for the input using <a class="el" href="classWt_1_1WLineEdit.html#aeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength()</a>. If you wish to provide more detailed input validation, you may set a validator using the <a class="el" href="classWt_1_1WFormWidget.html#a773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator(WValidator *)</a> method. Validators provide, in general, both client-side validation (as visual feed-back only) and server-side validation when calling <a class="el" href="classWt_1_1WLineEdit.html#7eb722b7f1657a8714280533d8f25b0c" title="Validates the field.">validate()</a>.<p>
Usage example: <div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a> *w = <span class="keyword">new</span> <a class="code" href="classWt_1_1WContainerWidget.html" title="A widget that holds and manages child widgets.">Wt::WContainerWidget</a>();
 <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a> *label = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLabel.html" title="A label for a form field.">Wt::WLabel</a>(<span class="stringliteral">"Age:"</span>, w);
 <a class="code" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">Wt::WLineEdit</a> *edit = <span class="keyword">new</span> <a class="code" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">Wt::WLineEdit</a>(<span class="stringliteral">"13"</span>, w);
 edit-&gt;<a class="code" href="classWt_1_1WFormWidget.html#a773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator</a>(<span class="keyword">new</span> <a class="code" href="classWt_1_1WIntValidator.html" title="A validator that validates integer user input.">Wt::WIntValidator</a>(0, 200));
 label-&gt;<a class="code" href="classWt_1_1WLabel.html#f468c613eab7d184c68fd6ae20978de5" title="Sets the buddy of this label.">setBuddy</a>(edit);
</pre></div><p>
The widget corresponds to the HTML <code>&lt;input type="text"&gt;</code> or <code>&lt;input type="password"&gt;</code> tag.<p>
WLineEdit is an <a class="el" href="classWt_1_1WWidget.html#c78e3af143883334c82031790c87416e">inline </a> widget.<p>
<h3>CSS</h3>
<p>
The emptyText style can be configured via .Wt-edit-emptyText, other styling can be done 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_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a> </dd></dl>
<hr><h2>Member Enumeration Documentation</h2>
<a class="anchor" name="2654d590e41b758cca16739d4bf0159c"></a><!-- doxytag: member="Wt::WLineEdit::EchoMode" ref="2654d590e41b758cca16739d4bf0159c" args="" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">Wt::WLineEdit::EchoMode</a>          </td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Enumeration that describes how the contents is displayed. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#27c9bc232bea0ab76ee266be3325a10e" title="Sets the echo mode.">setEchoMode(EchoMode)</a> </dd></dl>
<dl compact><dt><b>Enumerator: </b></dt><dd>
<table border="0" cellspacing="2" cellpadding="0">
<tr><td valign="top"><em><a class="anchor" name="2654d590e41b758cca16739d4bf0159c4ebd4885d3cb474d78a43c414d71181d"></a><!-- doxytag: member="Normal" ref="2654d590e41b758cca16739d4bf0159c4ebd4885d3cb474d78a43c414d71181d" args="" -->Normal</em>&nbsp;</td><td>
Characters are shown. </td></tr>
<tr><td valign="top"><em><a class="anchor" name="2654d590e41b758cca16739d4bf0159cd8804194006eac81d4072805a0d74666"></a><!-- doxytag: member="Password" ref="2654d590e41b758cca16739d4bf0159cd8804194006eac81d4072805a0d74666" args="" -->Password</em>&nbsp;</td><td>
Hide the contents as for a password. </td></tr>
</table>
</dl>

</div>
</div><p>
<hr><h2>Member Function Documentation</h2>
<a class="anchor" name="4c6c5a52deefa5a246e0638f1572d0d8"></a><!-- doxytag: member="Wt::WLineEdit::setTextSize" ref="4c6c5a52deefa5a246e0638f1572d0d8" args="(int chars)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setTextSize           </td>
          <td>(</td>
          <td class="paramtype">int&nbsp;</td>
          <td class="paramname"> <em>chars</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Specifies the width of the line edit in number of characters. 
<p>
This specifies the width of the line edit that is roughly equivalent with <code>chars</code> characters. This does not limit the maximum length of a string that may be entered, which may be set using <a class="el" href="classWt_1_1WLineEdit.html#aeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength(int)</a>.<p>
The default value is 10. 
</div>
</div><p>
<a class="anchor" name="f2886f31812bd56dea9897606546f5f6"></a><!-- doxytag: member="Wt::WLineEdit::textSize" ref="f2886f31812bd56dea9897606546f5f6" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::textSize           </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 current width of the line edit in number of characters. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#4c6c5a52deefa5a246e0638f1572d0d8" title="Specifies the width of the line edit in number of characters.">setTextSize(int)</a> </dd></dl>

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

<p>
Sets the content of the line edit. 
<p>
The default value is "".<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#c74b58779cb635898cac13e81d8b0c7a" title="Returns the current content.">text()</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="c74b58779cb635898cac13e81d8b0c7a"></a><!-- doxytag: member="Wt::WLineEdit::text" ref="c74b58779cb635898cac13e81d8b0c7a" 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>&amp; Wt::WLineEdit::text           </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 current content. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#ddb99c6ab5483836adf44a2706a410af" title="Sets the content of the line edit.">setText()</a> </dd></dl>

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

<p>
Specifies the maximum length of text that can be entered. 
<p>
A value &lt;= 0 indicates that there is no limit.<p>
The default value is -1. 
</div>
</div><p>
<a class="anchor" name="0f5d01ba6e862a856b283d600e65e6ff"></a><!-- doxytag: member="Wt::WLineEdit::maxLength" ref="0f5d01ba6e862a856b283d600e65e6ff" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::maxLength           </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 maximum length of text that can be entered. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#aeca334d8a47be029b6a44912b01ed5d" title="Specifies the maximum length of text that can be entered.">setMaxLength(int)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="27c9bc232bea0ab76ee266be3325a10e"></a><!-- doxytag: member="Wt::WLineEdit::setEchoMode" ref="27c9bc232bea0ab76ee266be3325a10e" args="(EchoMode echoMode)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WLineEdit::setEchoMode           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">EchoMode</a>&nbsp;</td>
          <td class="paramname"> <em>echoMode</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Sets the echo mode. 
<p>
The default echo mode is Normal. 
</div>
</div><p>
<a class="anchor" name="7454516e7195cecf2f990af35b1470d7"></a><!-- doxytag: member="Wt::WLineEdit::echoMode" ref="7454516e7195cecf2f990af35b1470d7" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WLineEdit.html#2654d590e41b758cca16739d4bf0159c">EchoMode</a> Wt::WLineEdit::echoMode           </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 echo mode. 
<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#27c9bc232bea0ab76ee266be3325a10e" title="Sets the echo mode.">setEchoMode(EchoMode)</a> </dd></dl>

</div>
</div><p>
<a class="anchor" name="f347d0ad651b76abea5ee5dcae295db1"></a><!-- doxytag: member="Wt::WLineEdit::boxPadding" ref="f347d0ad651b76abea5ee5dcae295db1" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::boxPadding           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget's built-in padding. 
<p>
This is used by the layout managers to correct for a built-in padding which interferes with setting a widget's width (or height) to 100%.<p>
A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the padding (the default implementation returns 0).<p>
For form widgets, the padding depends on the specific browser/platform combination, unless an explicit padding is set for the widget.<p>
When setting an explicit padding for the widget using a style class, you will want to reimplement this method to return this padding in case you want to set the widget inside a layout manager.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#337dcba8f79f886b86c0d9bf7b721c75" title="Returns the widget&#39;s built-in border width.">boxBorder()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#b4cfd6bd5bea1a6182731ec79a78792c">Wt::WWidget</a>.</p>

</div>
</div><p>
<a class="anchor" name="337dcba8f79f886b86c0d9bf7b721c75"></a><!-- doxytag: member="Wt::WLineEdit::boxBorder" ref="337dcba8f79f886b86c0d9bf7b721c75" args="(Orientation orientation) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">int Wt::WLineEdit::boxBorder           </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="namespaceWt.html#2a8d45559e16a0185bf61bfad0a67912">Orientation</a>&nbsp;</td>
          <td class="paramname"> <em>orientation</em>          </td>
          <td>&nbsp;)&nbsp;</td>
          <td> const<code> [protected, virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>
Returns the widget's built-in border width. 
<p>
This is used by the layout managers to correct for a built-in border which interferes with setting a widget's width (or height) to 100%.<p>
A layout manager needs to set the width to 100% only for form widgets (<a class="el" href="classWt_1_1WTextArea.html" title="A widget that provides a multi-line edit.">WTextArea</a>, <a class="el" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">WLineEdit</a>, <a class="el" href="classWt_1_1WComboBox.html" title="A widget that provides a drop-down combo-box control.">WComboBox</a>, etc...). Therefore, only for those widgets this needs to return the border width (the default implementation returns 0).<p>
For form widgets, the border width depends on the specific browser/platform combination, unless an explicit border is set for the widget.<p>
When setting an explicit border for the widget using a style class, you will want to reimplement this method to return this border width, in case you want to set the widget inside a layout manager.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WLineEdit.html#f347d0ad651b76abea5ee5dcae295db1" title="Returns the widget&#39;s built-in padding.">boxPadding()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WWidget.html#6bd6a9d01afbc4f96c4ec7dd48db9126">Wt::WWidget</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>