Package com.openhtmltopdf.newtable
Class TableRowBox
- java.lang.Object
-
- com.openhtmltopdf.render.Box
-
- com.openhtmltopdf.render.BlockBox
-
- com.openhtmltopdf.newtable.TableRowBox
-
- All Implemented Interfaces:
InlinePaintable
,Styleable
,DisplayListItem
public class TableRowBox extends BlockBox
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openhtmltopdf.render.BlockBox
BlockBox.ContentType, BlockBox.MarginCollapseResult
-
Nested classes/interfaces inherited from class com.openhtmltopdf.render.Box
Box.ChildIteratorOfType<T>
-
-
Field Summary
Fields Modifier and Type Field Description private int
_baseline
private ContentLimitContainer
_contentLimitContainer
private int
_extraSpaceBottom
private int
_extraSpaceTop
private boolean
_haveBaseline
private int
_heightOverride
-
Fields inherited from class com.openhtmltopdf.render.BlockBox
NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
-
Fields inherited from class com.openhtmltopdf.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, LINE_SEPARATOR, NOTHING
-
-
Constructor Summary
Constructors Constructor Description TableRowBox()
-
Method Summary
-
Methods inherited from class com.openhtmltopdf.render.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, toString
-
Methods inherited from class com.openhtmltopdf.render.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 Detail
-
_baseline
private int _baseline
-
_haveBaseline
private boolean _haveBaseline
-
_heightOverride
private int _heightOverride
-
_contentLimitContainer
private ContentLimitContainer _contentLimitContainer
-
_extraSpaceTop
private int _extraSpaceTop
-
_extraSpaceBottom
private int _extraSpaceBottom
-
-
Method Detail
-
getTableCells
private java.lang.Iterable<TableCellBox> getTableCells()
-
isAutoHeight
public boolean isAutoHeight()
- Overrides:
isAutoHeight
in classBlockBox
-
getTable
private TableBox getTable()
-
getSection
private TableSectionBox getSection()
-
layout
public void layout(LayoutContext c, int contentStart)
-
isShouldMoveToNextPage
private boolean isShouldMoveToNextPage(LayoutContext c)
-
analyzePageBreaks
public void analyzePageBreaks(LayoutContext c, ContentLimitContainer container)
- Overrides:
analyzePageBreaks
in classBox
-
calcExtraSpaceTop
private void calcExtraSpaceTop(LayoutContext c)
-
calcExtraSpaceBottom
private void calcExtraSpaceBottom(LayoutContext c)
-
layoutChildren
protected void layoutChildren(LayoutContext c, int contentStart)
- Overrides:
layoutChildren
in classBlockBox
-
alignBaselineAlignedCells
private void alignBaselineAlignedCells(LayoutContext c)
-
alignMiddleAndBottomAlignedCells
private boolean alignMiddleAndBottomAlignedCells(LayoutContext c)
-
calcMiddleBottomDeltaY
private int calcMiddleBottomDeltaY(TableCellBox cell, IdentValue verticalAlign)
-
calcLayoutHeight
protected void calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)
Description copied from class:BlockBox
Oh oh! Up to this method height is used to track content height. After this method it is used to track total layout height!- Overrides:
calcLayoutHeight
in classBlockBox
-
calcRowHeight
private void calcRowHeight(CssContext c)
-
isLastRow
private boolean isLastRow()
-
calcDefaultBaseline
private void calcDefaultBaseline(LayoutContext c)
-
setCellHeights
private void setCellHeights(LayoutContext c)
-
relayoutCell
private void relayoutCell(LayoutContext c, TableCellBox cell, int contentStart)
-
layoutCell
private void layoutCell(LayoutContext c, TableCellBox cell, int contentStart)
-
initStaticPos
public void initStaticPos(LayoutContext c, BlockBox parent, int childOffset)
- Overrides:
initStaticPos
in classBlockBox
-
getBaseline
public int getBaseline()
-
setBaseline
public void setBaseline(int baseline)
-
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()
- Overrides:
isSkipWhenCollapsingMargins
in classBlockBox
-
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorder
in classBox
-
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackground
in classBox
-
reset
public void reset(LayoutContext c)
Description copied from class:Box
Responsible 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
protected java.lang.String getExtraBoxDescription()
- Overrides:
getExtraBoxDescription
in classBlockBox
-
getHeightOverride
public int getHeightOverride()
-
setHeightOverride
public void setHeightOverride(int heightOverride)
-
exportText
public void exportText(RenderingContext c, java.io.Writer writer) throws java.io.IOException
- Overrides:
exportText
in classBox
- Throws:
java.io.IOException
-
getContentLimitContainer
public ContentLimitContainer getContentLimitContainer()
-
setContentLimitContainer
public void setContentLimitContainer(ContentLimitContainer contentLimitContainer)
-
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:
forcePageBreakBefore
in classBox
-
getNextCollapsableSibling
protected BlockBox getNextCollapsableSibling(BlockBox.MarginCollapseResult collapsedMargin)
- Overrides:
getNextCollapsableSibling
in classBlockBox
-
-