Wt  4.9.2
Public Member Functions | List of all members
Wt::Form::WFormDelegate< double, void > Class Reference

Form delegate for double More...

#include <WFormDelegate.h>

Inheritance diagram for Wt::Form::WFormDelegate< double, void >:
[legend]

Public Member Functions

 WFormDelegate ()
 Create a form delegate.
 
std::unique_ptr< Wt::WWidgetcreateFormWidget () override
 Create WLineEdit to be used in the View.
 
std::shared_ptr< Wt::WValidatorcreateValidator () 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.
 
- Public Member Functions inherited from Wt::Form::WAbstractFormDelegate
 WAbstractFormDelegate ()
 Create a form delegate.
 
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...
 

Detailed Description

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.