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
Method Summary |
void |
addStyleColumn(TableColumn col)
|
void |
analyzePageBreaks(LayoutContext c,
ContentLimitContainer container)
|
void |
appendColumn(int span)
|
int |
calcFixedHeightRowBottom(CssContext c)
|
int |
calcInlineBaseline(CssContext c)
|
protected void |
calcLayoutHeight(LayoutContext c,
BorderPropertySet border,
RectPropertySet margin,
RectPropertySet padding)
|
void |
calcMinMaxWidth(LayoutContext c)
|
protected TableCellBox |
cellAbove(TableCellBox cell)
|
protected TableCellBox |
cellBelow(TableCellBox cell)
|
protected TableCellBox |
cellLeft(TableCellBox cell)
|
protected TableCellBox |
cellRight(TableCellBox cell)
|
TableColumn |
colElement(int col)
|
int |
colToEffCol(int col)
|
BlockBox |
copyOf()
|
int |
effColToCol(int effCol)
|
BorderPropertySet |
getBorder(CssContext cssCtx)
|
Rectangle |
getColumnBounds(CssContext c,
int col)
|
int[] |
getColumnPos()
|
List |
getColumns()
|
protected int |
getCSSWidth(CssContext c)
|
int |
getExtraSpaceBottom()
|
int |
getExtraSpaceTop()
|
TableRowBox |
getFirstBodyRow()
|
TableRowBox |
getFirstRow()
|
protected int |
getPageClearance()
|
List |
getStyleColumns()
|
boolean |
hasContentLimitContainer()
|
protected boolean |
isAllowHeightToShrink()
|
boolean |
isMarginAreaRoot()
|
protected boolean |
isMayCollapseMarginsWithChildren()
|
void |
layout(LayoutContext c)
|
protected void |
layoutChildren(LayoutContext c,
int contentStart)
|
int |
marginsBordersPaddingAndSpacing(CssContext c,
boolean ignoreAutoMargins)
|
int |
numEffCols()
|
void |
paintBackground(RenderingContext c)
|
void |
paintBorder(RenderingContext c)
|
void |
reset(LayoutContext c)
|
protected void |
resolveAutoMargins(LayoutContext c,
int cssWidth,
RectPropertySet padding,
BorderPropertySet border)
|
protected TableSectionBox |
sectionAbove(TableSectionBox section,
boolean skipEmptySections)
|
protected TableSectionBox |
sectionBelow(TableSectionBox section,
boolean skipEmptySections)
|
void |
setExtraSpaceBottom(int extraSpaceBottom)
|
void |
setExtraSpaceTop(int extraSpaceTop)
|
void |
setMarginAreaRoot(boolean marginAreaRoot)
|
protected void |
setPageClearance(int pageClearance)
|
void |
setStyle(CalculatedStyle style)
|
int |
spanOfEffCol(int effCol)
|
void |
splitColumn(int pos,
int firstSpan)
|
void |
updateHeaderFooterPosition(RenderingContext c)
|
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, isInitialContainingBlock, 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, setNeedShrinkToFitCalculatation, 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, 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 |
TableBox
public TableBox()
isMarginAreaRoot
public boolean isMarginAreaRoot()
- Overrides:
isMarginAreaRoot
in class Box
setMarginAreaRoot
public void setMarginAreaRoot(boolean marginAreaRoot)
copyOf
public BlockBox copyOf()
- Overrides:
copyOf
in class BlockBox
addStyleColumn
public void addStyleColumn(TableColumn col)
getStyleColumns
public List 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)
- Specified by:
setStyle
in interface Styleable
- Overrides:
setStyle
in class Box
calcMinMaxWidth
public void calcMinMaxWidth(LayoutContext c)
- Overrides:
calcMinMaxWidth
in class BlockBox
splitColumn
public void splitColumn(int pos,
int firstSpan)
marginsBordersPaddingAndSpacing
public int marginsBordersPaddingAndSpacing(CssContext c,
boolean ignoreAutoMargins)
getColumns
public List getColumns()
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()
- Overrides:
isAllowHeightToShrink
in class BlockBox
layout
public void layout(LayoutContext c)
- Overrides:
layout
in class BlockBox
resolveAutoMargins
protected void resolveAutoMargins(LayoutContext c,
int cssWidth,
RectPropertySet padding,
BorderPropertySet border)
- Overrides:
resolveAutoMargins
in class BlockBox
layoutChildren
protected void layoutChildren(LayoutContext c,
int contentStart)
- Overrides:
layoutChildren
in class BlockBox
analyzePageBreaks
public void analyzePageBreaks(LayoutContext c,
ContentLimitContainer container)
- Overrides:
analyzePageBreaks
in class Box
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackground
in class Box
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorder
in class Box
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:
calcLayoutHeight
in class BlockBox
reset
public void reset(LayoutContext c)
- Overrides:
reset
in class BlockBox
getCSSWidth
protected int getCSSWidth(CssContext c)
- Overrides:
getCSSWidth
in class BlockBox
colElement
public TableColumn colElement(int col)
getColumnBounds
public Rectangle getColumnBounds(CssContext c,
int col)
getBorder
public BorderPropertySet getBorder(CssContext cssCtx)
- Overrides:
getBorder
in class Box
calcFixedHeightRowBottom
public int calcFixedHeightRowBottom(CssContext c)
isMayCollapseMarginsWithChildren
protected boolean isMayCollapseMarginsWithChildren()
- Overrides:
isMayCollapseMarginsWithChildren
in class BlockBox
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:
calcInlineBaseline
in class BlockBox
getPageClearance
protected int getPageClearance()
- Overrides:
getPageClearance
in class BlockBox
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)
Copyright © 2012. All Rights Reserved.