PWLib  1.10.10
Public Member Functions | Protected Attributes
PHTTPStringField Class Reference

#include <httpform.h>

Inheritance diagram for PHTTPStringField:
PHTTPField PObject PHTTPPasswordField

List of all members.

Public Member Functions

 PHTTPStringField (const char *name, PINDEX size, const char *initVal=NULL, const char *help=NULL)
 PHTTPStringField (const char *name, const char *title, PINDEX size, const char *initVal=NULL, const char *help=NULL)
virtual PHTTPFieldNewField () const
virtual void GetHTMLTag (PHTML &html) const
virtual PString GetValue (BOOL dflt=FALSE) const
virtual void SetValue (const PString &newVal)

Protected Attributes

PString value
PString initialValue
PINDEX size

Constructor & Destructor Documentation

PHTTPStringField::PHTTPStringField ( const char *  name,
PINDEX  size,
const char *  initVal = NULL,
const char *  help = NULL 
)
PHTTPStringField::PHTTPStringField ( const char *  name,
const char *  title,
PINDEX  size,
const char *  initVal = NULL,
const char *  help = NULL 
)

Member Function Documentation

virtual void PHTTPStringField::GetHTMLTag ( PHTML html) const [virtual]

Convert the field to HTML form tag for inclusion into the HTTP page.

Parameters:
htmlHTML to receive the field info.

Implements PHTTPField.

Reimplemented in PHTTPPasswordField.

virtual PString PHTTPStringField::GetValue ( BOOL  dflt = FALSE) const [virtual]

Get the string value of the field.

Returns:
String for field value.

Implements PHTTPField.

Reimplemented in PHTTPPasswordField.

virtual PHTTPField* PHTTPStringField::NewField ( ) const [virtual]

Create a new field of the same class as the current field.

Returns:
New field object instance.

Implements PHTTPField.

Reimplemented in PHTTPPasswordField.

virtual void PHTTPStringField::SetValue ( const PString newValue) [virtual]

Set the value of the field.

Implements PHTTPField.

Reimplemented in PHTTPPasswordField.


Member Data Documentation

PINDEX PHTTPStringField::size [protected]

The documentation for this class was generated from the following file: