Package org.apache.fop.fo.flow.table
Class CollapsingBorderResolver.Resolver
java.lang.Object
org.apache.fop.fo.flow.table.CollapsingBorderResolver.Resolver
- Direct Known Subclasses:
CollapsingBorderResolver.ResolverInBody,CollapsingBorderResolver.ResolverInFooter,CollapsingBorderResolver.ResolverInHeader
- Enclosing class:
CollapsingBorderResolver
Base class for delegate resolvers. Implementation of the State design pattern: the
treatment differs slightly whether we are in the table's header, footer or body. To
avoid complicated if statements, specialised delegate resolvers will be used
instead.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate BorderSpecificationprivate BorderSpecificationprotected booleanprotected TablePart -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) voidendPart()(package private) voidendRow(List<GridUnit> row, TableCellContainer container) Resolves the applicable borders for the given row.(package private) abstract voidendTable()(package private) voidIntegrates either border-before specified on the table and its columns if the table has no header, or border-after specified on the cells of the header's last row.(package private) voidIntegrates either border-after specified on the table and its columns if the table has no footer, or border-before specified on the cells of the footer's first row.(package private) voidresolveBordersBetweenRows(List<GridUnit> rowBefore, List<GridUnit> rowAfter) Resolves border-after for the first row, border-before for the second one.(package private) voidresolveBordersFirstRowInTable(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates border-before specified on the table and its column.(package private) voidresolveBordersLastRowInPart(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates the border-after of the part.(package private) voidresolveBordersLastRowInTable(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates border-after specified on the table and its columns.(package private) void
-
Field Details
-
tablePart
-
firstInPart
protected boolean firstInPart -
borderStartTableAndBody
-
borderEndTableAndBody
-
-
Constructor Details
-
Resolver
private Resolver()
-
-
Method Details
-
resolveBordersFirstRowInTable
void resolveBordersFirstRowInTable(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates border-before specified on the table and its column.- Parameters:
row- the first row of the table (in the header, or in the body if the table has no header)withNormal-withLeadingTrailing-withRest-
-
resolveBordersBetweenRows
Resolves border-after for the first row, border-before for the second one.- Parameters:
rowBefore-rowAfter-
-
resolveBordersLastRowInPart
void resolveBordersLastRowInPart(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates the border-after of the part. -
resolveBordersLastRowInTable
void resolveBordersLastRowInTable(List<GridUnit> row, boolean withNormal, boolean withLeadingTrailing, boolean withRest) Integrates border-after specified on the table and its columns.- Parameters:
row- the last row of the footer, or of the last body if the table has no footerwithNormal-withLeadingTrailing-withRest-
-
integrateLeadingBorders
Integrates either border-before specified on the table and its columns if the table has no header, or border-after specified on the cells of the header's last row. For the case the grid unit are at the top of a page.- Parameters:
row-
-
integrateTrailingBorders
Integrates either border-after specified on the table and its columns if the table has no footer, or border-before specified on the cells of the footer's first row. For the case the grid unit are at the bottom of a page.- Parameters:
row-
-
startPart
-
endRow
Resolves the applicable borders for the given row.- Integrates the border-before/after of the containing table-row if any;
- Integrates the border-before of the containing part, if first row;
- Resolves border-start/end between grid units.
- Parameters:
row- the row being finishedcontainer- the containing element
-
endPart
void endPart() -
endTable
abstract void endTable()
-