File: classWt_1_1WDoubleValidator.html

package info (click to toggle)
witty 3.2.1-2%2Bdeb7u1
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 70,436 kB
  • sloc: cpp: 117,095; ansic: 77,999; xml: 7,564; sh: 1,037; perl: 208; makefile: 144; java: 86; sql: 14
file content (389 lines) | stat: -rw-r--r-- 26,531 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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Wt: Wt::WDoubleValidator Class Reference</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">Wt
   &#160;<span id="projectnumber">3.2.1</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.5.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="pages.html"><span>Related&#160;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>
      <li><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
  <div id="nav-path" class="navpath">
    <ul>
      <li class="navelem"><a class="el" href="namespaceWt.html">Wt</a>      </li>
      <li class="navelem"><a class="el" href="classWt_1_1WDoubleValidator.html">WDoubleValidator</a>      </li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a>  </div>
  <div class="headertitle">
<div class="title">Wt::WDoubleValidator Class Reference</div>  </div>
</div>
<div class="contents">
<!-- doxytag: class="Wt::WDoubleValidator" --><!-- doxytag: inherits="Wt::WValidator" -->
<p>A validator for validating floating point user input.  
 <a href="classWt_1_1WDoubleValidator.html#details">More...</a></p>

<p><code>#include &lt;Wt/WDoubleValidator&gt;</code></p>
<div class="dynheader">
Inheritance diagram for Wt::WDoubleValidator:</div>
<div class="dyncontent">
<div class="center"><img src="classWt_1_1WDoubleValidator__inherit__graph.png" border="0" usemap="#Wt_1_1WDoubleValidator_inherit__map" alt="Inheritance graph"/></div>
<map name="Wt_1_1WDoubleValidator_inherit__map" id="Wt_1_1WDoubleValidator_inherit__map">
<area shape="rect" href="classWt_1_1WValidator.html" title="A validator is used to validate user input according to pre&#45;defined rules." alt="" coords="25,80,135,107"/><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="32,5,128,32"/></map>
<center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div>

<p><a href="classWt_1_1WDoubleValidator-members.html">List of all members.</a></p>
<table class="memberdecls">
<tr><td colspan="2"><h2><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a60ac6a9c4da70a17daa84a41d04b87dd"></a><!-- doxytag: member="Wt::WDoubleValidator::WDoubleValidator" ref="a60ac6a9c4da70a17daa84a41d04b87dd" args="(WObject *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a60ac6a9c4da70a17daa84a41d04b87dd">WDoubleValidator</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new double validator that accepts any double. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a3a7b569012485ce6a217c47ffb26af24"></a><!-- doxytag: member="Wt::WDoubleValidator::WDoubleValidator" ref="a3a7b569012485ce6a217c47ffb26af24" args="(double minimum, double maximum, WObject *parent=0)" -->
&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a3a7b569012485ce6a217c47ffb26af24">WDoubleValidator</a> (double minimum, double maximum, <a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a new double validator that accepts double within the given range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="aa1f6b0952651e5503e6ff6657bd09180"></a><!-- doxytag: member="Wt::WDoubleValidator::bottom" ref="aa1f6b0952651e5503e6ff6657bd09180" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#aa1f6b0952651e5503e6ff6657bd09180">bottom</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the bottom of the valid double range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a520fe2f7859670b0c30144dbc4990e98">setBottom</a> (double bottom)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the bottom of the valid double range.  <a href="#a520fe2f7859670b0c30144dbc4990e98"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a708124404d7088f51f458bee1641288d"></a><!-- doxytag: member="Wt::WDoubleValidator::top" ref="a708124404d7088f51f458bee1641288d" args="() const " -->
double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a708124404d7088f51f458bee1641288d">top</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the top of the valid double range. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a931cc4c5d0409093f4a6fd8ab023ee73">setTop</a> (double top)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the top of the valid double range.  <a href="#a931cc4c5d0409093f4a6fd8ab023ee73"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a160f579d7884d02786a1cc36ec3ecca1"></a><!-- doxytag: member="Wt::WDoubleValidator::setRange" ref="a160f579d7884d02786a1cc36ec3ecca1" args="(double bottom, double top)" -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a160f579d7884d02786a1cc36ec3ecca1">setRange</a> (double bottom, double top)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the range of valid doubles. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual <a class="el" href="classWt_1_1WValidator_1_1Result.html">Result</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a83572a7226b8c6a09b88d7b7ec17fcef">validate</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;input) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Validates the given input.  <a href="#a83572a7226b8c6a09b88d7b7ec17fcef"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="a497f1ef7ea1b403665b9f1b7685954d4"></a><!-- doxytag: member="Wt::WDoubleValidator::createExtConfig" ref="a497f1ef7ea1b403665b9f1b7685954d4" args="(std::ostream &amp;config) const " -->
virtual void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a497f1ef7ea1b403665b9f1b7685954d4">createExtConfig</a> (std::ostream &amp;config) const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Provides Ext-compatible config options for client-side validation. <br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a86e8f0e07b6c861af2e656575a329d47">setInvalidNotANumberText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the message to display when the input is not a number.  <a href="#a86e8f0e07b6c861af2e656575a329d47"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a474314e509e47d2a577a26841fe4a752">invalidNotANumberText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the message displayed when the input is not a number.  <a href="#a474314e509e47d2a577a26841fe4a752"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a119b5f1c2396f8d595c2607e76d27b1a">setInvalidTooSmallText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the message to display when the number is too small.  <a href="#a119b5f1c2396f8d595c2607e76d27b1a"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a13fb51475bab73ea71405f6fa9158c6d">invalidTooSmallText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the message displayed when the number is too small.  <a href="#a13fb51475bab73ea71405f6fa9158c6d"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#a6c3fa94752583d7e2de640cf6b91cef7">setInvalidTooLargeText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;text)</td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Sets the message to display when the number is too large.  <a href="#a6c3fa94752583d7e2de640cf6b91cef7"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#aa0cf3c02568e85e24105c073d8ee319b">invalidTooLargeText</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Returns the message displayed when the number is too large.  <a href="#aa0cf3c02568e85e24105c073d8ee319b"></a><br/></td></tr>
<tr><td class="memItemLeft" align="right" valign="top">virtual std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WDoubleValidator.html#aed2cd8b4dab3144c567a91a2a6c79011">javaScriptValidate</a> () const </td></tr>
<tr><td class="mdescLeft">&#160;</td><td class="mdescRight">Creates a Javascript object that validates the input.  <a href="#aed2cd8b4dab3144c567a91a2a6c79011"></a><br/></td></tr>
</table>
<hr/><a name="details" id="details"></a><h2>Detailed Description</h2>
<div class="textblock"><p>A validator for validating floating point user input. </p>
<p>This validator checks whether user input is a double in the pre-defined range.</p>
<p>Usage example: </p>
<div class="fragment"><pre class="fragment"> <a class="code" href="classWt_1_1WLineEdit.html" title="A widget that provides a single line edit.">Wt::WLineEdit</a> *lineEdit = <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="keyword">this</span>);
 <a class="code" href="classWt_1_1WDoubleValidator.html" title="A validator for validating floating point user input.">Wt::WDoubleValidator</a> *validator = <span class="keyword">new</span> <a class="code" href="classWt_1_1WDoubleValidator.html#a60ac6a9c4da70a17daa84a41d04b87dd" title="Creates a new double validator that accepts any double.">Wt::WDoubleValidator</a>();
 lineEdit-&gt;<a class="code" href="classWt_1_1WFormWidget.html#aa773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator</a>(validator);
 lineEdit-&gt;<a class="code" href="classWt_1_1WLineEdit.html#addb99c6ab5483836adf44a2706a410af" title="Sets the content of the line edit.">setText</a>(<span class="stringliteral">&quot;13.42&quot;</span>);
</pre></div><h3>i18n</h3>
<p>The strings used in this class can be translated by overriding the default values for the following localization keys: Wt.WDoubleValidator.NotANumber: Must be a number Wt.WDoubleValidator.TooSmall: The number must be larger than {1} Wt.WDoubleValidator.BadRange: The number must be in the range {1} to {2} Wt.WDoubleValidator.TooLarge: The number must be smaller than {1} </p>
</div><hr/><h2>Member Function Documentation</h2>
<a class="anchor" id="a474314e509e47d2a577a26841fe4a752"></a><!-- doxytag: member="Wt::WDoubleValidator::invalidNotANumberText" ref="a474314e509e47d2a577a26841fe4a752" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDoubleValidator::invalidNotANumberText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the message displayed when the input is not a number. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDoubleValidator.html#a86e8f0e07b6c861af2e656575a329d47" title="Sets the message to display when the input is not a number.">setInvalidNotANumberText(const WString&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aa0cf3c02568e85e24105c073d8ee319b"></a><!-- doxytag: member="Wt::WDoubleValidator::invalidTooLargeText" ref="aa0cf3c02568e85e24105c073d8ee319b" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDoubleValidator::invalidTooLargeText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the message displayed when the number is too large. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDoubleValidator.html#a6c3fa94752583d7e2de640cf6b91cef7" title="Sets the message to display when the number is too large.">setInvalidTooLargeText(const WString&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="a13fb51475bab73ea71405f6fa9158c6d"></a><!-- doxytag: member="Wt::WDoubleValidator::invalidTooSmallText" ref="a13fb51475bab73ea71405f6fa9158c6d" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WString.html">WString</a> Wt::WDoubleValidator::invalidTooSmallText </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Returns the message displayed when the number is too small. </p>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WDoubleValidator.html#a119b5f1c2396f8d595c2607e76d27b1a" title="Sets the message to display when the number is too small.">setInvalidTooSmallText(const WString&amp;)</a> </dd></dl>

</div>
</div>
<a class="anchor" id="aed2cd8b4dab3144c567a91a2a6c79011"></a><!-- doxytag: member="Wt::WDoubleValidator::javaScriptValidate" ref="aed2cd8b4dab3144c567a91a2a6c79011" args="() const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">std::string Wt::WDoubleValidator::javaScriptValidate </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Creates a Javascript object that validates the input. </p>
<p>The JavaScript expression should evaluate to an object which contains a <code>validate(text)</code> function, which returns an object that contains the following two fields:</p>
<ul>
<li>fields: a boolean <em>valid</em>,</li>
<li>a <code>message</code> that indicates the problem if not valid.</li>
</ul>
<p>Returns an empty string if the validator does not provide a client-side validation implementationq.</p>
<dl class="note"><dt><b>Note:</b></dt><dd>The signature and contract changed changed in Wt 3.1.9.</dd></dl>
<dl class="see"><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WValidator.html#a1ca29b7eaabf4c1655200ec382a84554" title="Returns a regular expression that filters input.">inputFilter()</a> </dd></dl>

<p>Reimplemented from <a class="el" href="classWt_1_1WValidator.html#a2aca1c34abaf4a35b972c3cf82ce1e48">Wt::WValidator</a>.</p>

</div>
</div>
<a class="anchor" id="a520fe2f7859670b0c30144dbc4990e98"></a><!-- doxytag: member="Wt::WDoubleValidator::setBottom" ref="a520fe2f7859670b0c30144dbc4990e98" args="(double bottom)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDoubleValidator::setBottom </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>bottom</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the bottom of the valid double range. </p>
<p>The default value is the minimum double value. </p>

</div>
</div>
<a class="anchor" id="a86e8f0e07b6c861af2e656575a329d47"></a><!-- doxytag: member="Wt::WDoubleValidator::setInvalidNotANumberText" ref="a86e8f0e07b6c861af2e656575a329d47" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDoubleValidator::setInvalidNotANumberText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the message to display when the input is not a number. </p>
<p>The default value is "Must be a number." </p>

</div>
</div>
<a class="anchor" id="a6c3fa94752583d7e2de640cf6b91cef7"></a><!-- doxytag: member="Wt::WDoubleValidator::setInvalidTooLargeText" ref="a6c3fa94752583d7e2de640cf6b91cef7" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDoubleValidator::setInvalidTooLargeText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the message to display when the number is too large. </p>
<p>Depending on whether <a class="el" href="classWt_1_1WDoubleValidator.html#aa1f6b0952651e5503e6ff6657bd09180" title="Returns the bottom of the valid double range.">bottom()</a> and <a class="el" href="classWt_1_1WDoubleValidator.html#a708124404d7088f51f458bee1641288d" title="Returns the top of the valid double range.">top()</a> are real bounds, the default message is "The number must be between {1} and {2}" or "The number must be smaller than {2}". </p>

</div>
</div>
<a class="anchor" id="a119b5f1c2396f8d595c2607e76d27b1a"></a><!-- doxytag: member="Wt::WDoubleValidator::setInvalidTooSmallText" ref="a119b5f1c2396f8d595c2607e76d27b1a" args="(const WString &amp;text)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDoubleValidator::setInvalidTooSmallText </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>text</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the message to display when the number is too small. </p>
<p>Depending on whether <a class="el" href="classWt_1_1WDoubleValidator.html#aa1f6b0952651e5503e6ff6657bd09180" title="Returns the bottom of the valid double range.">bottom()</a> and <a class="el" href="classWt_1_1WDoubleValidator.html#a708124404d7088f51f458bee1641288d" title="Returns the top of the valid double range.">top()</a> are real bounds, the default message is "The number must be between {1} and {2}" or "The number must be larger than {1}". </p>

</div>
</div>
<a class="anchor" id="a931cc4c5d0409093f4a6fd8ab023ee73"></a><!-- doxytag: member="Wt::WDoubleValidator::setTop" ref="a931cc4c5d0409093f4a6fd8ab023ee73" args="(double top)" -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Wt::WDoubleValidator::setTop </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>top</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Sets the top of the valid double range. </p>
<p>The default value is the maximum double value. </p>

</div>
</div>
<a class="anchor" id="a83572a7226b8c6a09b88d7b7ec17fcef"></a><!-- doxytag: member="Wt::WDoubleValidator::validate" ref="a83572a7226b8c6a09b88d7b7ec17fcef" args="(const WString &amp;input) const " -->
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classWt_1_1WValidator_1_1Result.html">WValidator::Result</a> Wt::WDoubleValidator::validate </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> &amp;&#160;</td>
          <td class="paramname"><em>input</em></td><td>)</td>
          <td> const<code> [virtual]</code></td>
        </tr>
      </table>
</div>
<div class="memdoc">

<p>Validates the given input. </p>
<p>The input is considered valid only when it is blank for a non-mandatory field, or represents a double within the valid range. </p>

<p>Reimplemented from <a class="el" href="classWt_1_1WValidator.html#a78808215d68944dedca11ff8889374ed">Wt::WValidator</a>.</p>

</div>
</div>
</div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Namespaces</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Enumerator</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<hr size="1"><address style="text-align: right; margin: 3px"><small>
Generated on Fri Mar 30 2012 for <a href="http://www.webtoolkit.eu/wt">the
C++ Web Toolkit (Wt)</a> by&nbsp;<a
href="http://www.doxygen.org/index.html"><img src="doxygen.png"
alt="doxygen" border="0" style="vertical-align: middle; display:
inline-block; height: 2em"></a> 1.7.5.1</small></address>
</body>
</html>