46 #ifndef __WTX_FORMMODEL_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 47 #define __WTX_FORMMODEL_H_234e0174_6b7d_11e8_b503_fb1ef3651ec0__ 49 #include <Wt/WFormModel.h> 50 #include <Wt/WLineEdit.h> 51 #include <Wt/Dbo/Field.h> 53 #include "Dbo/Session.h" 54 #include "Dbo/TableDef.h" 65 :
public Wt::WFormModel
79 virtual bool validate();
81 virtual bool isVisible( Wt::WFormModel::Field field )
const;
83 virtual bool isReadOnly( Wt::WFormModel::Field field )
const;
85 virtual Wt::WString label( Wt::WFormModel::Field field )
const;
87 virtual void setValue( Wt::WFormModel::Field field,
const Wt::cpp17::any &value );
89 virtual const Wt::cpp17::any & value( Wt::WFormModel::Field field )
const;
91 virtual Wt::WString valueText( Wt::WFormModel::Field field )
const;
93 virtual void setValidator( Wt::WFormModel::Field field,
const std::shared_ptr< Wt::WValidator > &validator );
95 virtual std::shared_ptr< Wt::WValidator > validator( Wt::WFormModel::Field field )
const;
97 virtual bool validateField( Wt::WFormModel::Field field );
99 virtual void setValidated( Wt::WFormModel::Field field,
bool validated );
101 virtual bool isValidated( Wt::WFormModel::Field field )
const;
103 virtual void setValidation( Wt::WFormModel::Field field,
const Wt::WValidator::Result &result );