net.sf.statcvs.reportmodel
public class Table extends java.lang.Object
Constructor and Description |
---|
Table(java.lang.String summary)
Creates a new table model
|
Modifier and Type | Method and Description |
---|---|
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
|
public Table(java.lang.String summary)
summary
- a short summary of the table data, intended for
non-visual web browserspublic 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