|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--com.generationjava.io.Table
Represents a table of information. A Table consists of a Collection of TableRows. Some dubious design with regards to the iteratorness.
| Constructor Summary | |
Table()
An empty table. |
|
Table(java.util.Collection coll2d)
Build a table from a Collection of Objects. |
|
| Method Summary | |
void |
addRow(java.lang.Object obj)
Add a Row. |
boolean |
firstRow()
Are we currently on the first row? |
int[] |
getColumnWidths()
Get the widths of each column in an array. |
int |
getNumberOfColumns()
Number of columns in this table. |
int |
getNumberOfRows()
Number of rows in this table. |
int |
getWidth()
Get the width of all the columns added together. |
boolean |
hasNext()
Used to iterate over the table. |
boolean |
lastRow()
Are we on the last row? |
java.lang.Object |
next()
Get the next value from the table. |
void |
remove()
Iterator interface. |
void |
reset()
Reset the iterator. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public Table()
public Table(java.util.Collection coll2d)
| Method Detail |
public void addRow(java.lang.Object obj)
public boolean hasNext()
hasNext in interface java.util.Iteratorpublic java.lang.Object next()
next in interface java.util.Iteratorpublic void reset()
public void remove()
remove in interface java.util.Iteratorpublic boolean firstRow()
public boolean lastRow()
public int getNumberOfRows()
public int getNumberOfColumns()
public int getWidth()
public int[] getColumnWidths()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||