Class TableWrapper

  • All Implemented Interfaces:
    Element

    @Deprecated
    public class TableWrapper
    extends java.lang.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 Detail

      • styles

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

        private final java.util.List<java.util.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 Detail

      • TableWrapper

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

      • addRow

        public void addRow​(java.util.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 java.util.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