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
-
Nested Class Summary
Nested classes/interfaces inherited from class org.xhtmlrenderer.render.BlockBox
BlockBox.ContentType, BlockBox.Position
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private BorderPropertySet
private BorderPropertySet
private int
private @Nullable TableSectionBox
private @Nullable TableBox
private static final int
private static final int
private static final int[]
private static final int
private static final int
private static final int
static final TableCellBox
Fields inherited from class org.xhtmlrenderer.render.BlockBox
NO_BASELINE
-
Constructor Summary
ConstructorsConstructorDescriptionTableCellBox
(@Nullable Element source, @Nullable CalculatedStyle style, boolean anonymous) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addCollapsedBorders
(Set<CollapsedBorderValue> all, List<CollapsedBorderSide> borders) int
int
void
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private CollapsedBorderValue
private static CollapsedBorderValue
compareBorders
(CollapsedBorderValue border1, CollapsedBorderValue border2) static CollapsedBorderValue
compareBorders
(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual) copyOf()
getBorder
(CssContext cssCtx) int
getCol()
private Rectangle
protected BorderPropertySet
private Rectangle
protected int
int
getRow()
protected @Nullable TableSectionBox
@Nullable TableBox
getTable()
boolean
protected boolean
boolean
protected boolean
boolean
boolean
isPageBreaksChange
(LayoutContext c, int posDeltaY) private boolean
protected boolean
void
void
moveContent
(int deltaY) void
private void
paintBackgroundStack
(RenderingContext c, Rectangle bounds) void
void
paintCollapsedBorder
(RenderingContext c, int side) void
setCol
(int col) void
setLayoutWidth
(LayoutContext c, int width) void
setRow
(int row) Methods inherited from class org.xhtmlrenderer.render.BlockBox
appendPositioningInfo, calcBreakAtLineContext, calcCanvasLocation, calcChildLocations, calcChildPaintingInfo, calcDimensions, calcDimensions, calcInitialBreakAtLine, calcInitialFloatedCanvasLocation, calcInlineBaseline, calcLayoutHeight, calcMinMaxWidth, checkPageContext, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInline, isInlineBlock, isInMainFlow, isMayCollapseMarginsWithChildren, isMinMaxCalculated, isNeedPageClear, isNeedsKeepWithInline, isReplaced, isTopMarginCalculated, layout, layoutChildren, layoutInlineChildren, paintDebugOutline, paintInline, paintListMarker, positionAbsolute, positionAbsoluteOnPage, propagateExtraSpace, reset, 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, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildren, 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
-
SPANNING_CELL
-
_row
private int _row -
_col
private int _col -
_table
-
_section
-
_collapsedLayoutBorder
-
_collapsedPaintingBorder
-
_collapsedBorderTop
-
_collapsedBorderRight
-
_collapsedBorderBottom
-
_collapsedBorderLeft
-
BORDER_PRIORITIES
private static final int[] BORDER_PRIORITIES -
BCELL
private static final int BCELL- See Also:
-
BROW
private static final int BROW- See Also:
-
BROWGROUP
private static final int BROWGROUP- See Also:
-
BCOL
private static final int BCOL- See Also:
-
BTABLE
private static final int BTABLE- See Also:
-
-
Constructor Details
-
TableCellBox
-
-
Method Details
-
copyOf
-
getBorder
-
calcCollapsedBorder
-
getCol
public int getCol() -
setCol
public void setCol(int col) -
getRow
public int getRow() -
setRow
public void setRow(int row) -
layout
-
getTable
-
getSection
-
getOuterStyleWidth
-
getOuterStyleOrColWidth
-
setLayoutWidth
-
isAutoHeight
public boolean isAutoHeight()- Overrides:
isAutoHeight
in classBlockBox
-
calcBaseline
- Overrides:
calcBaseline
in classBlockBox
-
calcBlockBaseline
-
moveContent
public void moveContent(int deltaY) -
isPageBreaksChange
-
getVerticalAlign
-
isPaintBackgroundsAndBorders
private boolean isPaintBackgroundsAndBorders() -
paintBackground
- Overrides:
paintBackground
in classBox
-
paintBackgroundStack
-
paintBorder
- Overrides:
paintBorder
in classBox
-
paintCollapsedBorder
-
getContentLimitedBorderEdge
-
getChildrenClipEdge
- Overrides:
getChildrenClipEdge
in classBox
-
isFixedWidthAdvisoryOnly
protected boolean isFixedWidthAdvisoryOnly()- Overrides:
isFixedWidthAdvisoryOnly
in classBlockBox
-
isSkipWhenCollapsingMargins
protected boolean isSkipWhenCollapsingMargins()- Overrides:
isSkipWhenCollapsingMargins
in classBlockBox
-
compareBorders
public static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual) -
compareBorders
private static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2) -
collapsedLeftBorder
-
collapsedRightBorder
-
collapsedTopBorder
-
collapsedBottomBorder
-
getCollapsedBorderBounds
-
getPaintingClipEdge
- Overrides:
getPaintingClipEdge
in classBlockBox
-
hasCollapsedPaintingBorder
public boolean hasCollapsedPaintingBorder() -
getCollapsedPaintingBorder
-
getCollapsedBorderBottom
-
getCollapsedBorderLeft
-
getCollapsedBorderRight
-
getCollapsedBorderTop
-
addCollapsedBorders
-
getCSSHeight
- Overrides:
getCSSHeight
in classBlockBox
-
isAllowHeightToShrink
protected boolean isAllowHeightToShrink()- Overrides:
isAllowHeightToShrink
in classBlockBox
-
isNeedsClipOnPaint
- Overrides:
isNeedsClipOnPaint
in classBlockBox
-