Package org.xhtmlrenderer.newtable
Class TableBox
- java.lang.Object
-
- org.xhtmlrenderer.render.Box
-
- org.xhtmlrenderer.render.BlockBox
-
- org.xhtmlrenderer.newtable.TableBox
-
- All Implemented Interfaces:
InlinePaintable,Styleable
public class TableBox extends BlockBox
-
-
Field Summary
-
Fields inherited from class org.xhtmlrenderer.render.BlockBox
CONTENT_BLOCK, CONTENT_EMPTY, CONTENT_INLINE, CONTENT_UNKNOWN, NO_BASELINE, POSITION_BOTH, POSITION_HORIZONTALLY, POSITION_VERTICALLY
-
Fields inherited from class org.xhtmlrenderer.render.Box
CHILDREN_FLUX, DONE, DUMP_LAYOUT, DUMP_RENDER, FLUX, NOTHING
-
-
Constructor Summary
Constructors Constructor Description TableBox()
-
Method Summary
-
Methods inherited from class org.xhtmlrenderer.render.BlockBox
appendPositioningInfo, calcBaseline, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, checkPageContext, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSHeight, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPaintingClipEdge, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isAutoHeight, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFixedWidthAdvisoryOnly, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isMinMaxCalculated, isNeedPageClear, isNeedsClipOnPaint, isNeedsKeepWithInline, isReplaced, isSkipWhenCollapsingMargins, isTopMarginCalculated, layout, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, setBottomMarginCalculated, setChildrenContentType, setChildrenHeight, setDimensionsCalculated, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculation, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toString
-
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, 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, getStyleMargin, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isInitialContainingBlock, isRoot, isStyled, moveIfGreater, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, resetChildren, resetTopMargin, restyle, restyleChildren, selectAll, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setIndex, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setTx, setTy, setX, setY, stateToString
-
-
-
-
Method Detail
-
isMarginAreaRoot
public boolean isMarginAreaRoot()
- Overrides:
isMarginAreaRootin classBox
-
setMarginAreaRoot
public void setMarginAreaRoot(boolean marginAreaRoot)
-
addStyleColumn
public void addStyleColumn(TableColumn col)
-
getStyleColumns
public List<TableColumn> getStyleColumns()
-
getColumnPos
public int[] getColumnPos()
-
numEffCols
public int numEffCols()
-
spanOfEffCol
public int spanOfEffCol(int effCol)
-
colToEffCol
public int colToEffCol(int col)
-
effColToCol
public int effColToCol(int effCol)
-
appendColumn
public void appendColumn(int span)
-
setStyle
public void setStyle(CalculatedStyle style)
-
calcMinMaxWidth
public void calcMinMaxWidth(LayoutContext c)
- Overrides:
calcMinMaxWidthin classBlockBox
-
splitColumn
public void splitColumn(int pos, int firstSpan)
-
marginsBordersPaddingAndSpacing
public int marginsBordersPaddingAndSpacing(CssContext c, boolean ignoreAutoMargins)
-
getColumns
public List<ColumnData> getColumns()
-
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()
- Overrides:
isAllowHeightToShrinkin classBlockBox
-
layout
public void layout(LayoutContext c)
-
resolveAutoMargins
protected void resolveAutoMargins(LayoutContext c, int cssWidth, RectPropertySet padding, BorderPropertySet border)
- Overrides:
resolveAutoMarginsin classBlockBox
-
layoutChildren
protected void layoutChildren(LayoutContext c, int contentStart)
- Overrides:
layoutChildrenin classBlockBox
-
analyzePageBreaks
public void analyzePageBreaks(LayoutContext c, ContentLimitContainer container)
- Overrides:
analyzePageBreaksin classBox
-
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackgroundin classBox
-
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorderin classBox
-
updateHeaderFooterPosition
public void updateHeaderFooterPosition(RenderingContext c)
-
getFirstRow
public TableRowBox getFirstRow()
-
getFirstBodyRow
public TableRowBox getFirstBodyRow()
-
calcLayoutHeight
protected void calcLayoutHeight(LayoutContext c, BorderPropertySet border, RectPropertySet margin, RectPropertySet padding)
- Overrides:
calcLayoutHeightin classBlockBox
-
reset
public void reset(LayoutContext c)
-
getCSSWidth
protected int getCSSWidth(CssContext c)
- Overrides:
getCSSWidthin classBlockBox
-
colElement
public TableColumn colElement(int col)
-
getColumnBounds
public Rectangle getColumnBounds(CssContext c, int col)
-
getBorder
public BorderPropertySet getBorder(CssContext cssCtx)
-
calcFixedHeightRowBottom
public int calcFixedHeightRowBottom(CssContext c)
-
isMayCollapseMarginsWithChildren
protected boolean isMayCollapseMarginsWithChildren()
- Overrides:
isMayCollapseMarginsWithChildrenin classBlockBox
-
sectionAbove
protected TableSectionBox sectionAbove(TableSectionBox section, boolean skipEmptySections)
-
sectionBelow
protected TableSectionBox sectionBelow(TableSectionBox section, boolean skipEmptySections)
-
cellAbove
protected TableCellBox cellAbove(TableCellBox cell)
-
cellBelow
protected TableCellBox cellBelow(TableCellBox cell)
-
cellLeft
protected TableCellBox cellLeft(TableCellBox cell)
-
cellRight
protected TableCellBox cellRight(TableCellBox cell)
-
calcInlineBaseline
public int calcInlineBaseline(CssContext c)
- Overrides:
calcInlineBaselinein classBlockBox
-
getPageClearance
protected int getPageClearance()
- Overrides:
getPageClearancein classBlockBox
-
setPageClearance
protected void setPageClearance(int pageClearance)
-
hasContentLimitContainer
public boolean hasContentLimitContainer()
-
getExtraSpaceTop
public int getExtraSpaceTop()
-
setExtraSpaceTop
public void setExtraSpaceTop(int extraSpaceTop)
-
getExtraSpaceBottom
public int getExtraSpaceBottom()
-
setExtraSpaceBottom
public void setExtraSpaceBottom(int extraSpaceBottom)
-
-