|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.statcvs.reportmodel.Table
Represents a data table for a report. Columns may be added to the table. Values can be added to the columns. Finally, the table can be rendered as HTML.
Constructor Summary | |
Table(java.lang.String summary)
Creates a new table model |
Method Summary | |
void |
addColumn(Column column)
Adds a column to the table |
java.util.Iterator |
getColumnIterator()
Returns an iterator of all Column objects of the table |
int |
getRowCount()
Returns the number of data rows in the table. |
java.lang.String |
getSummary()
Returns the summary text of the table. |
boolean |
hasKeysInFirstColumn()
Returns if the first column contains keys that identify each row |
void |
setKeysInFirstColumn(boolean enabled)
set if the first column contains keys that identify each row |
void |
setShowTotals(boolean enabled)
set if totals of each column should be shown |
boolean |
showTotals()
Returns if totals of each column should be shown |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Table(java.lang.String summary)
summary
- a short summary of the table data, intended for
non-visual web browsersMethod Detail |
public void setKeysInFirstColumn(boolean enabled)
enabled
- true if first column contains keyspublic boolean hasKeysInFirstColumn()
public void setShowTotals(boolean enabled)
enabled
- true if totals should be shownpublic boolean showTotals()
public java.lang.String getSummary()
public int getRowCount()
public void addColumn(Column column)
column
- the columnpublic java.util.Iterator getColumnIterator()
Column
objects of the table
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |