Wt
4.10.0
|
Form delegate for double More...
#include <WFormDelegate.h>
Public Member Functions | |
std::unique_ptr< Wt::WWidget > | createFormWidget () override |
Create WLineEdit to be used in the View. | |
std::shared_ptr< Wt::WValidator > | createValidator () override |
Create WDoubleValidator for validation. | |
void | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) override |
Update the value in the model. | |
void | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) override |
Update the value in the View. | |
virtual void | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) |
Updates a value in the Model. More... | |
virtual bool | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the Model. More... | |
virtual void | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit) |
Updates a value in the View. More... | |
virtual bool | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the View. More... | |
![]() | |
WAbstractFormDelegate () | |
Constructor. | |
virtual | ~WAbstractFormDelegate () |
Destructor. | |
virtual bool | updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the Model. More... | |
virtual bool | updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit) |
Updates a value in the View. More... | |
Form delegate for double
This will create a WLineEdit to display the double value in the View. Additionally the delegate will also initialize the WDoubleValidator for validation.
void Wt::Form::WAbstractFormDelegate::updateModelValue |
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.
bool Wt::Form::WAbstractFormDelegate::updateModelValue |
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.
void Wt::Form::WAbstractFormDelegate::updateViewValue |
Updates a value in the View.
By default this uses WFormWidget::setValueText and WFormModel::value to update the widget
The user should only override this method or the other updateViewValue method returning a boolean, depending on the type of widget that's returned by createFormWidget.
bool Wt::Form::WAbstractFormDelegate::updateViewValue |
Updates a value in the View.
By default this method returns false.
The user should only override this method or the other updateViewValue method, depending on the type of widget that's returned by createFormWidget.