Class TableWrapper

java.lang.Object
com.itextpdf.html2pdf.attach.wrapelement.TableWrapper
All Implemented Interfaces:
IWrapElement

public class TableWrapper extends Object implements IWrapElement
Wrapper for the table element.
  • Constructor Details

    • TableWrapper

      public TableWrapper()
    • TableWrapper

      public TableWrapper (boolean isRtl)
  • Method Details

    • getRowsSize

      public int getRowsSize()
      Gets the number of rows.
      Returns:
      the number of rows
    • newRow

      public void newRow()
      Adds a new body row.
    • newHeaderRow

      public void newHeaderRow()
      Adds a new header row.
    • newFooterRow

      public void newFooterRow()
      Adds a new footer row.
    • addHeaderCell

      public void addHeaderCell (com.itextpdf.layout.element.Cell cell)
      Adds a new cell to the header rows.
      Parameters:
      cell - the cell
    • addFooterCell

      public void addFooterCell (com.itextpdf.layout.element.Cell cell)
      Adds a new cell to the footer rows.
      Parameters:
      cell - the cell
    • addCell

      public void addCell (com.itextpdf.layout.element.Cell cell)
      Adds a new cell to the body rows.
      Parameters:
      cell - the cell
    • setLang

      public void setLang (String lang)
    • setFooterLang

      public void setFooterLang (String footerLang)
    • setHeaderLang

      public void setHeaderLang (String headerLang)
    • setCaption

      public void setCaption (com.itextpdf.layout.element.Div caption)
      Sets the table's caption.
      Parameters:
      caption - the caption to be set
    • toTable

      public com.itextpdf.layout.element.Table toTable (WaitingColgroupsHelper colgroupsHelper)
      Renders all the rows to a Table object.
      Parameters:
      colgroupsHelper - the colgroups helper class
      Returns:
      the table