Browse Source

Removed parameter from the endTablePart method, as the part is already passed as as a parameter of the previously called startTablePart method


git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@603979 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_95beta
Vincent Hennebert 16 years ago
parent
commit
4090cb5924

+ 1
- 1
src/java/org/apache/fop/fo/flow/table/FixedColRowGroupBuilder.java View File

@@ -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.");

+ 1
- 2
src/java/org/apache/fop/fo/flow/table/RowGroupBuilder.java View File

@@ -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.

+ 1
- 1
src/java/org/apache/fop/fo/flow/table/TableBody.java View File

@@ -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;

+ 2
- 2
src/java/org/apache/fop/fo/flow/table/VariableColRowGroupBuilder.java View File

@@ -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();
}
});
}

Loading…
Cancel
Save