Wtx ~ Wt Extension Library
WtxLib
Public Member Functions | Protected Member Functions | List of all members
Wtx::TemplateFormView Class Reference

Template Form View. More...

#include <TemplateFormView.h>

+ Inheritance diagram for Wtx::TemplateFormView:

Public Member Functions

 TemplateFormView (const Wt::WString &text)
 
std::unique_ptr< Wt::WWidget > createFormWidget (Wt::WFormModel::Field f)
 Create Form Widget. More...
 
std::unique_ptr< Wt::WWidget > createEditWidget (Wt::WFormModel::Field f)
 Create Edit Widget. More...
 
virtual void updateView (Wt::WFormModel *model)
 
virtual void updateViewField (Wt::WFormModel *model, Wt::WFormModel::Field field)
 
virtual void updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit)
 
virtual bool updateViewValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit)
 
virtual void updateModel (Wt::WFormModel *model)
 
virtual void updateModelField (Wt::WFormModel *model, Wt::WFormModel::Field field)
 
virtual void updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WFormWidget *edit)
 
virtual bool updateModelValue (Wt::WFormModel *model, Wt::WFormModel::Field field, Wt::WWidget *edit)
 
virtual void bindString (const std::string &varName, const Wt::WString &value, Wt::TextFormat textFormat=Wt::TextFormat::XHTML)
 
virtual void bindWidget (const std::string &varName, std::unique_ptr< Wt::WWidget > widget)
 
virtual std::unique_ptr< Wt::WWidget > removeWidget (Wt::WWidget *widget) override
 
virtual bool conditionValue (const std::string &name) const
 
virtual void resolveString (const std::string &varName, const std::vector< Wt::WString > &args, std::ostream &result)
 
virtual void handleUnresolvedVariable (const std::string &varName, const std::vector< Wt::WString > &args, std::ostream &result)
 
virtual WWidget * resolveWidget (const std::string &varName)
 
virtual bool resolveFunction (const std::string &name, const std::vector< Wt::WString > &args, std::ostream &result)
 
virtual void refresh () override
 
virtual void renderTemplate (std::ostream &result)
 

Protected Member Functions

void show (const std::string &functionName, const std::string &varName, const std::vector< Wt::WString > &args=std::vector< Wt::WString >())
 

Detailed Description

Template Form View.

This object replaces the base Wt::WTemplateFormView class with an extended functionality.

Definition at line 64 of file TemplateFormView.h.

Member Function Documentation

std::unique_ptr< Wt::WWidget > Wtx::TemplateFormView::createEditWidget ( Wt::WFormModel::Field  f)

Create Edit Widget.

An 'edit widget' is any kind of widget that offers editing functionality. The edit widget must at least derive from an Wt::WWidget but it should also provide functionality from WFormWidget, which includes the ability to set the value text and things like that.

Definition at line 157 of file TemplateFormView.cpp.

std::unique_ptr< Wt::WWidget > Wtx::TemplateFormView::createFormWidget ( Wt::WFormModel::Field  f)

Create Form Widget.

A 'form widget' is a widget that is used on a detail form. This means that at the very least the form widget must derive from the base class Wt::WWidget.

Definition at line 150 of file TemplateFormView.cpp.


The documentation for this class was generated from the following files: