Wt examples
3.3.0
|
#include <Form.h>
Public Member Functions | |
Form (WContainerWidget *parent=0) | |
Instantiate a new form. More... | |
![]() | |
WTable (WContainerWidget *parent=0) | |
~WTable () | |
WTableCell * | elementAt (int row, int column) |
WTableRow * | rowAt (int row) |
WTableColumn * | columnAt (int column) |
void | removeCell (WTableCell *item) |
void | removeCell (int row, int column) |
WTableRow * | insertRow (int row) |
void | deleteRow (int row) |
WTableColumn * | insertColumn (int column) |
void | deleteColumn (int column) |
void | clear () |
int | rowCount () const |
int | columnCount () const |
void | setHeaderCount (int count, Orientation orientation=Horizontal) |
int | headerCount (Orientation orientation=Horizontal) |
void | moveRow (int from, int to) |
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 |