Class TableWrapper

java.lang.Object
com.itextpdf.text.html.simpleparser.TableWrapper
All Implemented Interfaces:
Element

@Deprecated public class TableWrapper extends Object implements Element
Deprecated.
since 5.5.2
We use a TableWrapper because PdfPTable is rather complex to put on the HTMLWorker stack.
Since:
5.0.6 (renamed)
  • Field Details

    • styles

      private final Map<String,String> styles
      Deprecated.
      The styles that need to be applied to the table
      Since:
      5.0.6 renamed from props
    • rows

      private final List<List<PdfPCell>> rows
      Deprecated.
      Nested list containing the PdfPCell elements that are part of this table.
    • colWidths

      private float[] colWidths
      Deprecated.
      Array containing the widths of the columns.
      Since:
      iText 5.0.6
  • Constructor Details

    • TableWrapper

      public TableWrapper(Map<String,String> attrs)
      Deprecated.
      Creates a new instance of IncTable.
      Parameters:
      attrs - a Map containing attributes
  • Method Details

    • addRow

      public void addRow(List<PdfPCell> row)
      Deprecated.
      Adds a new row to the table.
      Parameters:
      row - a list of PdfPCell elements
    • setColWidths

      public void setColWidths(float[] colWidths)
      Deprecated.
      Setter for the column widths
      Since:
      iText 5.0.6
    • createTable

      public PdfPTable createTable()
      Deprecated.
      Creates a new PdfPTable based on the info assembled in the table stub.
      Returns:
      a PdfPTable
    • 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