Class PdfTable

java.lang.Object
com.aowagie.text.Rectangle
com.aowagie.text.pdf.PdfTable
All Implemented Interfaces:
Element

class PdfTable extends Rectangle
PdfTable is an object that contains the graphics and text of a table.
See Also:
  • Field Details

    • columns

      private final int columns
      this is the number of columns in the table.
    • headercells

      private final ArrayList headercells
      this is the ArrayList with all the cell of the table header.
    • cells

      private final ArrayList cells
      this is the ArrayList with all the cells in the table.
    • table

      private final Table table
      Original table used to build this object
    • positions

      private final float[] positions
      Cached column widths.
  • Constructor Details

    • PdfTable

      PdfTable(Table table, float left, float right, float top)
      Constructs a PdfTable-object.
      Parameters:
      table - a Table
      left - the left border on the page
      right - the right border on the page
      top - the start position of the top of the table
      Since:
      a parameter of this method has been removed in iText 2.0.8
  • Method Details

    • updateRowAdditionsInternal

      private void updateRowAdditionsInternal()
      Updates the table row additions in the underlying table object
    • rows

      private int rows()
      Get the number of rows
    • type

      public int type()
      Description copied from class: Rectangle
      Gets the type of the text element.
      Specified by:
      type in interface Element
      Overrides:
      type in class Rectangle
      Returns:
      a type
      See Also:
    • getHeaderCells

      ArrayList getHeaderCells()
      Returns the arraylist with the cells of the table header.
      Returns:
      an ArrayList
    • getCells

      ArrayList getCells()
      Returns the arraylist with the cells of the table.
      Returns:
      an ArrayList
    • columns

      int columns()
      Returns the number of columns of the table.
      Returns:
      the number of columns
    • cellpadding

      private final float cellpadding()
      Returns the cellpadding of the table.
      Returns:
      the cellpadding
    • cellspacing

      final float cellspacing()
      Returns the cellspacing of the table.
      Returns:
      the cellspacing
    • hasToFitPageCells

      final boolean hasToFitPageCells()
      Checks if the cells of this Table have to fit a page.
      Returns:
      true if the cells may not be split
    • getOffset

      public float getOffset()
      Gets the offset of this table.
      Returns:
      the space between this table and the previous element.