OverView Index Help                                                                WebNMS Agent Toolkit C Edition 6 

htmltable.c
This file contains all the methods used to generate html code for the table. It contains the functions relating to initializing functions of table, cell and row constraints and all the implementations relating a HTML Table.
Return Type Method Summary
CHAR AddHtmlTableRow(StringBuffer *stBuf, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, Attribute **attrbs, CHAR *types, CHAR *listFlag, INT32 numCols)
             This function creates the html tags for displaying of the row using the cell and row constraints variables and the column values from the attribute array.
void FreeHtmlTableRowCellConstraints(HtmlTableConstraints *tabCons, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, INT32 colNum)
             This function frees the allocated memory for the storage of values in the table,row and cell constraint structure variables.
CHAR InitHtmlTableConstraints(HtmlTableConstraints *tabCons, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, INT32 colNum)
             This function Initializes the table, row and cell constraint structure varaibles with the corresponding values which are specified in the htmlprops file.
CHAR InitHtmlTableHeaderCellAndRowConstraints(HtmlTableCellConstraints **cellCons, HtmlTableRowConstraints *rowCons, INT32 num)
             This function initializes the cell and row constraints structure variables with the default values for the display of the header of a table.
CHAR SetHtmlTableProperties(StringBuffer *stBuf, HtmlTableConstraints *tabCons, INT32 flag)
             This function creates the html tags for displaying a table If the input flag argument is true then the table tag is opened and closed if it is false.
   
Method Details

AddHtmlTableRow()

CHAR AddHtmlTableRow(StringBuffer *stBuf, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, Attribute **attrbs, CHAR *types, CHAR *listFlag, INT32 numCols)

This function creates the html tags for displaying of the row using the cell and row constraints variables and the column values from the attribute array.

Arguments:
1. StringBuffer (IN/OUT).
2. RowConstraints Ptr (IN).
3. CellConstraints array (IN).
4. Attribute Array (IN).
5. Number of columns (IN).
Return type:
Exit Status.
Bugs:
null

FreeHtmlTableRowCellConstraints()

void FreeHtmlTableRowCellConstraints(HtmlTableConstraints *tabCons, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, INT32 colNum)

This function frees the allocated memory for the storage of values in the table,row and cell constraint structure variables.

Arguments:
1. HtmlTableConstraints(IN).
2. HtmlTableRow Constraints(IN).
3. HtmlTableCellConstraints(IN).
4. Column Length(IN).
Return type:
Nothing.
Bugs:
null

InitHtmlTableConstraints()

CHAR InitHtmlTableConstraints(HtmlTableConstraints *tabCons, HtmlTableRowConstraints *rowCons, HtmlTableCellConstraints **cellCons, INT32 colNum)

This function Initializes the table, row and cell constraint structure varaibles with the corresponding values which are specified in the htmlprops file.

Arguments:
1. HtmlTableConstraints Pointer(IN/OUT).
2. HtmlTableRow Constraints Pointer(IN/OUT).
3. HtmlTableCell Constraints array(IN/OUT).
4. Number Of columns for the table (IN).
Return type:
Exit Status.
Bugs:
null

InitHtmlTableHeaderCellRowConstraints()

CHAR InitHtmlTableHeaderCellAndRowConstraints(HtmlTableCellConstraints **cellCons, HtmlTableRowConstraints *rowCons, INT32 num)

This function initializes the cell and row constraints structure variables with the default values for the display of the header of a table.

Arguments:
1. HtmlTableCellConstraints (IN/OUT).
2. HtmlTableRow Constraints (IN/OUT).
3. Number of CellCons (IN).
Return type:
Exit Status.
Bugs:
null

SetHtmlTableProperties()

CHAR SetHtmlTableProperties(StringBuffer *stBuf, HtmlTableConstraints *tabCons, INT32 flag)

This function creates the html tags for displaying a table If the input flag argument is true then the table tag is opened and closed if it is false.

Arguments:
1. String Buffer (IN/OUT).
2. Table Constraints Ptr (IN).
3. Flag determines start or end tag (IN).
Return type:
Exit Status.
Bugs:
null


OverView Index Help                                                                WebNMS Agent Toolkit C Edition 6 

Copyright (c) 2009 ZOHO Corp. All Rights Reserved.