1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1">
<title>Wt: Wt::WIntValidator 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_1WIntValidator.html">WIntValidator</a>
</div>
</div>
<div class="contents">
<h1>Wt::WIntValidator Class Reference</h1><!-- doxytag: class="Wt::WIntValidator" --><!-- doxytag: inherits="Wt::WValidator" -->A validator that validates integer user input.
<a href="#_details">More...</a>
<p>
<code>#include <Wt/WIntValidator></code>
<p>
<div class="dynheader">
Inheritance diagram for Wt::WIntValidator:</div>
<div class="dynsection">
<p><center><img src="classWt_1_1WIntValidator__inherit__graph.png" border="0" usemap="#Wt_1_1WIntValidator__inherit__map" alt="Inheritance graph"></center>
<map name="Wt_1_1WIntValidator__inherit__map">
<area shape="rect" href="classWt_1_1WValidator.html" title="A validator is used to validate user input according to pre-defined rules." alt="" coords="13,80,120,107"><area shape="rect" href="classWt_1_1WObject.html" title="A base class for objects that participate in the signal/slot system." alt="" coords="19,5,115,32"></map>
<center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center></div>
<p>
<a href="classWt_1_1WIntValidator-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="89d08b52740d6791ce4741c1cc74cd5b"></a><!-- doxytag: member="Wt::WIntValidator::WIntValidator" ref="89d08b52740d6791ce4741c1cc74cd5b" args="(WObject *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#89d08b52740d6791ce4741c1cc74cd5b">WIntValidator</a> (<a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new integer validator that accepts any integer. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f81e1d2d1a0fce7e92fdf3b8b67bfbe1"></a><!-- doxytag: member="Wt::WIntValidator::WIntValidator" ref="f81e1d2d1a0fce7e92fdf3b8b67bfbe1" args="(int minimum, int maximum, WObject *parent=0)" -->
</td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#f81e1d2d1a0fce7e92fdf3b8b67bfbe1">WIntValidator</a> (int minimum, int maximum, <a class="el" href="classWt_1_1WObject.html">WObject</a> *parent=0)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new integer validator that accepts integer input within the given range. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="58ab417ac57782691b6ad6987ad7b8dd"></a><!-- doxytag: member="Wt::WIntValidator::bottom" ref="58ab417ac57782691b6ad6987ad7b8dd" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#58ab417ac57782691b6ad6987ad7b8dd">bottom</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the bottom of the valid integer range. <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_1WIntValidator.html#365500d492560d016b3ba7f263ce282c">setBottom</a> (int bottom)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the bottom of the valid integer range. <a href="#365500d492560d016b3ba7f263ce282c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="9534fc0b7b7864e71a80b77dcfbff5ec"></a><!-- doxytag: member="Wt::WIntValidator::top" ref="9534fc0b7b7864e71a80b77dcfbff5ec" args="() const " -->
int </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#9534fc0b7b7864e71a80b77dcfbff5ec">top</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the top of the valid integer range. <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_1WIntValidator.html#8a804c3ea0811b5c32de974592a1c88c">setTop</a> (int top)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the top of the valid integer range. <a href="#8a804c3ea0811b5c32de974592a1c88c"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="fe180f56f061c98fcc9de6be20effe38"></a><!-- doxytag: member="Wt::WIntValidator::setRange" ref="fe180f56f061c98fcc9de6be20effe38" args="(int bottom, int top)" -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#fe180f56f061c98fcc9de6be20effe38">setRange</a> (int bottom, int top)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the range of valid integers. <br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">virtual <a class="el" href="classWt_1_1WValidator.html#638a1feefca259ea2f806a8add2d18a3">State</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#15807b522c601992d5275a729ed69285">validate</a> (<a class="el" href="classWt_1_1WString.html">WString</a> &input) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Validates the given input. <a href="#15807b522c601992d5275a729ed69285"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="anchor" name="f956eb115e0b77053c33cf6872ace2e9"></a><!-- doxytag: member="Wt::WIntValidator::createExtConfig" ref="f956eb115e0b77053c33cf6872ace2e9" args="(std::ostream &config) const " -->
virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#f956eb115e0b77053c33cf6872ace2e9">createExtConfig</a> (std::ostream &config) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Provides Ext-compatible config options for client-side validation. <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_1WIntValidator.html#9bc399a9536652c9ab52301669909b6a">setInvalidNotANumberText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the message to display when the input is not a number. <a href="#9bc399a9536652c9ab52301669909b6a"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#c799cd9012ceebded234968a8975f9a8">invalidNotANumberText</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the message displayed when the input is not a number. <a href="#c799cd9012ceebded234968a8975f9a8"></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_1WIntValidator.html#680b57bde8dacfe52e8e65d4abbcf4c6">setInvalidTooSmallText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the message to display when the number is too small. <a href="#680b57bde8dacfe52e8e65d4abbcf4c6"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#ed9ac49dea2069f723dd1f95a5f02744">invalidTooSmallText</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the message displayed when the number is too small. <a href="#ed9ac49dea2069f723dd1f95a5f02744"></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_1WIntValidator.html#2e474c6f5ffecff9c8d7cc27810b211f">setInvalidTooLargeText</a> (const <a class="el" href="classWt_1_1WString.html">WString</a> &text)</td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the message to display when the number is too large. <a href="#2e474c6f5ffecff9c8d7cc27810b211f"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top"><a class="el" href="classWt_1_1WString.html">WString</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#873f37b94a25ab9e1102c48f8bd3c7b1">invalidTooLargeText</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the message displayed when the number is too large. <a href="#873f37b94a25ab9e1102c48f8bd3c7b1"></a><br></td></tr>
<tr><td colspan="2"><br><h2>Protected Member Functions</h2></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#61217a65efb5d2e06262e3710224ea46">javaScriptValidate</a> (const std::string &jsRef) const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a Javascript expression that validates the input. <a href="#61217a65efb5d2e06262e3710224ea46"></a><br></td></tr>
<tr><td class="memItemLeft" nowrap align="right" valign="top">std::string </td><td class="memItemRight" valign="bottom"><a class="el" href="classWt_1_1WIntValidator.html#aa26351e1a00502da10a9d67a7eea817">inputFilter</a> () const </td></tr>
<tr><td class="mdescLeft"> </td><td class="mdescRight">Returns a regular expression that filters input. <a href="#aa26351e1a00502da10a9d67a7eea817"></a><br></td></tr>
</table>
<hr><a name="_details"></a><h2>Detailed Description</h2>
A validator that validates integer user input.
<p>
This validator checks whether user input is an integer number in a pre-defined range.<p>
Usage example: <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_1WIntValidator.html" title="A validator that validates integer user input.">Wt::WIntValidator</a> *validator = <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, 100);
lineEdit-><a class="code" href="classWt_1_1WFormWidget.html#a773d16013d6959149ce5081e84b259c" title="Sets a validator for this field.">setValidator</a>(validator);
lineEdit-><a class="code" href="classWt_1_1WLineEdit.html#ddb99c6ab5483836adf44a2706a410af" title="Sets the content of the line edit.">setText</a>(<span class="stringliteral">"50"</span>);
</pre></div> <hr><h2>Member Function Documentation</h2>
<a class="anchor" name="365500d492560d016b3ba7f263ce282c"></a><!-- doxytag: member="Wt::WIntValidator::setBottom" ref="365500d492560d016b3ba7f263ce282c" args="(int bottom)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WIntValidator::setBottom </td>
<td>(</td>
<td class="paramtype">int </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 integer range.
<p>
The default value is the minimum integer value.
</div>
</div><p>
<a class="anchor" name="8a804c3ea0811b5c32de974592a1c88c"></a><!-- doxytag: member="Wt::WIntValidator::setTop" ref="8a804c3ea0811b5c32de974592a1c88c" args="(int top)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WIntValidator::setTop </td>
<td>(</td>
<td class="paramtype">int </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 integer range.
<p>
The default value is the maximum integer value.
</div>
</div><p>
<a class="anchor" name="15807b522c601992d5275a729ed69285"></a><!-- doxytag: member="Wt::WIntValidator::validate" ref="15807b522c601992d5275a729ed69285" args="(WString &input) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname"><a class="el" href="classWt_1_1WValidator.html#638a1feefca259ea2f806a8add2d18a3">WValidator::State</a> Wt::WIntValidator::validate </td>
<td>(</td>
<td class="paramtype"><a class="el" href="classWt_1_1WString.html">WString</a> & </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>
The input is considered valid only when it is blank for a non-mandatory field, or represents an integer within the valid range.
<p>Reimplemented from <a class="el" href="classWt_1_1WValidator.html#fce53cf7c8fa1692234df0538163b4e0">Wt::WValidator</a>.</p>
</div>
</div><p>
<a class="anchor" name="9bc399a9536652c9ab52301669909b6a"></a><!-- doxytag: member="Wt::WIntValidator::setInvalidNotANumberText" ref="9bc399a9536652c9ab52301669909b6a" args="(const WString &text)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WIntValidator::setInvalidNotANumberText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </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>
The default value is "Must be an integer number."
</div>
</div><p>
<a class="anchor" name="c799cd9012ceebded234968a8975f9a8"></a><!-- doxytag: member="Wt::WIntValidator::invalidNotANumberText" ref="c799cd9012ceebded234968a8975f9a8" 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::WIntValidator::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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WIntValidator.html#9bc399a9536652c9ab52301669909b6a" title="Sets the message to display when the input is not a number.">setInvalidNotANumberText(const WString&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="680b57bde8dacfe52e8e65d4abbcf4c6"></a><!-- doxytag: member="Wt::WIntValidator::setInvalidTooSmallText" ref="680b57bde8dacfe52e8e65d4abbcf4c6" args="(const WString &text)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WIntValidator::setInvalidTooSmallText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </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>
Depending on whether <a class="el" href="classWt_1_1WIntValidator.html#58ab417ac57782691b6ad6987ad7b8dd" title="Returns the bottom of the valid integer range.">bottom()</a> and <a class="el" href="classWt_1_1WIntValidator.html#9534fc0b7b7864e71a80b77dcfbff5ec" title="Returns the top of the valid integer 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}".
</div>
</div><p>
<a class="anchor" name="ed9ac49dea2069f723dd1f95a5f02744"></a><!-- doxytag: member="Wt::WIntValidator::invalidTooSmallText" ref="ed9ac49dea2069f723dd1f95a5f02744" 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::WIntValidator::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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WIntValidator.html#680b57bde8dacfe52e8e65d4abbcf4c6" title="Sets the message to display when the number is too small.">setInvalidTooSmallText(const WString&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="2e474c6f5ffecff9c8d7cc27810b211f"></a><!-- doxytag: member="Wt::WIntValidator::setInvalidTooLargeText" ref="2e474c6f5ffecff9c8d7cc27810b211f" args="(const WString &text)" -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">void Wt::WIntValidator::setInvalidTooLargeText </td>
<td>(</td>
<td class="paramtype">const <a class="el" href="classWt_1_1WString.html">WString</a> & </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>
Depending on whether <a class="el" href="classWt_1_1WIntValidator.html#58ab417ac57782691b6ad6987ad7b8dd" title="Returns the bottom of the valid integer range.">bottom()</a> and <a class="el" href="classWt_1_1WIntValidator.html#9534fc0b7b7864e71a80b77dcfbff5ec" title="Returns the top of the valid integer 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}".
</div>
</div><p>
<a class="anchor" name="873f37b94a25ab9e1102c48f8bd3c7b1"></a><!-- doxytag: member="Wt::WIntValidator::invalidTooLargeText" ref="873f37b94a25ab9e1102c48f8bd3c7b1" 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::WIntValidator::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" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WIntValidator.html#2e474c6f5ffecff9c8d7cc27810b211f" title="Sets the message to display when the number is too large.">setInvalidTooLargeText(const WString&)</a> </dd></dl>
</div>
</div><p>
<a class="anchor" name="61217a65efb5d2e06262e3710224ea46"></a><!-- doxytag: member="Wt::WIntValidator::javaScriptValidate" ref="61217a65efb5d2e06262e3710224ea46" args="(const std::string &jsRef) const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string Wt::WIntValidator::javaScriptValidate </td>
<td>(</td>
<td class="paramtype">const std::string & </td>
<td class="paramname"> <em>jsRef</em> </td>
<td> ) </td>
<td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Creates a Javascript expression that validates the input.
<p>
The JavaScript expression should evaluate to an object with two fields: a boolean <em>valid</em>, and a <code>message</code> that indicates the problem if not valid.<p>
Return an empty string if you are not provide the client-side validation.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WIntValidator.html#aa26351e1a00502da10a9d67a7eea817" title="Returns a regular expression that filters input.">inputFilter()</a> </dd></dl>
<p>Reimplemented from <a class="el" href="classWt_1_1WValidator.html#5141a6c178329e6d26faad71e7bf26aa">Wt::WValidator</a>.</p>
</div>
</div><p>
<a class="anchor" name="aa26351e1a00502da10a9d67a7eea817"></a><!-- doxytag: member="Wt::WIntValidator::inputFilter" ref="aa26351e1a00502da10a9d67a7eea817" args="() const " -->
<div class="memitem">
<div class="memproto">
<table class="memname">
<tr>
<td class="memname">std::string Wt::WIntValidator::inputFilter </td>
<td>(</td>
<td class="paramname"> </td>
<td> ) </td>
<td> const<code> [protected, virtual]</code></td>
</tr>
</table>
</div>
<div class="memdoc">
<p>
Returns a regular expression that filters input.
<p>
The returned regular expression is used to filter keys presses. The regular expression should accept valid single characters.<p>
For details on valid regular expressions, see <a class="el" href="classWt_1_1WRegExpValidator.html" title="A validator that checks user input against a regular expression.">WRegExpValidator</a>. As an example, "[0-9]" would only accept numbers as valid input.<p>
The default implementation returns an empty string, which does not filter any input.<p>
<dl class="see" compact><dt><b>See also:</b></dt><dd><a class="el" href="classWt_1_1WIntValidator.html#61217a65efb5d2e06262e3710224ea46" title="Creates a Javascript expression that validates the input.">javaScriptValidate()</a> </dd></dl>
<p>Reimplemented from <a class="el" href="classWt_1_1WValidator.html#1ca29b7eaabf4c1655200ec382a84554">Wt::WValidator</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>
|