diff options
Diffstat (limited to 'src/java/org/apache/fop/fo/flow/table/TableHeader.java')
-rw-r--r-- | src/java/org/apache/fop/fo/flow/table/TableHeader.java | 18 |
1 files changed, 6 insertions, 12 deletions
diff --git a/src/java/org/apache/fop/fo/flow/table/TableHeader.java b/src/java/org/apache/fop/fo/flow/table/TableHeader.java index 252ba1b8b..7f4173754 100644 --- a/src/java/org/apache/fop/fo/flow/table/TableHeader.java +++ b/src/java/org/apache/fop/fo/flow/table/TableHeader.java @@ -28,7 +28,7 @@ import org.apache.fop.fo.FONode; * Class modelling the <a href="http://www.w3.org/TR/xsl/#fo_table-header"> * <code>fo:table-header</code></a> object. */ -public class TableHeader extends TableBody { +public class TableHeader extends TablePart { /** * Create a TableHeader instance with the given {@link FONode} @@ -40,17 +40,15 @@ public class TableHeader extends TableBody { } /** {@inheritDoc} */ - public void startOfNode() throws FOPException { + protected void startOfNode() throws FOPException { super.startOfNode(); + getFOEventHandler().startHeader(this); } /** {@inheritDoc} */ - public void endOfNode() throws FOPException { - if (!(tableRowsFound || tableCellsFound)) { - missingChildElementError("marker* (table-row+|table-cell+)"); - } else { - finishLastRowGroup(); - } + protected void endOfNode() throws FOPException { + super.endOfNode(); + getFOEventHandler().endHeader(this); } /** {@inheritDoc} */ @@ -66,8 +64,4 @@ public class TableHeader extends TableBody { return FO_TABLE_HEADER; } - /** {@inheritDoc} */ - protected boolean isTableHeader() { - return true; - } } |