|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.layoutmgr.table.TableRowIterator
public class TableRowIterator
Iterator that lets the table layout manager step over all the rows of a part of the table (table-header, table-footer or table-body).
Note: This class is not thread-safe.
Field Summary | |
---|---|
static int |
BODY
Selects the table-body elements for iteration. |
static int |
FOOTER
Selects the table-footer elements for iteration. |
static int |
HEADER
Selects the table-header elements for iteration. |
protected Table |
table
The table on which this instance operates. |
Constructor Summary | |
---|---|
TableRowIterator(Table table,
ColumnSetup columns,
int tablePart)
Creates a new TableRowIterator. |
Method Summary | |
---|---|
org.apache.fop.layoutmgr.table.EffRow |
getFirstRow()
Returns the first effective row. |
org.apache.fop.layoutmgr.table.EffRow |
getFollowingRow(org.apache.fop.layoutmgr.table.EffRow row)
Returns the row following the given row, without moving the iterator. |
org.apache.fop.layoutmgr.table.EffRow |
getLastRow()
Returns the last effective row. |
org.apache.fop.layoutmgr.table.EffRow[] |
getNextRowGroup()
Returns the next row group if any. |
org.apache.fop.layoutmgr.table.EffRow |
getPrecedingRow(org.apache.fop.layoutmgr.table.EffRow row)
Returns the row preceding the given row, without moving the iterator. |
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 tablePart)
table
- the table to iterate overcolumns
- the column setup for the tabletablePart
- indicates what part of the table to iterate over (HEADER, FOOTER, BODY)Method Detail |
---|
public org.apache.fop.layoutmgr.table.EffRow[] getNextRowGroup()
public org.apache.fop.layoutmgr.table.EffRow getPrecedingRow(org.apache.fop.layoutmgr.table.EffRow row)
row
- a row in the iterated table part
public org.apache.fop.layoutmgr.table.EffRow getFollowingRow(org.apache.fop.layoutmgr.table.EffRow row)
row
- a row in the iterated table part
public org.apache.fop.layoutmgr.table.EffRow getFirstRow()
public org.apache.fop.layoutmgr.table.EffRow getLastRow()
Note:This is inefficient for large tables because the whole table if preloaded.
|
fop 0.94 | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |