Class HtmlCell
java.lang.Object
com.itextpdf.text.Rectangle
com.itextpdf.text.pdf.PdfPCell
com.itextpdf.tool.xml.html.pdfelement.HtmlCell
- All Implemented Interfaces:
Element, IAccessibleElement
HtmlCell is created to provide more parameters to better mimic the behavior of table cell in HTML.
-
Field Summary
FieldsFields inherited from class 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, useVariableBordersFields inherited from interface 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, BODY, 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, LANGUAGE, LIST, LISTITEM, MARKED, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, SECTION, SUBJECT, TITLE, WRITABLE_DIRECT, YMARK -
Constructor Summary
ConstructorsConstructorDescriptionHtmlCell()Default constructor for a HTMLCell with no fixedWidth.Constructor used for replacing a PdfPCell with a HtmlCell.Constructor used for replacing a PdfPCell with a HtmlCell and setting its last in row boolean. -
Method Summary
Modifier and TypeMethodDescriptionGets theTableStyleValuesof the HtmlCell.floatGets the fixed width of the HtmlCell.voidsetCellValues(TableStyleValues values) Sets theTableStyleValuesof the HtmlCell.voidsetFixedWidth(float fixedWidth) Sets the fixed width of the HtmlCell.Methods inherited from class PdfPCell
addElement, addHeader, getAccessibleAttribute, getAccessibleAttributes, getArabicOptions, getCachedMaxHeight, getCalculatedHeight, getCellEvent, getColspan, getColumn, getCompositeElements, getEffectivePaddingBottom, getEffectivePaddingLeft, getEffectivePaddingRight, getEffectivePaddingTop, getExtraParagraphSpace, getFixedHeight, getFollowingIndent, getHeaders, getHorizontalAlignment, getId, getImage, getIndent, getLeading, getMaxHeight, getMinimumHeight, getMultipliedLeading, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, getPhrase, getRightIndent, getRole, getRotation, getRowspan, getRunDirection, getSpaceCharRatio, getTable, getVerticalAlignment, hasCachedMaxHeight, hasCalculatedHeight, hasFixedHeight, hasMinimumHeight, isInline, isNoWrap, isUseAscender, isUseBorderPadding, isUseDescender, setAccessibleAttribute, setArabicOptions, setCalculatedHeight, setCellEvent, setColspan, setColumn, setExtraParagraphSpace, setFixedHeight, setFollowingIndent, setHorizontalAlignment, setId, setImage, setIndent, setLeading, setMinimumHeight, setNoWrap, setPadding, setPaddingBottom, setPaddingLeft, setPaddingRight, setPaddingTop, setPhrase, setRightIndent, setRole, setRotation, setRowspan, setRunDirection, setSpaceCharRatio, setUseAscender, setUseBorderPadding, setUseDescender, setVerticalAlignmentMethods inherited from class Rectangle
cloneNonPositionParameters, disableBorderSide, enableBorderSide, equals, 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
-
Field Details
-
fixedWidth
private float fixedWidth -
values
-
-
Constructor Details
-
HtmlCell
public HtmlCell()Default constructor for a HTMLCell with no fixedWidth. -
HtmlCell
Constructor used for replacing a PdfPCell with a HtmlCell and setting its last in row boolean.- Parameters:
pdfPCell-PdfPCell.b- boolean sets theTableStyleValues.setLastInRow(boolean)method.
-
HtmlCell
-
-
Method Details
-
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
Gets theTableStyleValuesof the HtmlCell.- Returns:
- TableStyleValues
-
setCellValues
Sets theTableStyleValuesof the HtmlCell.- Parameters:
values- the TableStyleValues
-