com.itextpdf.tool.xml.html.pdfelement
Class HtmlCell

java.lang.Object
  extended by com.itextpdf.text.Rectangle
      extended by com.itextpdf.text.pdf.PdfPCell
          extended by com.itextpdf.tool.xml.html.pdfelement.HtmlCell
All Implemented Interfaces:
Element

public class HtmlCell
extends PdfPCell

HtmlCell is created to provide more parameters to better mimic the behavior of table cell in HTML.

Author:
Emiel Ackermann

Field Summary
 
Fields inherited from class com.itextpdf.text.pdf.PdfPCell
phrase
 
Fields inherited from class com.itextpdf.text.Rectangle
backgroundColor, border, borderColor, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, LEFT, llx, lly, NO_BORDER, RIGHT, TOP, UNDEFINED, urx, ury, useVariableBorders
 
Fields inherited from interface com.itextpdf.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CHAPTER, CHUNK, CREATIONDATE, CREATOR, DIV, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK
 
Constructor Summary
HtmlCell()
          Default constructor for a HTMLCell with no fixedWidth.
HtmlCell(PdfPCell pdfPCell)
          Constructor used for replacing a PdfPCell with a HtmlCell.
HtmlCell(PdfPCell pdfPCell, boolean b)
          Constructor used for replacing a PdfPCell with a HtmlCell and setting its last in row boolean.
 
Method Summary
 TableStyleValues getCellValues()
          Gets the TableStyleValues of the HtmlCell.
 float getFixedWidth()
          Gets the fixed width of the HtmlCell.
 void setCellValues(TableStyleValues values)
          Sets the TableStyleValues of the HtmlCell.
 void setFixedWidth(float fixedWidth)
          Sets the fixed width of the HtmlCell.
 
Methods inherited from class com.itextpdf.text.pdf.PdfPCell
addElement, getArabicOptions, getCellEvent, getColspan, getColumn, getCompositeElements, getEffectivePaddingBottom, getEffectivePaddingLeft, getEffectivePaddingRight, getEffectivePaddingTop, getExtraParagraphSpace, getFixedHeight, getFollowingIndent, getHorizontalAlignment, getImage, getIndent, getLeading, getMaxHeight, getMinimumHeight, getMultipliedLeading, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPhrase, getRightIndent, getRotation, getRowspan, getRunDirection, getSpaceCharRatio, getTable, getVerticalAlignment, hasFixedHeight, hasMinimumHeight, isNoWrap, isUseAscender, isUseBorderPadding, isUseDescender, setArabicOptions, setCellEvent, setColspan, setColumn, setExtraParagraphSpace, setFixedHeight, setFollowingIndent, setHorizontalAlignment, setImage, setIndent, setLeading, setMinimumHeight, setNoWrap, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPhrase, setRightIndent, setRotation, setRowspan, setRunDirection, setSpaceCharRatio, setUseAscender, setUseBorderPadding, setUseDescender, setVerticalAlignment
 
Methods inherited from class com.itextpdf.text.Rectangle
cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBackgroundColor, getBorder, getBorderColor, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidth, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getBottom, getBottom, getChunks, getGrayFill, getHeight, getLeft, getLeft, getRight, getRight, getTop, getTop, getWidth, hasBorder, hasBorders, isContent, isNestable, isUseVariableBorders, normalize, process, rectangle, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, toString, type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HtmlCell

public HtmlCell()
Default constructor for a HTMLCell with no fixedWidth.


HtmlCell

public HtmlCell(PdfPCell pdfPCell,
                boolean b)
Constructor used for replacing a PdfPCell with a HtmlCell and setting its last in row boolean.

Parameters:
pdfPCell - PdfPCell.
b - boolean sets the TableStyleValues.setLastInRow(boolean) method.

HtmlCell

public HtmlCell(PdfPCell pdfPCell)
Constructor used for replacing a PdfPCell with a HtmlCell.

Parameters:
pdfPCell - PdfPCell.
Method Detail

setFixedWidth

public void setFixedWidth(float fixedWidth)
Sets the fixed width of the HtmlCell.

Parameters:
fixedWidth - the fixed cell width

getFixedWidth

public float getFixedWidth()
Gets the fixed width of the HtmlCell.

Returns:
the fixed Width value

getCellValues

public TableStyleValues getCellValues()
Gets the TableStyleValues of the HtmlCell.

Returns:
TableStyleValues

setCellValues

public void setCellValues(TableStyleValues values)
Sets the TableStyleValues of the HtmlCell.

Parameters:
values - the TableStyleValues


Copyright © 2012. All Rights Reserved.