#include <httpform.h>
Inheritance diagram for PHTTPIntegerField:
Public Member Functions | |
PHTTPIntegerField (const char *name, int low, int high, int initVal=0, const char *units=NULL, const char *help=NULL) | |
PHTTPIntegerField (const char *name, const char *title, int low, int high, int initVal=0, const char *units=NULL, const char *help=NULL) | |
virtual PHTTPField * | NewField () const |
virtual void | GetHTMLTag (PHTML &html) const |
virtual PString | GetValue (BOOL dflt=FALSE) const |
virtual void | SetValue (const PString &newVal) |
virtual void | LoadFromConfig (PConfig &cfg) |
virtual void | SaveToConfig (PConfig &cfg) const |
virtual BOOL | Validated (const PString &newVal, PStringStream &msg) const |
Protected Attributes | |
int | low |
int | high |
int | value |
int | initialValue |
PString | units |
PHTTPIntegerField::PHTTPIntegerField | ( | const char * | name, | |
int | low, | |||
int | high, | |||
int | initVal = 0 , |
|||
const char * | units = NULL , |
|||
const char * | help = NULL | |||
) |
PHTTPIntegerField::PHTTPIntegerField | ( | const char * | name, | |
const char * | title, | |||
int | low, | |||
int | high, | |||
int | initVal = 0 , |
|||
const char * | units = NULL , |
|||
const char * | help = NULL | |||
) |
virtual PHTTPField* PHTTPIntegerField::NewField | ( | ) | const [virtual] |
Create a new field of the same class as the current field.
Implements PHTTPField.
virtual void PHTTPIntegerField::GetHTMLTag | ( | PHTML & | html | ) | const [virtual] |
Convert the field to HTML form tag for inclusion into the HTTP page.
html | HTML to receive the field info. |
Implements PHTTPField.
virtual PString PHTTPIntegerField::GetValue | ( | BOOL | dflt = FALSE |
) | const [virtual] |
virtual void PHTTPIntegerField::SetValue | ( | const PString & | newVal | ) | [virtual] |
Set the value of the field.
Implements PHTTPField.
virtual void PHTTPIntegerField::LoadFromConfig | ( | PConfig & | cfg | ) | [virtual] |
Get the value of the PConfig to the sub-field. If the field is not composite then it always sets the value as for the non-indexed version.
cfg | Configuration for value transfer. |
Reimplemented from PHTTPField.
virtual void PHTTPIntegerField::SaveToConfig | ( | PConfig & | cfg | ) | const [virtual] |
Set the value of the sub-field into the PConfig. If the field is not composite then it always sets the value as for the non-indexed version.
cfg | Configuration for value transfer. |
Reimplemented from PHTTPField.
virtual BOOL PHTTPIntegerField::Validated | ( | const PString & | newVal, | |
PStringStream & | msg | |||
) | const [virtual] |
Validate the new field value before SetValue()# is called.
Reimplemented from PHTTPField.
int PHTTPIntegerField::low [protected] |
int PHTTPIntegerField::high [protected] |
int PHTTPIntegerField::value [protected] |
int PHTTPIntegerField::initialValue [protected] |
PString PHTTPIntegerField::units [protected] |