Class CellWrapper
- java.lang.Object
-
- com.itextpdf.text.html.simpleparser.CellWrapper
-
- All Implemented Interfaces:
Element
,TextElementArray
@Deprecated public class CellWrapper extends java.lang.Object implements TextElementArray
Deprecated.since 5.5.2We use a CellWrapper because we need some extra info that isn't available in PdfPCell.- Since:
- 5.0.6 (renamed)
-
-
Field Summary
Fields Modifier and Type Field Description private PdfPCell
cell
Deprecated.The cell that is wrapped in this stub.private boolean
percentage
Deprecated.Indicates if the width is a percentage.private float
width
Deprecated.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
Constructors Constructor Description CellWrapper(java.lang.String tag, ChainedProperties chain)
Deprecated.Creates a new instance of IncCell.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
add(Element o)
Deprecated.Implements the add method of the TextElementArray interface.PdfPCell
createPdfPCell(java.lang.String tag, ChainedProperties chain)
Deprecated.Creates a PdfPCell element based on a tag and its properties.PdfPCell
getCell()
Deprecated.Returns the PdfPCell.java.util.List<Chunk>
getChunks()
Deprecated.Gets all the chunks in this element.float
getWidth()
Deprecated.Getter for the cell widthboolean
isContent()
Deprecated.Checks if this element is a content object.boolean
isNestable()
Deprecated.Checks if this element is nestable.boolean
isPercentage()
Deprecated.Getter for percentageboolean
process(ElementListener listener)
Deprecated.Processes the element by adding it (or the different parts) to anElementListener
.int
type()
Deprecated.Gets the type of the text element.
-
-
-
Field Detail
-
cell
private final PdfPCell cell
Deprecated.The cell that is wrapped in this stub.
-
width
private float width
Deprecated.The width of the cell.- Since:
- iText 5.0.6
-
percentage
private boolean percentage
Deprecated.Indicates if the width is a percentage.- Since:
- iText 5.0.6
-
-
Constructor Detail
-
CellWrapper
public CellWrapper(java.lang.String tag, ChainedProperties chain)
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 Detail
-
createPdfPCell
public PdfPCell createPdfPCell(java.lang.String tag, ChainedProperties chain)
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
public 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
public boolean add(Element o)
Deprecated.Implements the add method of the TextElementArray interface.- Specified by:
add
in interfaceTextElementArray
- Parameters:
o
- an element that needs to be added to the cell.- Returns:
true
if the addition succeeded;false
otherwise
-
getChunks
public java.util.List<Chunk> getChunks()
Deprecated.Description copied from interface:Element
Gets all the chunks in this element.
-
isContent
public boolean isContent()
Deprecated.Description copied from interface:Element
Checks if this element is a content object. If not, it's a metadata object.
-
isNestable
public boolean isNestable()
Deprecated.Description copied from interface:Element
Checks if this element is nestable.- Specified by:
isNestable
in interfaceElement
- Returns:
- true if this element can be nested inside other elements.
- Since:
- 5.0.1
-
process
public boolean process(ElementListener listener)
Deprecated.Description copied from interface:Element
Processes the element by adding it (or the different parts) to anElementListener
.
-
-