Top Fields Constructors Methods
com.openhtmltopdf.newtable

public Class TableRowBox

extends BlockBox
Class Inheritance
Imports
java.awt.Rectangle, java.io.IOException, .Writer, java.util.List, com.openhtmltopdf.css.constants.CSSName, .IdentValue, com.openhtmltopdf.css.style.CssContext, com.openhtmltopdf.css.style.derived.BorderPropertySet, .RectPropertySet, com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.BlockBox, .Box, .ContentLimitContainer, .PageBox, .RenderingContext

Field Summary

Modifier and TypeField and Description
private int
private ContentLimitContainer
private int
private int
private boolean
private int
Inherited from com.openhtmltopdf.render.BlockBox:
NO_BASELINEPOSITION_BOTHPOSITION_HORIZONTALLYPOSITION_VERTICALLY

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private void
private boolean
public void
private void
private void
private void
protected void
private int
private void
public BlockBox
public void
public int
public int
public ContentLimitContainer
protected String
public int
public int
public int
protected BlockBox
private TableSectionBox
private TableBox
private Iterable<TableCellBox>
public void
public boolean
public boolean
private boolean
private boolean
protected boolean
public void
private void
layoutCell(LayoutContext c, TableCellBox cell, int contentStart)

protected void
public void
public void
private void
relayoutCell(LayoutContext c, TableCellBox cell, int contentStart)

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.

public void
setBaseline(int baseline)

private void
public void
public void
setExtraSpaceBottom(int extraSpaceBottom)

public void
setExtraSpaceTop(int extraSpaceTop)

public void
setHaveBaseline(boolean haveBaseline)

public void
setHeightOverride(int heightOverride)

Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcalcInlineBaselinecalcMinMaxWidthcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSHeightgetCSSWidthgetCSSWidthgetDocumentParentgetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetPageClearancegetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentisAllowHeightToShrinkisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMayCollapseMarginsWithChildrenisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisTopMarginCalculatedlayoutlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpaceresolveAutoMarginssetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString

Field Detail

_baselineback to summary
private int _baseline
_contentLimitContainerback to summary
private ContentLimitContainer _contentLimitContainer
_extraSpaceBottomback to summary
private int _extraSpaceBottom
_extraSpaceTopback to summary
private int _extraSpaceTop
_haveBaselineback to summary
private boolean _haveBaseline
_heightOverrideback to summary
private int _heightOverride

Constructor Detail

TableRowBoxback to summary
public TableRowBox()

Method Detail

alignBaselineAlignedCellsback to summary
private void alignBaselineAlignedCells(LayoutContext c)
alignMiddleAndBottomAlignedCellsback to summary
private boolean alignMiddleAndBottomAlignedCells(LayoutContext c)
analyzePageBreaksback to summary
public void analyzePageBreaks(LayoutContext c, ContentLimitContainer container)

Overrides com.openhtmltopdf.render.Box.analyzePageBreaks.

Annotations
@Override
calcDefaultBaselineback to summary
private void calcDefaultBaseline(LayoutContext c)
calcExtraSpaceBottomback to summary
private void calcExtraSpaceBottom(LayoutContext c)
calcExtraSpaceTopback to summary
private void calcExtraSpaceTop(LayoutContext c)
calcLayoutHeightback to summary
protected void calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)

Overrides com.openhtmltopdf.render.BlockBox.calcLayoutHeight.

Doc from com.openhtmltopdf.render.BlockBox.calcLayoutHeight.

Oh oh! Up to this method height is used to track content height. After this method it is used to track total layout height!

calcMiddleBottomDeltaYback to summary
private int calcMiddleBottomDeltaY(TableCellBox cell, IdentValue verticalAlign)
calcRowHeightback to summary
private void calcRowHeight(CssContext c)
copyOfback to summary
public BlockBox copyOf()

Overrides com.openhtmltopdf.render.BlockBox.copyOf.

Annotations
@Override
exportTextback to summary
public void exportText(RenderingContext c, Writer writer) throws IOException

Overrides com.openhtmltopdf.render.Box.exportText.

Annotations
@Override
forcePageBreakBeforeback to summary
public int forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName)

Overrides com.openhtmltopdf.render.Box.forcePageBreakBefore.

Annotations
@Override
getBaselineback to summary
public int getBaseline()
getContentLimitContainerback to summary
public ContentLimitContainer getContentLimitContainer()
getExtraBoxDescriptionback to summary
protected String getExtraBoxDescription()

Overrides com.openhtmltopdf.render.BlockBox.getExtraBoxDescription.

getExtraSpaceBottomback to summary
public int getExtraSpaceBottom()
getExtraSpaceTopback to summary
public int getExtraSpaceTop()
getHeightOverrideback to summary
public int getHeightOverride()
getNextCollapsableSiblingback to summary
protected BlockBox getNextCollapsableSibling(BlockBox.MarginCollapseResult collapsedMargin)

Overrides com.openhtmltopdf.render.BlockBox.getNextCollapsableSibling.

Annotations
@Override
getSectionback to summary
private TableSectionBox getSection()
getTableback to summary
private TableBox getTable()
getTableCellsback to summary
private Iterable<TableCellBox> getTableCells()
initStaticPosback to summary
public void initStaticPos(LayoutContext c, BlockBox parent, int childOffset)

Overrides com.openhtmltopdf.render.BlockBox.initStaticPos.

isAutoHeightback to summary
public boolean isAutoHeight()

Overrides com.openhtmltopdf.render.BlockBox.isAutoHeight.

Annotations
@Override
isHaveBaselineback to summary
public boolean isHaveBaseline()
isLastRowback to summary
private boolean isLastRow()
isShouldMoveToNextPageback to summary
private boolean isShouldMoveToNextPage(LayoutContext c)
isSkipWhenCollapsingMarginsback to summary
protected boolean isSkipWhenCollapsingMargins()

Overrides com.openhtmltopdf.render.BlockBox.isSkipWhenCollapsingMargins.

Annotations
@Override
layoutback to summary
public void layout(LayoutContext c, int contentStart)

Overrides com.openhtmltopdf.render.BlockBox.layout.

Annotations
@Override
layoutCellback to summary
private void layoutCell(LayoutContext c, TableCellBox cell, int contentStart)
layoutChildrenback to summary
protected void layoutChildren(LayoutContext c, int contentStart)

Overrides com.openhtmltopdf.render.BlockBox.layoutChildren.

paintBackgroundback to summary
public void paintBackground(RenderingContext c)

Overrides com.openhtmltopdf.render.Box.paintBackground.

Annotations
@Override
paintBorderback to summary
public void paintBorder(RenderingContext c)

Overrides com.openhtmltopdf.render.Box.paintBorder.

Annotations
@Override
relayoutCellback to summary
private void relayoutCell(LayoutContext c, TableCellBox cell, int contentStart)
resetback to summary
public void reset(LayoutContext c)

Overrides com.openhtmltopdf.render.BlockBox.reset.

Doc from com.openhtmltopdf.render.Box.reset.

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

Any layout operation that is not idempotent MUST be reset in this method. Layout may be called several times on the one box.

Annotations
@Override
setBaselineback to summary
public void setBaseline(int baseline)
setCellHeightsback to summary
private void setCellHeights(LayoutContext c)
setContentLimitContainerback to summary
public void setContentLimitContainer(ContentLimitContainer contentLimitContainer)
setExtraSpaceBottomback to summary
public void setExtraSpaceBottom(int extraSpaceBottom)
setExtraSpaceTopback to summary
public void setExtraSpaceTop(int extraSpaceTop)
setHaveBaselineback to summary
public void setHaveBaseline(boolean haveBaseline)
setHeightOverrideback to summary
public void setHeightOverride(int heightOverride)