com.lowagie.text.pdf
public class PdfTable extends Rectangle
PdfTable is an object that contains the graphics and text of a table.
| Field Summary | |
|---|---|
| ArrayList | cells this is the ArrayList with all the cells in the table. |
| int | columns this is the number of columns in the table. |
| ArrayList | headercells this is the ArrayList with all the cell of the table header. |
| protected float[] | positions Cached column widths. |
| protected Table | table Original table used to build this object |
| Constructor Summary | |
|---|---|
| PdfTable(Table table, float left, float right, float top)
Constructs a PdfTable-object.
| |
| Method Summary | |
|---|---|
| float | cellpadding()
Returns the cellpadding of the table.
|
| float | cellspacing()
Returns the cellspacing of the table.
|
| int | columns()
Returns the number of columns of the table.
|
| ArrayList | getCells()
Returns the arraylist with the cells of the table.
|
| ArrayList | getHeaderCells()
Returns the arraylist with the cells of the table header.
|
| float | getOffset()
Gets the offset of this table.
|
| boolean | hasHeader()
Checks if there is a table header.
|
| boolean | hasToFitPageCells()
Checks if the cells of this Table have to fit a page.
|
| boolean | hasToFitPageTable()
Checks if this Table has to fit a page.
|
| int | rows()
Get the number of rows |
| int | type() |
| void | updateRowAdditions()
Updates the table row additions in the underlying table object and deletes all table rows,
in order to preserve memory and detect future row additions.
|
| void | updateRowAdditionsInternal()
Updates the table row additions in the underlying table object |
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
Returns: the cellpadding
Returns: the cellspacing
Returns: the number of columns
Returns: an ArrayList
Returns: an ArrayList
Returns: the space between this table and the previous element.
Returns: an ArrayList
Table have to fit a page.
Returns: true if the cells may not be split
Table has to fit a page.
Returns: true if the table may not be split
See Also: type
Pre-requisite: the object must have been built with the parameter supportUpdateRowAdditions equals to true.