git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@603979 13f79535-47bb-0310-9956-ffa450edef68tags/fop-0_95beta
@@ -164,7 +164,7 @@ class FixedColRowGroupBuilder extends RowGroupBuilder { | |||
} | |||
/** {@inheritDoc} */ | |||
void endTablePart(TableBody tableBody) throws ValidationException { | |||
void endTablePart() throws ValidationException { | |||
if (rows.size() > 0) { | |||
throw new ValidationException( | |||
"A table-cell is spanning more rows than available in its parent element."); |
@@ -77,10 +77,9 @@ abstract class RowGroupBuilder { | |||
* row-group is checked for emptiness. This row group builder is reset for handling | |||
* further possible table parts. | |||
* | |||
* @param tableBody the table part being ended | |||
* @throws ValidationException if a row-spanning cell overflows the given table part | |||
*/ | |||
abstract void endTablePart(TableBody tableBody) throws ValidationException; | |||
abstract void endTablePart() throws ValidationException; | |||
/** | |||
* Receives notification of the end of the table. |
@@ -145,7 +145,7 @@ public class TableBody extends TableCellContainer { | |||
rowGroupBuilder.endRow(this); | |||
} | |||
try { | |||
rowGroupBuilder.endTablePart(this); | |||
rowGroupBuilder.endTablePart(); | |||
} catch (ValidationException e) { | |||
e.setLocator(locator); | |||
throw e; |
@@ -91,11 +91,11 @@ class VariableColRowGroupBuilder extends RowGroupBuilder { | |||
} | |||
/** {@inheritDoc} */ | |||
void endTablePart(final TableBody tableBody) throws ValidationException { | |||
void endTablePart() throws ValidationException { | |||
// TODO catch the ValidationException sooner? | |||
events.add(new Event() { | |||
public void play(RowGroupBuilder rowGroupBuilder) throws ValidationException { | |||
rowGroupBuilder.endTablePart(tableBody); | |||
rowGroupBuilder.endTablePart(); | |||
} | |||
}); | |||
} |