Wt::WDoubleValidator Class Reference

A validator for validating floating point user input. More...

#include <WDoubleValidator>

Inheritance diagram for Wt::WDoubleValidator:

Inheritance graph
[legend]

List of all members.

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.
void setInvalidNotANumberText (const WString &text)
 Set the message to display when the input is not a number.
double bottom () const
 Return the bottom of the valid double range.
void setBottom (double bottom)
 Set the bottom of the valid double range.
void setInvalidTooSmallText (const WString &text)
 Set message to display when the number is too small.
double top () const
 Return the top of the valid double range.
void setTop (double top)
 Set the top of the valid double range.
void setInvalidTooLargeText (const WString &text)
 Set message to display when the number is too large.
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.
virtual void createExtConfig (std::ostream &config) const
 Provide Ext-compatible config options for client-side validation.


Detailed Description

A validator for validating floating point user input.

This validator checks whether user input is a double in the pre-defined range.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
Generated on Mon Apr 14 15:15:01 2008 for Wt by doxygen 1.5.3