Wt examples
3.3.2
|
#include <Form.h>
Public Member Functions | |
Form (WContainerWidget *parent=0) | |
Instantiate a new form. More... | |
![]() | |
WTable (WContainerWidget *parent=0) | |
virtual | ~WTable () |
WTableCell * | elementAt (int row, int column) |
WTableRow * | rowAt (int row) |
WTableColumn * | columnAt (int column) |
void | removeCell (WTableCell *item) |
virtual void | removeCell (int row, int column) |
virtual WTableRow * | insertRow (int row, WTableRow *tableRow=0) |
virtual void | deleteRow (int row) |
virtual WTableColumn * | insertColumn (int column, WTableColumn *tableColumn=0) |
virtual void | deleteColumn (int column) |
virtual void | clear () |
int | rowCount () const |
int | columnCount () const |
void | setHeaderCount (int count, Orientation orientation=Horizontal) |
int | headerCount (Orientation orientation=Horizontal) |
virtual void | moveRow (int from, int to) |
virtual void | moveColumn (int from, int to) |
Private Member Functions | |
void | countryChanged () |
The user selected a new country: adjust the cities combo box. More... | |
void | submit () |
Submit the form. More... | |
void | createUI () |
void | addValidationStatus (int row, WFormWidget *field) |
Add a validation feedback for a field. More... | |
bool | validate () |
Validate the form, and return whether succesfull. More... | |
bool | checkValid (WFormWidget *edit, const WString &text) |
Validate a single form field. More... | |
Private Attributes | |
WContainerWidget * | feedbackMessages_ |
WLineEdit * | nameEdit_ |
WLineEdit * | firstNameEdit_ |
WComboBox * | countryEdit_ |
WComboBox * | cityEdit_ |
WDateEdit * | birthDateEdit_ |
WLineEdit * | childCountEdit_ |
WLineEdit * | weightEdit_ |
WTextArea * | remarksEdit_ |
Additional Inherited Members | |
![]() | |
virtual void | enableAjax ()=0 |
virtual void | propagateSetEnabled (bool enabled)=0 |
virtual void | render (WFlags< RenderFlag > flags) |
A simple Form.
Shows how a simple form can made, with an emphasis on how to handle validation.
Form::Form | ( | WContainerWidget * | parent = 0 ) |
|
private |
Add a validation feedback for a field.
|
private |
|
private |
|
private |
|
private |