Package com.openhtmltopdf.newtable
Class TableSectionBox
- java.lang.Object
-
- com.openhtmltopdf.render.Box
-
- com.openhtmltopdf.render.BlockBox
-
- com.openhtmltopdf.newtable.TableSectionBox
-
- All Implemented Interfaces:
InlinePaintable,Styleable,DisplayListItem
public class TableSectionBox extends BlockBox
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.openhtmltopdf.render.BlockBox
BlockBox.MarginCollapseResult
-
-
Field Summary
-
Fields inherited from class com.openhtmltopdf.render.BlockBox
CONTENT_BLOCK, CONTENT_EMPTY, CONTENT_INLINE, CONTENT_UNKNOWN, 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 TableSectionBox()
-
Method Summary
Modifier and Type Method Description voidcalcBorders(LayoutContext c)TableCellBoxcellAt(int row, int col)BlockBoxcopyOf()voidextendGridToColumnCount(int columnCount)ListgetGrid()TableRowBoxgetLastRow()intgetOriginalAbsY()TableBoxgetTable()booleanisAutoHeight()booleanisCapturedOriginalAbsY()booleanisFooter()booleanisHeader()protected booleanisSkipWhenCollapsingMargins()voidlayout(LayoutContext c, int contentStart)protected voidlayoutChildren(LayoutContext c, int contentStart)intnumRows()voidpaintBackground(RenderingContext c)voidpaintBorder(RenderingContext c)voidrecalcCells(LayoutContext c)voidreset(LayoutContext c)voidsetCapturedOriginalAbsY(boolean capturedOriginalAbsY)voidsetFooter(boolean footer)voidsetGrid(List grid)voidsetHeader(boolean header)voidsetOriginalAbsY(int originalAbsY)voidsplitColumn(int pos)-
Methods inherited from class com.openhtmltopdf.render.BlockBox
appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, 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, toString
-
Methods inherited from class com.openhtmltopdf.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsoluteClipBox, getAbsX, getAbsY, getAccessibilityObject, getBorder, getBorderBox, getBorderBoxHeight, getBorderBoxWidth, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, 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, getRestyleTarget, getRightMBP, getState, getStyle, getStyleMargin, getStyleMargin, getTx, getTy, getWidth, getX, getY, hasNonTextContent, hasRootElementBackground, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isFlowingColumnBox, isInDocumentFlow, isInitialContainingBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyle, restyleChildren, 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
-
-
-
-
Method Detail
-
getGrid
public List getGrid()
-
setGrid
public void setGrid(List grid)
-
extendGridToColumnCount
public void extendGridToColumnCount(int columnCount)
-
splitColumn
public void splitColumn(int pos)
-
recalcCells
public void recalcCells(LayoutContext c)
-
calcBorders
public void calcBorders(LayoutContext c)
-
cellAt
public TableCellBox cellAt(int row, int col)
-
getTable
public TableBox getTable()
-
layoutChildren
protected void layoutChildren(LayoutContext c, int contentStart)
- Overrides:
layoutChildrenin classBlockBox
-
reset
public void reset(LayoutContext c)
-
isAutoHeight
public boolean isAutoHeight()
- Overrides:
isAutoHeightin classBlockBox
-
numRows
public int numRows()
-
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()
- Overrides:
isSkipWhenCollapsingMarginsin classBlockBox
-
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorderin classBox
-
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackgroundin classBox
-
getLastRow
public TableRowBox getLastRow()
-
layout
public void layout(LayoutContext c, int contentStart)
-
isFooter
public boolean isFooter()
-
setFooter
public void setFooter(boolean footer)
-
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)
-
-