Class TableSectionBox
java.lang.Object
com.openhtmltopdf.render.Box
com.openhtmltopdf.render.BlockBox
com.openhtmltopdf.newtable.TableSectionBox
- All Implemented Interfaces:
InlinePaintable, Styleable, DisplayListItem
-
Nested Class Summary
Nested classes/interfaces inherited from class BlockBox
BlockBox.ContentType, BlockBox.MarginCollapseResultNested classes/interfaces inherited from class Box
Box.ChildIteratorOfType<T> -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate intFields inherited from class BlockBox
NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLYFields inherited from class Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCell(TableRowBox row, TableCellBox cell, int cRow) voidcellAt(int row, int col) copyOf()private voidensureRows(int numRows) voidextendGridToColumnCount(int columnCount) getGrid()intgetTable()booleanbooleanbooleanisFooter()booleanisHeader()private boolean(package private) booleanprotected booleanvoidlayout(LayoutContext c, int contentStart) protected voidlayoutChildren(LayoutContext c, int contentStart) intnumRows()voidvoidvoidvoidResponsible for resetting the state of the box before a repeat call toBlockBox.layout(LayoutContext)or other layout methods.voidsetCapturedOriginalAbsY(boolean capturedOriginalAbsY) private voidsetCellAt(int row, int col, TableCellBox cell) (package private) voidvoidsetFooter(boolean footer) voidsetHeader(boolean header) private voidsetNeedCellRecalc(boolean needCellRecalc) (package private) voidsetNeedCellWidthCalc(boolean needCellWidthCalc) voidsetOriginalAbsY(int originalAbsY) voidsplitColumn(int pos) Methods inherited from class BlockBox
addBoxID, appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, checkPopBfc, checkPushBfc, checkPushLayer, collapseMargins, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSHeight, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getNextCollapsableSibling, getPageClearance, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAllowHeightToShrink, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFixedWidthAdvisoryOnly, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isListItem, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isPageBreakNeededBecauseOfMinHeight, isReplaced, isTopMarginCalculated, layout, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, resolveAutoMargins, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setElement, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculatation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, shouldBeReplaced, styleText, styleText, toStringMethods inherited from class Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, ancestors, ancestorsWhile, calcPaintingInfo, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, forcePageBreakBefore, forcePageBreakBefore, getAbsoluteClipBox, getAbsX, getAbsY, getAccessibilityObject, getBorder, getBorderBox, getBorderBoxHeight, getBorderBoxWidth, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildIteratorOfType, getChildren, getChildrenClipEdge, getClipBox, getContainingBlock, getContainingBlockWidth, getContainingLayer, getContentAreaEdge, getContentWidth, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getIndex, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNext, getNextSibling, getPadding, getPaddingEdge, getPaddingWidth, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getParentClipBox, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, hasNonTextContent, hasRootElementBackground, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isFirstChild, isInDocumentFlow, isInitialContainingBlock, isMarginAreaRoot, isRoot, isStyled, isTerminalColumnBreak, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, rootBox, setAbsX, setAbsY, setAccessiblityObject, setAnonymous, setBorderBoxHeight, setBorderBoxWidth, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
-
Field Details
-
_grid
-
_needCellWidthCalc
private boolean _needCellWidthCalc -
_needCellRecalc
private boolean _needCellRecalc -
_header
private boolean _header -
_capturedOriginalAbsY
private boolean _capturedOriginalAbsY -
_originalAbsY
private int _originalAbsY
-
-
Constructor Details
-
TableSectionBox
public TableSectionBox()
-
-
Method Details
-
copyOf
-
getGrid
-
extendGridToColumnCount
public void extendGridToColumnCount(int columnCount) -
splitColumn
public void splitColumn(int pos) -
recalcCells
-
calcBorders
-
cellAt
-
setCellAt
-
ensureRows
private void ensureRows(int numRows) -
getTable
-
layoutChildren
- Overrides:
layoutChildrenin classBlockBox
-
addCell
-
reset
Description copied from class:BoxResponsible for resetting the state of the box before a repeat call toBlockBox.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. -
setCellWidths
-
isAutoHeight
public boolean isAutoHeight()- Overrides:
isAutoHeightin classBlockBox
-
numRows
public int numRows() -
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()- Overrides:
isSkipWhenCollapsingMarginsin classBlockBox
-
paintBorder
- Overrides:
paintBorderin classBox
-
paintBackground
- Overrides:
paintBackgroundin classBox
-
getLastRow
-
isNeedCellWidthCalc
boolean isNeedCellWidthCalc() -
setNeedCellWidthCalc
void setNeedCellWidthCalc(boolean needCellWidthCalc) -
isNeedCellRecalc
private boolean isNeedCellRecalc() -
setNeedCellRecalc
private void setNeedCellRecalc(boolean needCellRecalc) -
layout
-
isHeader
public boolean isHeader() -
setHeader
public void setHeader(boolean header) -
isCapturedOriginalAbsY
public boolean isCapturedOriginalAbsY() -
setCapturedOriginalAbsY
public void setCapturedOriginalAbsY(boolean capturedOriginalAbsY) -
getOriginalAbsY
public int getOriginalAbsY() -
setOriginalAbsY
public void setOriginalAbsY(int originalAbsY)
-