| java.lang.Object org.apache.fop.layoutmgr.table.TableRowIterator
TableRowIterator | public class TableRowIterator (Code) | | 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 | |
final public static int | BODY Selects the table-body elements for iteration. | final public static int | FOOTER Selects the table-footer elements for iteration. | final public static int | HEADER Selects the table-header elements for iteration. | protected Table | table The table on which this instance operates. |
BODY | final public static int BODY(Code) | | Selects the table-body elements for iteration.
|
FOOTER | final public static int FOOTER(Code) | | Selects the table-footer elements for iteration.
|
HEADER | final public static int HEADER(Code) | | Selects the table-header elements for iteration.
|
table | protected Table table(Code) | | The table on which this instance operates.
|
TableRowIterator | public TableRowIterator(Table table, ColumnSetup columns, int tablePart)(Code) | | Creates a new TableRowIterator.
Parameters: table - the table to iterate over Parameters: columns - the column setup for the table Parameters: tablePart - indicates what part of the table to iterate over (HEADER, FOOTER, BODY) |
getFirstRow | public EffRow getFirstRow()(Code) | | Returns the first effective row.
the requested effective row. |
getFollowingRow | public EffRow getFollowingRow(EffRow row)(Code) | | Returns the row following the given row, without moving the iterator.
Parameters: row - a row in the iterated table part the following row, or null if there is no more row |
getLastRow | public EffRow getLastRow()(Code) | | Returns the last effective row.
Note:This is inefficient for large tables because the whole table
if preloaded.
the requested effective row. |
getNextRowGroup | public EffRow[] getNextRowGroup()(Code) | | Returns the next row group if any. A row group in this context is the minimum number of
consecutive rows which contains all spanned grid units of its cells.
the next row group, or null |
getPrecedingRow | public EffRow getPrecedingRow(EffRow row)(Code) | | Returns the row preceding the given row, without moving the iterator.
Parameters: row - a row in the iterated table part the preceding row, or null if there is no such row (the given row is thefirst one in the table part) |
|
|