|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
Table
This class represents the entity of a table. With it, one can add data in varying ways using the methods specified.
| Constructor Summary | |
Table(var $columns,
var $tp,
var $ftp)
Constructs a Table with the specified amount of columns. |
|
| Method Summary | |
void |
add(var $data,
var $colSpan,
var $ftp)
Adds data to the current table cell. |
void |
closeTable()
Creates the necessary HTML footer for the table. |
void |
fillRow()
Fills the current row if not a new row. |
FontProperties |
getFontProperties()
Gets the current font properties of the table. |
TableProperties |
getTableProperties()
Gets the current table properties of the table. |
void |
nextRow()
Advances to the next row from the current row. |
void |
openTable()
Creates an HTML header for the table. |
void |
setFontProperties(var $ftp)
Sets the font properties to the specified value. |
void |
setTableProperties(var $tp)
Sets the table properties to the specified value. |
void |
spacerRow(var $rows)
Creates a "spacer" row. |
java.lang.String |
toString()
Returns a string representation of the current table. |
| Constructor Detail |
public Table(var $columns,
var $tp,
var $ftp)
$columns - int specifying amount of columns$tp - TableProperties specifying properties of table$ftp - FontProperties specifying font of table$columns - Default Value: 1$tp - Default Value: ""$ftp - Default Value: ""| Method Detail |
public TableProperties getTableProperties()
public FontProperties getFontProperties()
public void setTableProperties(var $tp)
$tp - TableProperties specifying table propertiespublic void setFontProperties(var $ftp)
$ftp - FontProperties specifying font propertiespublic java.lang.String toString()
public void add(var $data,
var $colSpan,
var $ftp)
$data - String specifying the data to be added$colSpan - amount of cells to span across$ftp - FontProperties to use for current cell$data - Default Value: ""$colSpan - Default Value: 1$ftp - Default Value: ""public void nextRow()
One should not that even if on a new row, the method will fill that row and bring it up to the next row.
public void fillRow()
public void spacerRow(var $rows)
$rows - int specifying how many rows to create$rows - Default Value: 1public void openTable()
public void closeTable()
|
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||