Class TableRowIterator

java.lang.Object
org.apache.fop.layoutmgr.table.TableRowIterator

public class TableRowIterator extends 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 Details

    • BODY

      public static final int BODY
      Selects the table-body elements for iteration.
      See Also:
    • tablePart

      private int tablePart
      Part of the table over which to iterate. One of BODY, HEADER or FOOTER.
    • rowGroupsIter

      private Iterator rowGroupsIter
    • rowIndex

      private int rowIndex
  • Constructor Details

    • TableRowIterator

      public TableRowIterator(Table table, int tablePart)
      Creates a new TableRowIterator.
      Parameters:
      table - the table to iterate over
      tablePart - 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