Package org.xhtmlrenderer.newtable
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 org.xhtmlrenderer.render.BlockBox
BlockBox.ContentType, BlockBox.Position
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate boolean
private boolean
private boolean
private boolean
private boolean
private int
Fields inherited from class org.xhtmlrenderer.render.BlockBox
NO_BASELINE
-
Constructor Summary
ConstructorsConstructorDescriptionTableSectionBox
(@Nullable Element element, @Nullable CalculatedStyle style, boolean anonymous) -
Method Summary
Modifier and TypeMethodDescriptionprivate void
addCell
(TableCellBox cell, int cRow) void
@Nullable TableCellBox
cellAt
(int row, int col) copyOf()
private void
ensureRows
(int numRows) void
extendGridToColumnCount
(int columnCount) getGrid()
int
private TableBox
getTable()
boolean
boolean
boolean
isFooter()
boolean
isHeader()
private boolean
(package private) boolean
protected boolean
void
layout
(LayoutContext c, int contentStart) protected void
layoutChildren
(LayoutContext c, int contentStart) int
numRows()
void
void
void
void
void
setCapturedOriginalAbsY
(boolean capturedOriginalAbsY) private void
setCellAt
(int row, int col, TableCellBox cell) (package private) void
void
setFooter
(boolean footer) void
setHeader
(boolean header) private void
setNeedCellRecalc
(boolean needCellRecalc) (package private) void
setNeedCellWidthCalc
(boolean needCellWidthCalc) void
setOriginalAbsY
(int originalAbsY) void
splitColumn
(int pos) Methods inherited from class org.xhtmlrenderer.render.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, toString
Methods inherited from class org.xhtmlrenderer.render.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:
layoutChildren
in classBlockBox
-
addCell
-
reset
-
setCellWidths
-
isAutoHeight
public boolean isAutoHeight()- Overrides:
isAutoHeight
in classBlockBox
-
numRows
public int numRows() -
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()- Overrides:
isSkipWhenCollapsingMargins
in classBlockBox
-
paintBorder
- Overrides:
paintBorder
in classBox
-
paintBackground
- Overrides:
paintBackground
in 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)
-