org.xhtmlrenderer.newtable
Class TableCellBox

java.lang.Object
  extended by org.xhtmlrenderer.render.Box
      extended by org.xhtmlrenderer.render.BlockBox
          extended by org.xhtmlrenderer.newtable.TableCellBox
All Implemented Interfaces:
InlinePaintable, Styleable

public class TableCellBox
extends BlockBox


Field Summary
static TableCellBox SPANNING_CELL
           
 
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, LINE_SEPARATOR, NOTHING
 
Constructor Summary
TableCellBox()
           
 
Method Summary
 void addCollapsedBorders(Set all, List borders)
           
 int calcBaseline(LayoutContext c)
           
 int calcBlockBaseline(LayoutContext c)
           
 void calcCollapsedBorder(CssContext c)
           
static CollapsedBorderValue compareBorders(CollapsedBorderValue border1, CollapsedBorderValue border2, boolean returnNullOnEqual)
           
 BlockBox copyOf()
           
 BorderPropertySet getBorder(CssContext cssCtx)
           
 Rectangle getChildrenClipEdge(RenderingContext c)
           
 int getCol()
           
 CollapsedBorderValue getCollapsedBorderBottom()
           
 CollapsedBorderValue getCollapsedBorderLeft()
           
 CollapsedBorderValue getCollapsedBorderRight()
           
 CollapsedBorderValue getCollapsedBorderTop()
           
protected  BorderPropertySet getCollapsedPaintingBorder()
           
protected  int getCSSHeight(CssContext c)
           
 Length getOuterStyleOrColWidth(CssContext c)
           
 Length getOuterStyleWidth(CssContext c)
           
 Rectangle getPaintingClipEdge(CssContext c)
           
 int getRow()
           
protected  TableSectionBox getSection()
           
 TableBox getTable()
           
 IdentValue getVerticalAlign()
           
 boolean hasCollapsedPaintingBorder()
           
protected  boolean isAllowHeightToShrink()
           
 boolean isAutoHeight()
           
protected  boolean isFixedWidthAdvisoryOnly()
           
 boolean isNeedsClipOnPaint(RenderingContext c)
           
 boolean isPageBreaksChange(LayoutContext c, int posDeltaY)
           
protected  boolean isSkipWhenCollapsingMargins()
           
 void layout(LayoutContext c)
           
 void moveContent(LayoutContext c, int deltaY)
           
 void paintBackground(RenderingContext c)
           
 void paintBorder(RenderingContext c)
           
 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, createMarkerData, dump, ensureChildren, findLastNthLineBox, findOffset, getAvailableWidth, getChildrenContentType, getChildrenHeight, getCSSFitToWidth, getCSSWidth, getCSSWidth, getDocumentParent, getExtraBoxDescription, getFirstLetterStyle, getFirstLineStyle, getFloatedBoxData, getInlineContent, getLineBox, getListCounter, getMarkerData, getMaxWidth, getMinWidth, getPageClearance, getPersistentBFC, getReplacedElement, getStaticEquivalent, initStaticPos, isBottomMarginCalculated, isContainsInlineContent, isCurrentBreakAtLineContext, isFloated, isFromCaptionedTable, isInitialContainingBlock, 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, setMarkerData, setMaxWidth, setMinMaxCalculated, setMinWidth, setNeedPageClear, setNeedShrinkToFitCalculatation, 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, dumpBoxes, exportPageBoxText, exportText, find, forcePageBreakAfter, forcePageBreakBefore, getAbsX, getAbsY, getBorderEdge, getBorderSides, getBoxDimensions, getChild, getChildCount, getChildIterator, 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, getStyleMargin, getTx, getTy, getWidth, getX, getY, initContainingLayer, intersects, isAnonymous, isBody, isContainedInMarginBox, isInDocumentFlow, isMarginAreaRoot, 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, setStyle, setTx, setTy, setX, setY, stateToString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SPANNING_CELL

public static final TableCellBox SPANNING_CELL
Constructor Detail

TableCellBox

public TableCellBox()
Method Detail

copyOf

public BlockBox copyOf()
Overrides:
copyOf in class BlockBox

getBorder

public BorderPropertySet getBorder(CssContext cssCtx)
Overrides:
getBorder in class Box

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)
Overrides:
layout in class BlockBox

getTable

public TableBox getTable()

getSection

protected TableSectionBox getSection()

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 class BlockBox

calcBaseline

public int calcBaseline(LayoutContext c)
Overrides:
calcBaseline in class BlockBox

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 class Box

paintBorder

public void paintBorder(RenderingContext c)
Overrides:
paintBorder in class Box

paintCollapsedBorder

public void paintCollapsedBorder(RenderingContext c,
                                 int side)

getChildrenClipEdge

public Rectangle getChildrenClipEdge(RenderingContext c)
Overrides:
getChildrenClipEdge in class Box

isFixedWidthAdvisoryOnly

protected boolean isFixedWidthAdvisoryOnly()
Overrides:
isFixedWidthAdvisoryOnly in class BlockBox

isSkipWhenCollapsingMargins

protected boolean isSkipWhenCollapsingMargins()
Overrides:
isSkipWhenCollapsingMargins in class BlockBox

compareBorders

public static CollapsedBorderValue compareBorders(CollapsedBorderValue border1,
                                                  CollapsedBorderValue border2,
                                                  boolean returnNullOnEqual)

getPaintingClipEdge

public Rectangle getPaintingClipEdge(CssContext c)
Overrides:
getPaintingClipEdge in class BlockBox

hasCollapsedPaintingBorder

public boolean hasCollapsedPaintingBorder()

getCollapsedPaintingBorder

protected BorderPropertySet getCollapsedPaintingBorder()

getCollapsedBorderBottom

public CollapsedBorderValue getCollapsedBorderBottom()

getCollapsedBorderLeft

public CollapsedBorderValue getCollapsedBorderLeft()

getCollapsedBorderRight

public CollapsedBorderValue getCollapsedBorderRight()

getCollapsedBorderTop

public CollapsedBorderValue getCollapsedBorderTop()

addCollapsedBorders

public void addCollapsedBorders(Set all,
                                List borders)

getCSSHeight

protected int getCSSHeight(CssContext c)
Overrides:
getCSSHeight in class BlockBox

isAllowHeightToShrink

protected boolean isAllowHeightToShrink()
Overrides:
isAllowHeightToShrink in class BlockBox

isNeedsClipOnPaint

public boolean isNeedsClipOnPaint(RenderingContext c)
Overrides:
isNeedsClipOnPaint in class BlockBox


Copyright © 2013. All Rights Reserved.