The FormRenderer class manages a group of form input fields. More...
Publicly inherits VerticalRenderer.
| FormRenderer | ( Canvas* canvas, SgmlParser* parser, int clipWidth=???, QObject* parent=???, const char* name=??? ); | |
| void | addHidden | ( const char* name, const char* value ); |
| void | registerFormObject | ( FormObjectRenderer* formObject ); |
| void | registerRadioButton | ( QRadioButton* radio ); |
| void | reset | ( ); |
| void | submit | ( FormObjectRenderer* formObject ); |
| ~FormRenderer | ( ); |
| virtual void | startTag | ( ); |
| QString | _action; |
| QList<QButtonGroup> | _buttonGroups; |
| QList<FormObjectRenderer> | _formObjects; |
| QStrList | _hiddenNames; |
| QStrList | _hiddenValues; |
| QString | _method; |
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.Add a hidden object to the form. Hidden objects are simply name/value pairs that are submitted, but cannot be modified by the user.
Add a form object to the list of managed objects.
Radio buttons with the same name are placed into the same button group to insure that they are mutually exclusive.
Create a query by concatenating the values of all of my form objects. Make a request for the resulting URL.
Watch for the action and method attributes.