CHtmlTable Class Reference

CHtmlTable class operates the table data for XHTML. More...

#import <chtmltbl.h>

List of all members.

Public Member Functions

(id) - init
 Initialize html table instance.
(void) - dealloc
 Release the content of CSV data.
(XmlNode *) - rootNode
 Get root node of XHTML table.
(void) - setCaption:
 Set caption to the table.
(void) - setBorder:
 Set/reset the border line for table.
(int) - parseCsv:
 Generate XHTML table from CSV data.

Static Public Member Functions

(id) + parseCsv:caption:withBorder:
 Generate XHTML table from CSV data.

Protected Attributes

XmlNode * table_root
XmlNode * caption_node


Detailed Description

CHtmlTable class operates the table data for XHTML.

Description
CHtmlTable class operates the table data for XHTML.


Member Function Documentation

- (void) dealloc  
 

Release the content of CSV data.

Description
Release the content of CSV data.

- (id) init  
 

Initialize html table instance.

Returns:
Initialized object.
Description
Initialize html table instance.

- (int) parseCsv: (CCsv *)  csvtable  
 

Generate XHTML table from CSV data.

Returns:
Result status. Zero means no error.
Parameters:
csvtable Source table.
Description
Generate XHTML table from CSV data.

+ (id) parseCsv: (CCsv *)  csvtable
caption: (NSString *)  caption
withBorder: (BOOL)  withborder
 
 

Generate XHTML table from CSV data.

Parameters:
csvtable Source table.
caption Caption of the table. You can pass this by giving nil.
withborder True when border line (frame) is required for the table.
Description
Generate XHTML table from CSV data.

- (XmlNode *) rootNode  
 

Get root node of XHTML table.

Returns:
Root node of table.
Description

- (void) setBorder: (BOOL)  flag  
 

Set/reset the border line for table.

Parameters:
flag Set true if you need border.
Description
Set/reset the border line for the table. If you pass true, border is shown for HTML table.

- (void) setCaption: (NSString *)  caption  
 

Set caption to the table.

Parameters:
caption Caption string, If you pass nil, the current caption is removed.
Description
Set caption to the table. If you pass nil as caption, the current caption is removed.


Member Data Documentation

- (XmlNode*) caption_node [protected]
 

Caption node

- (XmlNode*) table_root [protected]
 

Root node of XHTML table.


The documentation for this class was generated from the following files:
Generated on Mon Mar 20 18:45:20 2006 for Coconut by  doxygen 1.4.6