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 com.itextpdf.text.pdf.PdfPCell
accessibleAttributes, headers, id, phrase, role
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, 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 theTableStyleValues
of the HtmlCell.float
Gets the fixed width of the HtmlCell.void
setCellValues
(TableStyleValues values) Sets theTableStyleValues
of the HtmlCell.void
setFixedWidth
(float fixedWidth) Sets the fixed width of the HtmlCell.Methods inherited from class com.itextpdf.text.pdf.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, setVerticalAlignment
Methods inherited from class com.itextpdf.text.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
Constructor used for replacing a PdfPCell with a HtmlCell.- Parameters:
pdfPCell
-PdfPCell
.
-
-
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 theTableStyleValues
of the HtmlCell.- Returns:
- TableStyleValues
-
setCellValues
Sets theTableStyleValues
of the HtmlCell.- Parameters:
values
- the TableStyleValues
-