Class TableSectionBox
java.lang.Object
org.xhtmlrenderer.render.Box
org.xhtmlrenderer.render.BlockBox
org.xhtmlrenderer.newtable.TableSectionBox
- All Implemented Interfaces:
InlinePaintable, Styleable
-
Nested Class Summary
Nested classes/interfaces inherited from class BlockBox
BlockBox.ContentType, BlockBox.Position -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate booleanprivate booleanprivate booleanprivate booleanprivate booleanprivate intFields inherited from class BlockBox
NO_BASELINE -
Constructor Summary
ConstructorsConstructorDescriptionTableSectionBox(@Nullable Element element, @Nullable CalculatedStyle style, boolean anonymous) -
Method Summary
Modifier and TypeMethodDescriptionprivate voidaddCell(TableCellBox cell, int cRow) void@Nullable TableCellBoxcellAt(int row, int col) copyOf()private voidensureRows(int numRows) voidextendGridToColumnCount(int columnCount) getGrid()intprivate TableBoxgetTable()booleanbooleanbooleanisFooter()booleanisHeader()private boolean(package private) booleanprotected booleanvoidlayout(LayoutContext c, int contentStart) protected voidlayoutChildren(LayoutContext c, int contentStart) intnumRows()voidvoidvoidvoidvoidsetCapturedOriginalAbsY(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
appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSHeight, getCSSWidth, getCSSWidth, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAllowHeightToShrink, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFixedWidthAdvisoryOnly, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, resolveAutoMargins, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toStringMethods inherited from class Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, appendPosition, appendSize, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorder, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildren, getChildrenClipEdge, 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, getPrevious, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getStyleMargin, getStyleMarginNoCache, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isInitialContainingBlock, isMarginAreaRoot, isRoot, isStyled, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyle, restyleChildren, selectAll, setAbsX, setAbsY, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRightMBP, setState, setStyle, setTx, setTy, setX, setY
-
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(@Nullable Element element, @Nullable CalculatedStyle style, boolean anonymous)
-
-
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
-
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)
-