Class CellWrapper

java.lang.Object
com.itextpdf.text.html.simpleparser.CellWrapper
All Implemented Interfaces:
Element, TextElementArray

@Deprecated public class CellWrapper extends Object implements 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 Details

    • 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 Details

    • CellWrapper

      public CellWrapper(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 Details

    • createPdfPCell

      public PdfPCell createPdfPCell(String tag, ChainedProperties chain)
      Deprecated.
      Creates a PdfPCell element based on a tag and its properties.
      Parameters:
      tag - a cell tag
      chain - 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 interface TextElementArray
      Parameters:
      o - an element that needs to be added to the cell.
      Returns:
      true if the addition succeeded; false otherwise
    • getChunks

      public List<Chunk> getChunks()
      Deprecated.
      Description copied from interface: Element
      Gets all the chunks in this element.
      Specified by:
      getChunks in interface Element
      Returns:
      an ArrayList
      Since:
      5.0.1
    • 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.
      Specified by:
      isContent in interface Element
      Returns:
      true if this is a 'content' element; false if this is a 'metadata' element
      Since:
      5.0.1
    • isNestable

      public boolean isNestable()
      Deprecated.
      Description copied from interface: Element
      Checks if this element is nestable.
      Specified by:
      isNestable in interface Element
      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 an ElementListener.
      Specified by:
      process in interface Element
      Parameters:
      listener - an ElementListener
      Returns:
      true if the element was processed successfully
      Since:
      5.0.1
    • type

      public int type()
      Deprecated.
      Description copied from interface: Element
      Gets the type of the text element.
      Specified by:
      type in interface Element
      Returns:
      a type
      Since:
      5.0.1