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

Form delegate class for WDate More...

#include <WFormDelegate.h>

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

Public Member Functions

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

Detailed Description

Form delegate class for WDate

This will create a WDateEdit to display the WDate value in the View

Member Function Documentation

◆ updateModelValue() [1/2]

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.

See also
WTemplateFormView::updateModelValue()

◆ updateModelValue() [2/2]

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.

See also
WTemplateFormView::updateModelValue()

◆ updateViewValue() [1/2]

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.

See also
WTemplateFormView::updateViewValue()

◆ updateViewValue() [2/2]

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.

See also
WTemplateFormView::updateViewValue()