Package org.apache.fop.layoutmgr.table
Class TableRowIterator
java.lang.Object
org.apache.fop.layoutmgr.table.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
FieldsModifier and TypeFieldDescriptionstatic final int
Selects the table-body elements for iteration.static final int
Selects the table-footer elements for iteration.static final int
Selects the table-header elements for iteration.private Iterator
protected int
private int
Part of the table over which to iterate. -
Constructor Summary
ConstructorsConstructorDescriptionTableRowIterator
(Table table, int tablePart) Creates a new TableRowIterator. -
Method Summary
-
Field Details
-
BODY
public static final int BODYSelects the table-body elements for iteration.- See Also:
-
HEADER
public static final int HEADERSelects the table-header elements for iteration.- See Also:
-
FOOTER
public static final int FOOTERSelects the table-footer elements for iteration.- See Also:
-
tablePart
private int tablePartPart of the table over which to iterate. One of BODY, HEADER or FOOTER. -
rowGroupsIter
-
rowIndex
protected int rowIndex
-
-
Constructor Details
-
TableRowIterator
Creates a new TableRowIterator.- Parameters:
table
- the table to iterate overtablePart
- indicates what part of the table to iterate over (HEADER, FOOTER, BODY)
-
-
Method Details
-
getNextRowGroup
EffRow[] getNextRowGroup()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.- Returns:
- the next row group, or null
-