|
fop 0.92beta | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.table.TableRowIterator
Iterator that lets the table layout manager step over all rows of a table.
Note: This class is not thread-safe.
Field Summary | |
static int |
BODY
Selects the list of table-body elements for iteration. |
static int |
FOOTER
Selects the table-footer element for iteration. |
static int |
HEADER
Selects the table-header element for iteration. |
protected Table |
table
The table on with this instance operates. |
Constructor Summary | |
TableRowIterator(Table table,
ColumnSetup columns,
int what)
Creates a new TableRowIterator. |
Method Summary | |
void |
backToPreviousRow()
Sets the iterator to the previous row. |
EffRow |
getCachedRow(int index)
Returns a cached effective row. |
EffRow |
getFirstRow()
Returns the first effective row. |
EffRow |
getLastRow()
Returns the last effective row. |
EffRow |
getNextRow()
Retuns the next effective row. |
EffRow[] |
getNextRowGroup()
Returns the next row group if any. |
void |
prefetchAll()
Preloads the whole table. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int BODY
public static final int HEADER
public static final int FOOTER
protected Table table
Constructor Detail |
public TableRowIterator(Table table, ColumnSetup columns, int what)
table
- the table to iterate overcolumns
- the column setup for the tablewhat
- indicates what part of the table to iterate over (HEADER, FOOTER, BODY)Method Detail |
public void prefetchAll()
Preloads the whole table.
Note:This is inefficient for large tables.
public EffRow[] getNextRowGroup()
public EffRow getNextRow()
public void backToPreviousRow()
public EffRow getFirstRow()
public EffRow getLastRow()
Returns the last effective row.
Note:This is inefficient for large tables because the whole table if preloaded.
public EffRow getCachedRow(int index)
index
- index of the row (zero-based)
|
fop 0.92beta | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |