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 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::GetHTMLTag ( PHTML html  )  const [virtual]

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

Parameters:
html  HTML 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 void PHTTPStringField::SetValue ( const PString newVal  )  [virtual]

Set the value of the field.

Implements PHTTPField.

Reimplemented in PHTTPPasswordField.


Member Data Documentation

PString PHTTPStringField::value [protected]

PString PHTTPStringField::initialValue [protected]

PINDEX PHTTPStringField::size [protected]


The documentation for this class was generated from the following file:
Generated on Fri Mar 7 06:25:06 2008 for PTLib by  doxygen 1.5.1