#include <httpform.h>
Inheritance diagram for PHTTPBooleanField:
Public Member Functions | |
PHTTPBooleanField (const char *name, PBoolean initVal=PFalse, const char *help=NULL) | |
PHTTPBooleanField (const char *name, const char *title, PBoolean initVal=PFalse, const char *help=NULL) | |
virtual PHTTPField * | NewField () const |
virtual void | GetHTMLTag (PHTML &html) const |
virtual PString | GetHTMLInput (const PString &input) const |
virtual PString | GetValue (PBoolean dflt=PFalse) const |
virtual void | SetValue (const PString &newVal) |
virtual void | LoadFromConfig (PConfig &cfg) |
virtual void | SaveToConfig (PConfig &cfg) const |
Protected Attributes | |
PBoolean | value |
PBoolean | initialValue |
PHTTPBooleanField::PHTTPBooleanField | ( | const char * | name, | |
PBoolean | initVal = PFalse , |
|||
const char * | help = NULL | |||
) |
PHTTPBooleanField::PHTTPBooleanField | ( | const char * | name, | |
const char * | title, | |||
PBoolean | initVal = PFalse , |
|||
const char * | help = NULL | |||
) |
virtual PHTTPField* PHTTPBooleanField::NewField | ( | ) | const [virtual] |
Create a new field of the same class as the current field.
Implements PHTTPField.
virtual void PHTTPBooleanField::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.
Convert the field input to HTML for inclusion into the HTTP page.
Reimplemented from PHTTPField.
virtual void PHTTPBooleanField::SetValue | ( | const PString & | newVal | ) | [virtual] |
Set the value of the field.
Implements PHTTPField.
virtual void PHTTPBooleanField::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 PHTTPBooleanField::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.
PBoolean PHTTPBooleanField::value [protected] |
PBoolean PHTTPBooleanField::initialValue [protected] |