Wt
4.10.0
|
Form delegate class for WDateTime More...
#include <WFormDelegate.h>
Public Member Functions | |
std::unique_ptr< Wt::WWidget > | createFormWidget () override |
Create a WLineEdit to be used in the View. | |
void | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) override |
Update the value in the Model. | |
virtual void | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) |
Updates a value in the Model. | |
virtual bool | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the Model. | |
![]() | |
WAbstractFormDelegate () | |
Constructor. | |
virtual | ~WAbstractFormDelegate () |
Destructor. | |
virtual std::unique_ptr< Wt::WWidget > | createFormWidget ()=0 |
Create the widget to be used in the View. | |
virtual std::shared_ptr< Wt::WValidator > | createValidator () |
Create the validator to be used by the Model. | |
virtual void | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) |
Updates a value in the Model. | |
virtual bool | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the Model. | |
virtual void | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) |
Updates a value in the View. | |
virtual bool | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the View. | |
Form delegate class for WDateTime
This will create a WLineEdit to display the WDateTime value in the View
In the future this implementation will change to return a dedicated widget for WDateTime objects.
|
virtual |
Updates a value in the Model.
By default this sets the value in the model to the string returned by WFormWidget::valueText
The user should only override this method or the other updateModelValue method returning a boolean, depending on the type of widget that's returned by createFormWidget.
Reimplemented from Wt::Form::WAbstractFormDelegate.
|
virtual |
Updates a value in the Model.
By default this method returns false.
The user should only override this method or the other updateModelValue method, depending on the type of widget that's returned by createFormWidget.
Reimplemented from Wt::Form::WAbstractFormDelegate.