#include <WIntValidator>
Inherits Wt::WValidator.
Inheritance diagram for Wt::WIntValidator:

Public Member Functions | |
| WIntValidator (int minimum=std::numeric_limits< int >::min(), int maximum=std::numeric_limits< int >::max()) | |
| Create a new integer validator that accepts integer input within the given range. | |
| int | bottom () const |
| Return the bottom of the valid integer range. | |
| void | setBottom (int bottom) |
| Set the bottom of the valid integer range. | |
| int | top () const |
| Return the top of the valid integer range. | |
| void | setTop (int top) |
| Set the top of the valid integer range. | |
| virtual void | setRange (int bottom, int top) |
| Set the range of valid integers. | |
| virtual State | validate (WString &input, int &pos) const |
| Validate the input as an integer within the given range. | |
This validator checks whether user input is an integer number in a pre-defined range.
| WValidator::State Wt::WIntValidator::validate | ( | WString & | input, | |
| int & | pos | |||
| ) | const [virtual] |
Validate the input as an integer within the given range.
Returns Valid if the input is an integer in the given range. Returns Invalid if the input is not an integer, or outside of the given range.
Reimplemented from Wt::WValidator.
1.4.7