|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecteu.reservoir.monitoring.core.table.DefaultTable
public class DefaultTable
A default implementation of a Table.
Constructor Summary | |
---|---|
DefaultTable()
Construct a Table. |
Method Summary | |
---|---|
Table |
addRow(java.util.List<TableValue> values)
Add a row to the table. |
Table |
addRow(TableRow row)
Add a row to the table. |
Table |
defineTable(java.util.List<TableAttribute> attrs)
Define all columns. |
Table |
defineTable(TableHeader header)
Define all columns |
int |
getColumnCount()
Get the number of columns in the table. |
TableHeader |
getColumnDefinitions()
Get the list of all the column definitions. |
TableRow |
getRow(int rowNo)
Get a row. |
int |
getRowCount()
Get the number of rows in the table. |
java.util.List<TableRow> |
toList()
Convert the Table to a List of TableRows. |
java.lang.String |
toString()
To String for a table, prints the header and the rows. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DefaultTable()
Method Detail |
---|
public Table defineTable(TableHeader header)
defineTable
in interface Table
public Table defineTable(java.util.List<TableAttribute> attrs)
defineTable
in interface Table
public Table addRow(TableRow row) throws TableException, TypeException
addRow
in interface Table
TableException
TypeException
public Table addRow(java.util.List<TableValue> values) throws TableException, TypeException
addRow
in interface Table
TableException
TypeException
public TableRow getRow(int rowNo)
getRow
in interface Table
public int getColumnCount()
getColumnCount
in interface Table
public int getRowCount()
getRowCount
in interface Table
public TableHeader getColumnDefinitions()
getColumnDefinitions
in interface Table
public java.util.List<TableRow> toList()
toList
in interface Table
public java.lang.String toString()
toString
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |