Top Inners Fields Constructors Methods
com.openhtmltopdf.newtable

public Class TableBox

extends BlockBox
Class Inheritance
Imports
java.awt.Rectangle, java.util.*, java.util.logging.Level, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.style.CalculatedStyle, .CssContext, .Length, com.openhtmltopdf.css.style.derived.BorderPropertySet, .RectPropertySet, com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.BlockBox, .Box, .ContentLimit, .ContentLimitContainer, .PageBox, .RenderingContext, com.openhtmltopdf.util.ArrayUtil, .LogMessageId, .XRLog

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
private static class
TableBox.MarginTableLayout

A specialization of AutoTableLayout used for laying out the tables used to approximate the margin box layout algorithm from CSS3 GCPM.

private static interface

Field Summary

Modifier and TypeField and Description
private int[]
private final List<ColumnData>
private ContentLimitContainer
private int
private int
private boolean
private int
private List<TableColumn>
private TableBox.TableLayout
Inherited from com.openhtmltopdf.render.BlockBox:
NO_BASELINEPOSITION_BOTHPOSITION_HORIZONTALLYPOSITION_VERTICALLY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public void
private void
public void
public void
appendColumn(int span)

private void
public int
public int
protected void
public void
private void
private void
protected TableCellBox
protected TableCellBox
protected TableCellBox
protected TableCellBox
public TableColumn
colElement(int col)

public int
colToEffCol(int col)

public BlockBox
public int
effColToCol(int effCol)

public BorderPropertySet
public Rectangle
public int[]
public List<ColumnData>
private Rectangle
protected int
public int
public int
public TableRowBox
public TableRowBox
protected int
public List<TableColumn>
private Iterable<TableSectionBox>
public boolean
protected boolean
public boolean
protected boolean
private boolean
public boolean

Returns:

true if the table is rendered on its first page. false if the table is rendered after a page break
isTableRenderedOnFirstPage
(RenderingContext context)

public void
protected void
private int
private int
private void
public int
marginsBordersPaddingAndSpacing(CssContext c, boolean ignoreAutoMargins)

public int
public void
public void
private void
public void
reset(LayoutContext c)

Overrides com.openhtmltopdf.render.BlockBox.reset.

Responsible for resetting the state of the box before a repeat call to BlockBox#layout(LayoutContext) or other layout methods.

protected void
protected TableSectionBox
sectionAbove(TableSectionBox section, boolean skipEmptySections)

protected TableSectionBox
sectionBelow(TableSectionBox section, boolean skipEmptySections)

private void
private void
setColumnPos(int[] columnPos)

public void
setExtraSpaceBottom(int extraSpaceBottom)

public void
setExtraSpaceTop(int extraSpaceTop)

public void
setMarginAreaRoot(boolean marginAreaRoot)

protected void
setPageClearance(int pageClearance)

public void
public int
spanOfEffCol(int effCol)

public void
splitColumn(int pos, int firstSpan)

private void
public void
private void
Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSHeightgetCSSWidthgetDocumentParentgetExtraBoxDescriptiongetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetNextCollapsableSiblinggetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentinitStaticPosisAutoHeightisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisSkipWhenCollapsingMarginsisTopMarginCalculatedlayoutlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpacesetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString