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

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