Defined in file: hzDissemino.h
Derivative of: hdsVE
The hdsTable class as a visible entity is arguably a misnomer because it does not itself generate a visible manifestation. Instead it controls the presentation of sets of objects or values by child visible entities. hdsLoop is as its name implies, a loop controller. HTML is generated via the subtags for each object or value in the set. In the configs hdsLoop instances are effected by the <xloop> tag. This requires an attribute of 'src' to specify the source of the list. This can be either a single class member of a single object that is itself a list (of objects or values) or it can be search criteria whose result will be a set of objects which, because we are not using SQL, is nessesarily limited to one class. Where the result is a list of values, the <xloop> subtags would generally be list tags (<ul> and <li>) and where the result is a list of objects, the <xloop> subtags would generally be table tags. In the configs, the list or table subtag contents (the values to be displayed) are derived from the usual percent notation used for variables. There is no need for subscripts to the variables as within an <xloop> the context is always taken to mean 'the current iteration' of the loop ie the current member of the list.
Constructors/Detructors
| hdsTable* | hdsTable | (hdsApp* pApp) | |
| NULL-TYPE | hdsTable | (hdsApp* pApp) | |
| void | ~hdsTable | (void) | |
| NULL-TYPE | ~hdsTable | (void) |
Public Methods:
| void | Generate | (hzChain& C)hzHttpEvent* pE, uint32_t& nLine, | Does not in itself produce HTML but the subtags do. The complete set of subtags are called for each member of the list the hdsTable controls. Returns: None |
| xTag | Whatami | (void) |
Member Variables:
| hzList<hdsCol> | m_Cols | Column names | |
| hzString | m_Criteria | Selection criteria | |
| hzString | m_Repos | Data source name (repository class name, directory name) | |
| bool | m_bEdit | Make table cells editable | |
| uint32_t | m_nHeight | Width of table | |
| uint32_t | m_nRows | Number of rows to display | |
| uint32_t | m_nWidth | Width of table | |
| hdsVE* | m_pFoot | HTML to be displayed after listing | |
| hdsVE* | m_pHead | HTML to be displayed before listing | |
| hdsVE* | m_pNone | HTML to be dispalyed in the event of no files/directories found | |
| hdbObjRepos* | m_pRepos | Data repository |