Wtx ~ Wt Extension Library
WtxLib
|
Table View Definition. More...
#include <TableViewDef.h>
Classes | |
class | ColumnDef |
Table View Column Def. More... | |
class | ViewDef |
Table View Definition. More... | |
Public Member Functions | |
bool | load (const std::string &name, const Wtx::Dbo::TableDef &tableDef, Wtx::Dbo::Session *session) |
bool | load (const Wtx::Dbo::TableDef &tableDef, Wtx::Dbo::Session *session) |
bool | load (const ViewDef &viewDef, Wtx::Dbo::Session *session) |
bool | save (const std::string &name, Wtx::Dbo::Session *session) |
bool | hasFlag (const std::string &value) |
void | editProperties () |
Wt::Signal & | changed () |
Public Attributes | |
std::string | m_name |
ViewDef | m_def |
Table View Definition.
The Table View Definition objet encapsulates all the settings required to build a table view. In order to build a complete table view, some of the settings must be applied to the data model, and some of the settings must be applied to the table view itself. This class brings all those settings in to one location, so they can be easily manipulated by the application.
The Table View Definition can be initialized through a number of methods; manually, where each setting is applied one at a time, through a Definition_t structure, where each value is specified in a statically initialized structure, or through a Json string, where each value appears similar to the static structure, but in Json format, making for easy back-end storage.
To create the view, it is a simple matter of creating a new view object, and applying the view layout definition to the constructor:
Definition at line 134 of file TableViewDef.h.
void Wtx::TableViewDef::editProperties | ( | ) |
Definition at line 326 of file TableViewDef.cpp.