Package org.apache.fop.layoutmgr.table
Class TableRowIterator
- java.lang.Object
-
- org.apache.fop.layoutmgr.table.TableRowIterator
-
public class TableRowIterator extends java.lang.Object
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
Fields Modifier and Type Field Description 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.private java.util.Iterator
rowGroupsIter
protected int
rowIndex
private int
tablePart
Part of the table over which to iterate.
-
Constructor Summary
Constructors Constructor Description TableRowIterator(Table table, int tablePart)
Creates a new TableRowIterator.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) EffRow[]
getNextRowGroup()
Returns the next row group if any.
-
-
-
Field Detail
-
BODY
public static final int BODY
Selects the table-body elements for iteration.- See Also:
- Constant Field Values
-
HEADER
public static final int HEADER
Selects the table-header elements for iteration.- See Also:
- Constant Field Values
-
FOOTER
public static final int FOOTER
Selects the table-footer elements for iteration.- See Also:
- Constant Field Values
-
tablePart
private int tablePart
Part of the table over which to iterate. One of BODY, HEADER or FOOTER.
-
rowGroupsIter
private java.util.Iterator rowGroupsIter
-
rowIndex
protected int rowIndex
-
-
Constructor Detail
-
TableRowIterator
public TableRowIterator(Table table, int tablePart)
Creates a new TableRowIterator.- Parameters:
table
- the table to iterate overtablePart
- indicates what part of the table to iterate over (HEADER, FOOTER, BODY)
-
-
Method Detail
-
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
-
-