Package org.xhtmlrenderer.newtable
Class TableCellBox
- java.lang.Object
-
- org.xhtmlrenderer.render.Box
-
- org.xhtmlrenderer.render.BlockBox
-
- org.xhtmlrenderer.newtable.TableCellBox
-
- All Implemented Interfaces:
InlinePaintable
,Styleable
public class TableCellBox extends BlockBox
-
-
Field Summary
Fields Modifier and Type Field Description static TableCellBox
SPANNING_CELL
-
Fields inherited from class org.xhtmlrenderer.render.BlockBox
CONTENT_BLOCK, CONTENT_EMPTY, CONTENT_INLINE, CONTENT_UNKNOWN, 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 TableCellBox()
-
Method Summary
-
Methods inherited from class org.xhtmlrenderer.render.BlockBox
calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcDimensions, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcMinMaxWidth, checkPageContext, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getChildrenContentType, getChildrenHeight, getDocumentParent, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInMainFlow, isNeedPageClear, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, reset, setBottomMarginCalculated, setChildrenContentType, setFirstLetterStyle, setFirstLineStyle, setFloatedBoxData, setFromCaptionedTable, setInlineContent, setListCounter, setMarkerData, setNeedPageClear, setPersistentBFC, setReplacedElement, setStaticEquivalent, setTopMarginCalculated, styleText, styleText, toString
-
Methods inherited from class org.xhtmlrenderer.render.Box
addAllChildren, addChild, addChildForLayout, analyzePageBreaks, calcPaintingInfo, clearSelection, collectText, connectChildrenToCurrentLayer, crossesPageBreak, detach, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, getChildren, getContainingBlock, getContainingLayer, getContentAreaEdge, getContentWidth, getEffBackgroundColor, getEffectiveWidth, getElement, getElementBoxes, getHeight, getLayer, getLeftMBP, getMargin, getMarginBorderPadding, getMarginEdge, getMarginEdge, getNextSibling, getPadding, getPaddingEdge, getPaintingBorderEdge, getPaintingInfo, getPaintingPaddingEdge, getParent, getPreviousSibling, getPseudoElementOrClass, getRelativeOffset, getRestyleTarget, getRightMBP, getState, getStyle, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isRoot, isStyled, paintRootElementBackground, positionRelative, removeAllChildren, removeChild, removeChild, resetChildren, restyle, selectAll, setAbsX, setAbsY, setAnonymous, setBoxDimensions, setContainingBlock, setContainingLayer, setContentWidth, setElement, setHeight, setLayer, setLeftMBP, setMarginBottom, setMarginLeft, setMarginRight, setMarginTop, setParent, setPseudoElementOrClass, setRelativeOffset, setRightMBP, setState, setStyle, setTx, setTy, setX, setY, stateToString
-
-
-
-
Field Detail
-
SPANNING_CELL
public static final TableCellBox SPANNING_CELL
-
-
Method Detail
-
getBorder
public BorderPropertySet getBorder(CssContext cssCtx)
-
calcCollapsedBorder
public void calcCollapsedBorder(CssContext c)
-
getCol
public int getCol()
-
setCol
public void setCol(int col)
-
getRow
public int getRow()
-
setRow
public void setRow(int row)
-
layout
public void layout(LayoutContext c)
-
getTable
public TableBox getTable()
-
getOuterStyleWidth
public Length getOuterStyleWidth(CssContext c)
-
getOuterStyleOrColWidth
public Length getOuterStyleOrColWidth(CssContext c)
-
setLayoutWidth
public void setLayoutWidth(LayoutContext c, int width)
-
isAutoHeight
public boolean isAutoHeight()
- Overrides:
isAutoHeight
in classBlockBox
-
calcBaseline
public int calcBaseline(LayoutContext c)
- Overrides:
calcBaseline
in classBlockBox
-
calcBlockBaseline
public int calcBlockBaseline(LayoutContext c)
-
moveContent
public void moveContent(LayoutContext c, int deltaY)
-
isPageBreaksChange
public boolean isPageBreaksChange(LayoutContext c, int posDeltaY)
-
getVerticalAlign
public IdentValue getVerticalAlign()
-
paintBackground
public void paintBackground(RenderingContext c)
- Overrides:
paintBackground
in classBox
-
paintBorder
public void paintBorder(RenderingContext c)
- Overrides:
paintBorder
in classBox
-
paintCollapsedBorder
public void paintCollapsedBorder(RenderingContext c, int side)
-
getChildrenClipEdge
public java.awt.Rectangle getChildrenClipEdge(RenderingContext c)
- Overrides:
getChildrenClipEdge
in classBox
-
compareBorders
public static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual)
-
getPaintingClipEdge
public java.awt.Rectangle getPaintingClipEdge(CssContext c)
- Overrides:
getPaintingClipEdge
in classBlockBox
-
hasCollapsedPaintingBorder
public boolean hasCollapsedPaintingBorder()
-
getCollapsedBorderBottom
public CollapsedBorderValue getCollapsedBorderBottom()
-
getCollapsedBorderLeft
public CollapsedBorderValue getCollapsedBorderLeft()
-
getCollapsedBorderRight
public CollapsedBorderValue getCollapsedBorderRight()
-
getCollapsedBorderTop
public CollapsedBorderValue getCollapsedBorderTop()
-
addCollapsedBorders
public void addCollapsedBorders(java.util.Set all, java.util.List borders)
-
isNeedsClipOnPaint
public boolean isNeedsClipOnPaint(RenderingContext c)
- Overrides:
isNeedsClipOnPaint
in classBlockBox
-
-