Wtx ~ Wt Extension Library
WtxLib
|
Public Member Functions | |
DetailForm (const std::string &tn) | |
DetailForm (const std::string &tn, Wt::Dbo::ptr< C > &item) | |
const std::string & | templateName () const |
virtual bool | allowChange () const |
Allow Change. | |
virtual bool | allowDelete () const |
Allow Delete. | |
virtual bool | allowPrint () const |
Allow Print. | |
virtual bool | allowUnlock () const |
Allow Unlock. | |
virtual bool | beforeUpdate () |
before update stub More... | |
virtual bool | afterUpdate () |
after update stub More... | |
virtual bool | beforeAccept () |
before accept stub More... | |
virtual bool | afterAccept () |
after accept stub More... | |
virtual bool | refreshTableOnSave () |
refresh underlying table on save More... | |
virtual bool | onDelete () |
when the delete button is pushed | |
virtual bool | onPrint () |
when the print button is pushed | |
virtual bool | onUnlock () |
when the unlock button is pushed | |
virtual std::string | additional () |
virtual bool | onAdditional (const std::string &buttonText) |
virtual void | popupMessage (const std::string &message) |
virtual Wtx::MessageBox * | messageBox (const std::string &message) |
void | save () |
void | close () |
void | deleteItem (bool noask=true) |
void | refresh () |
Wt::Signal & | doSave () |
Wt::Signal & | doClose () |
Wt::Signal< bool > & | doDeleteItem () |
Wt::Signal & | doRefresh () |
Public Member Functions inherited from Wtx::Dbo::TemplateFormView< C > | |
TemplateFormView (const Wt::WString &text) | |
TemplateFormView (const Wt::WString &text, std::unique_ptr< Wtx::Dbo::FormModel< C > > model) | |
Constructor with Model. | |
Wtx::Dbo::FormModel< C > * | formModel () const |
Internal Form Model. More... | |
void | setFormModel (std::unique_ptr< Wtx::Dbo::FormModel< C > > model) |
Wtx::Dbo::FormModel< C > * | formModel (Wt::WFormModel *model) |
Wtx::Dbo::FieldDefBase * | fieldDef (Wt::WFormModel *model, Wt::WFormModel::Field field) |
virtual void | on_focussed (FormWidgetWrapper *fww) |
Focussed Stub. More... | |
virtual void | on_blurred (FormWidgetWrapper *fww) |
Blurred Stub. More... | |
virtual void | on_clicked (FormWidgetWrapper *fww) |
Clicked Stub. | |
std::unique_ptr< Wt::WWidget > | createFormWidget (Wt::WFormModel::Field field) |
void | resetEditWidgetChangedFlags () |
std::unique_ptr< Wt::WWidget > | createEditWidget (Wt::WFormModel::Field field) |
virtual void | updateView () |
virtual void | updateView (Wt::WFormModel *model) |
Update a View from a Model. More... | |
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 () |
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 | renderTemplate (std::ostream &result) |
std::vector< std::unique_ptr< FormWidgetWrapper > > & | formWidgetWrappers () |
Widget Wrapper Collection. | |
FormWidgetWrapper * | formWidgetWrapper (Wtx::Dbo::FieldDefBase &fieldDef) |
Get Form Widget Wrapper. More... | |
FormWidgetWrapper * | formWidgetWrapper (const std::string &fieldName) |
Wt::WFormWidget * | formWidget (Wtx::Dbo::FieldDefBase &fieldDef) |
Get Form Widget Wrapper. More... | |
Public Member Functions inherited from Wtx::TemplateFormView | |
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... | |
Protected Attributes | |
Wt::Signal | m_doSave |
Wt::Signal | m_doClose |
Wt::Signal< bool > | m_doDeleteItem |
Wt::Signal | m_doRefresh |
Additional Inherited Members | |
Protected Member Functions inherited from Wtx::TemplateFormView | |
void | show (const std::string &functionName, const std::string &varName, const std::vector< Wt::WString > &args=std::vector< Wt::WString >()) |
Definition at line 13 of file DetailForm.h.
|
inlinevirtual |
after accept stub
This should be handled in a sub-class. This function should return .true. that everything was completed.
Definition at line 145 of file DetailForm.h.
|
inlinevirtual |
after update stub
After the model is updated, this procedure can do things before anything else happens.
Definition at line 121 of file DetailForm.h.
|
inlinevirtual |
before accept stub
This should be handled in a sub-class. This function should return .true. that it is ok to save the item.
Definition at line 133 of file DetailForm.h.
|
inlinevirtual |
before update stub
Before the model is updated from the form, this function is called. It allows the derived class to perform things before data is removed from the form and placed in to the model.
Definition at line 109 of file DetailForm.h.
|
inlinevirtual |
refresh underlying table on save
If the detail form was opened from an underlying table-view, then when the detail item is saved, the underlying table needs to be refreshed. Sometimes this is not always desirable.
Definition at line 159 of file DetailForm.h.