Class CellWrapper
java.lang.Object
com.itextpdf.text.html.simpleparser.CellWrapper
- All Implemented Interfaces:
Element,TextElementArray
Deprecated.
since 5.5.2
We use a CellWrapper because we need some extra info
that isn't available in PdfPCell.
- Since:
- 5.0.6 (renamed)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final PdfPCellDeprecated.The cell that is wrapped in this stub.private booleanDeprecated.Indicates if the width is a percentage.private floatDeprecated.The width of the cell.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
ConstructorsConstructorDescriptionCellWrapper(String tag, ChainedProperties chain) Deprecated.Creates a new instance of IncCell. -
Method Summary
Modifier and TypeMethodDescriptionbooleanDeprecated.Implements the add method of the TextElementArray interface.createPdfPCell(String tag, ChainedProperties chain) Deprecated.Creates a PdfPCell element based on a tag and its properties.getCell()Deprecated.Returns the PdfPCell.Deprecated.Gets all the chunks in this element.floatgetWidth()Deprecated.Getter for the cell widthbooleanDeprecated.Checks if this element is a content object.booleanDeprecated.Checks if this element is nestable.booleanDeprecated.Getter for percentagebooleanprocess(ElementListener listener) Deprecated.Processes the element by adding it (or the different parts) to anElementListener.inttype()Deprecated.Gets the type of the text element.
-
Field Details
-
cell
Deprecated.The cell that is wrapped in this stub. -
width
private float widthDeprecated.The width of the cell.- Since:
- iText 5.0.6
-
percentage
private boolean percentageDeprecated.Indicates if the width is a percentage.- Since:
- iText 5.0.6
-
-
Constructor Details
-
CellWrapper
Deprecated.Creates a new instance of IncCell.- Parameters:
tag- the cell that is wrapped in this object.chain- properties such as width- Since:
- 5.0.6
-
-
Method Details
-
createPdfPCell
Deprecated.Creates a PdfPCell element based on a tag and its properties.- Parameters:
tag- a cell tagchain- the hierarchy chain- Returns:
- the created PdfPCell
-
getCell
Deprecated.Returns the PdfPCell.- Returns:
- the PdfPCell
-
getWidth
public float getWidth()Deprecated.Getter for the cell width- Returns:
- the width
- Since:
- iText 5.0.6
-
isPercentage
public boolean isPercentage()Deprecated.Getter for percentage- Returns:
- true if the width is a percentage
- Since:
- iText 5.0.6
-
add
Deprecated.Implements the add method of the TextElementArray interface.- Specified by:
addin interfaceTextElementArray- Parameters:
o- an element that needs to be added to the cell.- Returns:
trueif the addition succeeded;falseotherwise
-
getChunks
Deprecated.Description copied from interface:ElementGets all the chunks in this element. -
isContent
public boolean isContent()Deprecated.Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Deprecated.Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- 5.0.1
-
process
Deprecated.Description copied from interface:ElementProcesses the element by adding it (or the different parts) to anElementListener. -
type
public int type()Deprecated.Description copied from interface:ElementGets the type of the text element.
-