FormRenderer

The FormRenderer class manages a group of form input fields. More...

Publicly inherits VerticalRenderer.

Public Methods

FormRenderer( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? );
voidaddHidden( const char* name, const char* value );
voidregisterFormObject( FormObjectRenderer* formObject );
voidregisterRadioButton( QRadioButton* radio );
voidreset( );
voidsubmit( FormObjectRenderer* formObject );
~FormRenderer( );

Public Slots

virtual voidstartTag( );

Private Data Members

QString_action;
QList<QButtonGroup>_buttonGroups;
QList<FormObjectRenderer>_formObjects;
QStrList_hiddenNames;
QStrList_hiddenValues;
QString_method;

Detailed Documentation

The FormRenderer class manages a group of form input fields.

A form manages a list of form objects. When the form is asked to submit the form values, it queries each of the form objects for their contribution. A query is constructed by concatenating the values, and the resulting URL is requested.

Public Methods Documentation

void addHidden ( const char* name, const char* value );

Add a hidden object to the form. Hidden objects are simply name/value pairs that are submitted, but cannot be modified by the user.

void registerFormObject ( FormObjectRenderer* formObject );

Add a form object to the list of managed objects.

void registerRadioButton ( QRadioButton* radio );

Radio buttons with the same name are placed into the same button group to insure that they are mutually exclusive.

void submit ( FormObjectRenderer* formObject );

Create a query by concatenating the values of all of my form objects. Make a request for the resulting URL.

Public Slots Documentation

virtual void startTag ( );

Watch for the action and method attributes.


Return to Index.
Automatically generated on Aug 11 23:32