Class TableRowBox
java.lang.Object
com.openhtmltopdf.render.Box
com.openhtmltopdf.render.BlockBox
com.openhtmltopdf.newtable.TableRowBox
- 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 intprivate ContentLimitContainerprivate intprivate intprivate 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 voidprivate booleanvoidanalyzePageBreaks(LayoutContext c, ContentLimitContainer container) private voidprivate voidprivate voidprotected voidcalcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) Oh oh! Up to this method height is used to track content height.private intcalcMiddleBottomDeltaY(TableCellBox cell, IdentValue verticalAlign) private voidcopyOf()voidexportText(RenderingContext c, Writer writer) intforcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName) intprotected Stringintintintprotected BlockBoxgetNextCollapsableSibling(BlockBox.MarginCollapseResult collapsedMargin) private TableSectionBoxprivate TableBoxgetTable()private Iterable<TableCellBox> voidinitStaticPos(LayoutContext c, BlockBox parent, int childOffset) booleanbooleanprivate booleanprivate booleanprotected booleanvoidlayout(LayoutContext c, int contentStart) private voidlayoutCell(LayoutContext c, TableCellBox cell, int contentStart) protected voidlayoutChildren(LayoutContext c, int contentStart) voidvoidprivate voidrelayoutCell(LayoutContext c, TableCellBox cell, int contentStart) voidResponsible for resetting the state of the box before a repeat call toBlockBox.layout(LayoutContext)or other layout methods.voidsetBaseline(int baseline) private voidvoidsetContentLimitContainer(ContentLimitContainer contentLimitContainer) voidsetExtraSpaceBottom(int extraSpaceBottom) voidsetExtraSpaceTop(int extraSpaceTop) voidsetHaveBaseline(boolean haveBaseline) voidsetHeightOverride(int heightOverride) Methods inherited from class BlockBox
addBoxID, appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcMinMaxWidth, checkPageContext, checkPopBfc, checkPushBfc, checkPushLayer, collapseMargins, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSHeight, getCSSWidth, getCSSWidth, getDocumentParent, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, 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, ancestors, ancestorsWhile, calcPaintingInfo, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, find, findAncestor, findColumnBreakOpportunities, forcePageBreakAfter, 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
-
_baseline
private int _baseline -
_haveBaseline
private boolean _haveBaseline -
_heightOverride
private int _heightOverride -
_contentLimitContainer
-
_extraSpaceTop
private int _extraSpaceTop -
_extraSpaceBottom
private int _extraSpaceBottom
-
-
Constructor Details
-
TableRowBox
public TableRowBox()
-
-
Method Details
-
copyOf
-
getTableCells
-
isAutoHeight
public boolean isAutoHeight()- Overrides:
isAutoHeightin classBlockBox
-
getTable
-
getSection
-
layout
-
isShouldMoveToNextPage
-
analyzePageBreaks
- Overrides:
analyzePageBreaksin classBox
-
calcExtraSpaceTop
-
calcExtraSpaceBottom
-
layoutChildren
- Overrides:
layoutChildrenin classBlockBox
-
alignBaselineAlignedCells
-
alignMiddleAndBottomAlignedCells
-
calcMiddleBottomDeltaY
-
calcLayoutHeight
protected void calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding) Description copied from class:BlockBoxOh oh! Up to this method height is used to track content height. After this method it is used to track total layout height!- Overrides:
calcLayoutHeightin classBlockBox
-
calcRowHeight
-
isLastRow
private boolean isLastRow() -
calcDefaultBaseline
-
setCellHeights
-
relayoutCell
-
layoutCell
-
initStaticPos
- Overrides:
initStaticPosin classBlockBox
-
getBaseline
public int getBaseline() -
setBaseline
public void setBaseline(int baseline) -
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()- Overrides:
isSkipWhenCollapsingMarginsin classBlockBox
-
paintBorder
- Overrides:
paintBorderin classBox
-
paintBackground
- Overrides:
paintBackgroundin classBox
-
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. -
isHaveBaseline
public boolean isHaveBaseline() -
setHaveBaseline
public void setHaveBaseline(boolean haveBaseline) -
getExtraBoxDescription
- Overrides:
getExtraBoxDescriptionin classBlockBox
-
getHeightOverride
public int getHeightOverride() -
setHeightOverride
public void setHeightOverride(int heightOverride) -
exportText
- Overrides:
exportTextin classBox- Throws:
IOException
-
getContentLimitContainer
-
setContentLimitContainer
-
getExtraSpaceTop
public int getExtraSpaceTop() -
setExtraSpaceTop
public void setExtraSpaceTop(int extraSpaceTop) -
getExtraSpaceBottom
public int getExtraSpaceBottom() -
setExtraSpaceBottom
public void setExtraSpaceBottom(int extraSpaceBottom) -
forcePageBreakBefore
public int forcePageBreakBefore(LayoutContext c, IdentValue pageBreakValue, boolean pendingPageName) - Overrides:
forcePageBreakBeforein classBox
-
getNextCollapsableSibling
- Overrides:
getNextCollapsableSiblingin classBlockBox
-