Top Fields Constructors Methods
com.openhtmltopdf.newtable

public Class TableSectionBox

extends BlockBox
Class Inheritance
Imports
java.util.ArrayList, .Iterator, .List, com.openhtmltopdf.layout.LayoutContext, com.openhtmltopdf.render.BlockBox, .RenderingContext

Field Summary

Modifier and TypeField and Description
private boolean
private boolean
private final List<RowData>
private boolean
private boolean
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
addCell(TableRowBox row, TableCellBox cell, int cRow)

public void
public TableCellBox
cellAt(int row, int col)

public BlockBox
private void
ensureRows(int numRows)

public void
extendGridToColumnCount(int columnCount)

public List<RowData>
public TableRowBox
public int
public TableBox
public boolean
public boolean
public boolean
public boolean
private boolean
pack-priv boolean
protected boolean
public void
protected void
public int
public void
public void
public 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.

public void
setCapturedOriginalAbsY(boolean capturedOriginalAbsY)

private void
setCellAt(int row, int col, TableCellBox cell)

pack-priv void
public void
setFooter(boolean footer)

public void
setHeader(boolean header)

private void
setNeedCellRecalc(boolean needCellRecalc)

pack-priv void
setNeedCellWidthCalc(boolean needCellWidthCalc)

public void
setOriginalAbsY(int originalAbsY)

public void
splitColumn(int pos)

Inherited from com.openhtmltopdf.render.BlockBox:
addBoxIDappendPositioningInfocalcBaselinecalcBreakAtLineContextcalcCanvasLocationcalcChildLocationscalcChildPaintingInfocalcDimensionscalcDimensionscalcInitialBreakAtLinecalcInitialFloatedCanvasLocationcalcInlineBaselinecalcLayoutHeightcalcMinMaxWidthcheckPageContextcheckPopBfccheckPushBfccheckPushLayercollapseMarginscreateMarkerDatadumpensureChildrenfindLastNthLineBoxfindOffsetgetAvailableWidthgetChildrenContentTypegetChildrenHeightgetCSSFitToWidthgetCSSHeightgetCSSWidthgetCSSWidthgetDocumentParentgetExtraBoxDescriptiongetFirstLetterStylegetFirstLineStylegetFloatedBoxDatagetInlineContentgetLineBoxgetListCountergetMarkerDatagetMaxWidthgetMinWidthgetNextCollapsableSiblinggetPageClearancegetPaintingClipEdgegetPersistentBFCgetReplacedElementgetStaticEquivalentinitStaticPosisAllowHeightToShrinkisBottomMarginCalculatedisContainsInlineContentisCurrentBreakAtLineContextisFixedWidthAdvisoryOnlyisFloatedisFromCaptionedTableisInlineisInlineBlockisInMainFlowisListItemisMayCollapseMarginsWithChildrenisMinMaxCalculatedisNeedPageClearisNeedsClipOnPaintisNeedsKeepWithInlineisPageBreakNeededBecauseOfMinHeightisReplacedisTopMarginCalculatedlayoutlayoutInlineChildrenpaintDebugOutlinepaintInlinepaintListMarkerpositionAbsolutepositionAbsoluteOnPagepropagateExtraSpaceresolveAutoMarginssetBottomMarginCalculatedsetChildrenContentTypesetChildrenHeightsetDimensionsCalculatedsetElementsetFirstLetterStylesetFirstLineStylesetFloatedBoxDatasetFromCaptionedTablesetInlineContentsetListCountersetMarkerDatasetMaxWidthsetMinMaxCalculatedsetMinWidthsetNeedPageClearsetNeedShrinkToFitCalculatationsetPersistentBFCsetReplacedElementsetStaticEquivalentsetTopMarginCalculatedshouldBeReplacedstyleTextstyleTexttoString

Field Detail

_capturedOriginalAbsYback to summary
private boolean _capturedOriginalAbsY
_gridback to summary
private final List<RowData> _grid
_headerback to summary
private boolean _header
_needCellRecalcback to summary
private boolean _needCellRecalc
_needCellWidthCalcback to summary
private boolean _needCellWidthCalc
_originalAbsYback to summary
private int _originalAbsY

Constructor Detail

TableSectionBoxback to summary
public TableSectionBox()

Method Detail

addCellback to summary
private void addCell(TableRowBox row, TableCellBox cell, int cRow)
calcBordersback to summary
public void calcBorders(LayoutContext c)
cellAtback to summary
public TableCellBox cellAt(int row, int col)
copyOfback to summary
public BlockBox copyOf()

Overrides com.openhtmltopdf.render.BlockBox.copyOf.

Annotations
@Override
ensureRowsback to summary
private void ensureRows(int numRows)
extendGridToColumnCountback to summary
public void extendGridToColumnCount(int columnCount)
getGridback to summary
public List<RowData> getGrid()
getLastRowback to summary
public TableRowBox getLastRow()
getOriginalAbsYback to summary
public int getOriginalAbsY()
getTableback to summary
public TableBox getTable()
isAutoHeightback to summary
public boolean isAutoHeight()

Overrides com.openhtmltopdf.render.BlockBox.isAutoHeight.

Annotations
@Override
isCapturedOriginalAbsYback to summary
public boolean isCapturedOriginalAbsY()
isFooterback to summary
public boolean isFooter()
isHeaderback to summary
public boolean isHeader()
isNeedCellRecalcback to summary
private boolean isNeedCellRecalc()
isNeedCellWidthCalcback to summary
pack-priv boolean isNeedCellWidthCalc()
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
layoutChildrenback to summary
protected void layoutChildren(LayoutContext c, int contentStart)

Overrides com.openhtmltopdf.render.BlockBox.layoutChildren.

Annotations
@Override
numRowsback to summary
public int numRows()
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
recalcCellsback to summary
public void recalcCells(LayoutContext c)
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.

setCapturedOriginalAbsYback to summary
public void setCapturedOriginalAbsY(boolean capturedOriginalAbsY)
setCellAtback to summary
private void setCellAt(int row, int col, TableCellBox cell)
setCellWidthsback to summary
pack-priv void setCellWidths(LayoutContext c)
setFooterback to summary
public void setFooter(boolean footer)
setHeaderback to summary
public void setHeader(boolean header)
setNeedCellRecalcback to summary
private void setNeedCellRecalc(boolean needCellRecalc)
setNeedCellWidthCalcback to summary
pack-priv void setNeedCellWidthCalc(boolean needCellWidthCalc)
setOriginalAbsYback to summary
public void setOriginalAbsY(int originalAbsY)
splitColumnback to summary
public void splitColumn(int pos)