|
|||||||||
| 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 Tablepublic Table defineTable(java.util.List<TableAttribute> attrs)
defineTable in interface Table
public Table addRow(TableRow row)
throws TableException,
TypeException
addRow in interface TableTableException
TypeException
public Table addRow(java.util.List<TableValue> values)
throws TableException,
TypeException
addRow in interface TableTableException
TypeExceptionpublic TableRow getRow(int rowNo)
getRow in interface Tablepublic int getColumnCount()
getColumnCount in interface Tablepublic int getRowCount()
getRowCount in interface Tablepublic TableHeader getColumnDefinitions()
getColumnDefinitions in interface Tablepublic java.util.List<TableRow> toList()
toList in interface Tablepublic 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 | ||||||||