Package org.apache.fop.fo.flow.table
Class RowGroupBuilder
- java.lang.Object
-
- org.apache.fop.fo.flow.table.RowGroupBuilder
-
- Direct Known Subclasses:
FixedColRowGroupBuilder,VariableColRowGroupBuilder
abstract class RowGroupBuilder extends java.lang.ObjectA class that creates groups of rows belonging to a same set of spans. The first row of such a group has only cells which don't span over several rows, or whose spanning starts on this row. Similarly, the last row has only non-row spanning cells or spans which end on this row.
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedRowGroupBuilder(Table t)Creates and initialises a new builder for the given table.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description (package private) abstract voidaddTableCell(TableCell cell)Adds a table-cell to the current row-group, creatingGridUnits accordingly.(package private) abstract voidendRow(TablePart part)Receives notification of the end of the current row, when the source contains no fo:table-row element.(package private) abstract voidendTable()Receives notification of the end of the table.(package private) abstract voidendTablePart()Receives notification of the end of a table-header/footer/body.(package private) abstract voidendTableRow()Receives notification of the end of the current row.(package private) abstract voidstartTablePart(TablePart part)Receives notification of the start of a table-header/footer/body.(package private) abstract voidstartTableRow(TableRow tableRow)Receives notification of the start of an fo:table-row element.
-
-
-
Field Detail
-
table
protected Table table
-
-
Constructor Detail
-
RowGroupBuilder
protected RowGroupBuilder(Table t)
Creates and initialises a new builder for the given table.- Parameters:
t- a table
-
-
Method Detail
-
addTableCell
abstract void addTableCell(TableCell cell)
Adds a table-cell to the current row-group, creatingGridUnits accordingly.- Parameters:
cell- the cell to add
-
startTableRow
abstract void startTableRow(TableRow tableRow)
Receives notification of the start of an fo:table-row element.- Parameters:
tableRow- the row being started
-
endTableRow
abstract void endTableRow()
Receives notification of the end of the current row. If the current row finishes the row group, theTablePart.addRowGroup(List)method of the parent table part will be called.
-
endRow
abstract void endRow(TablePart part)
Receives notification of the end of the current row, when the source contains no fo:table-row element. If the current row finishes the row group, theTablePart.addRowGroup(List)method of the given table part will be called.If the source does contain explicit fo:table-row elements, then the
endTableRow()method will be called instead.- Parameters:
part- the part containing the current row
-
startTablePart
abstract void startTablePart(TablePart part)
Receives notification of the start of a table-header/footer/body.- Parameters:
part- the part being started
-
endTablePart
abstract void endTablePart() throws ValidationExceptionReceives notification of the end of a table-header/footer/body. The current row-group is checked for emptiness. This row group builder is reset for handling further possible table parts.- Throws:
ValidationException- if a row-spanning cell overflows the given table part
-
endTable
abstract void endTable() throws ValidationExceptionReceives notification of the end of the table.- Throws:
ValidationException- if a row-spanning cell overflows one of the table's parts
-
-