Modifier and Type | Field and Description |
---|---|
private java.util.ArrayList |
cells
this is the ArrayList with all the cells in the table.
|
private int |
columns
this is the number of columns in the table.
|
private java.util.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
|
background, border, borderColorBottom, borderColorLeft, borderColorRight, borderColorTop, borderWidth, borderWidthBottom, borderWidthLeft, borderWidthRight, borderWidthTop, BOTTOM, BOX, color, LEFT, llx, lly, markupAttributes, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury, useVariableBorders
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, ALIGN_JUSTIFIED_ALL, ALIGN_LEFT, ALIGN_MIDDLE, ALIGN_RIGHT, ALIGN_TOP, ALIGN_UNDEFINED, ANCHOR, ANNOTATION, AUTHOR, CCITT_BLACKIS1, CCITT_ENCODEDBYTEALIGN, CCITT_ENDOFBLOCK, CCITT_ENDOFLINE, CCITTG3_1D, CCITTG3_2D, CCITTG4, CELL, CHAPTER, CHUNK, CREATIONDATE, CREATOR, GRAPHIC, HEADER, IMGRAW, IMGTEMPLATE, JPEG, KEYWORDS, LIST, LISTITEM, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
Constructor and Description |
---|
PdfTable(Table table,
float left,
float right,
float top,
boolean supportUpdateRowAdditions)
Constructs a
PdfTable -object. |
Modifier and Type | Method and Description |
---|---|
(package private) float |
cellpadding()
Returns the cellpadding of the table.
|
(package private) float |
cellspacing()
Returns the cellspacing of the table.
|
(package private) int |
columns()
Returns the number of columns of the table.
|
(package private) java.util.ArrayList |
getCells()
Returns the arraylist with the cells of the table.
|
(package private) java.util.ArrayList |
getHeaderCells()
Returns the arraylist with the cells of the table header.
|
float |
getOffset()
Gets the offset of this table.
|
(package private) 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. |
(package private) int |
rows()
Get the number of rows
|
int |
type()
Gets the type of the text element.
|
(package private) 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.
|
private void |
updateRowAdditionsInternal()
Updates the table row additions in the underlying table object
|
backgroundColor, border, borderColor, borderWidth, bottom, bottom, cloneNonPositionParameters, disableBorderSide, enableBorderSide, getBorderColorBottom, getBorderColorLeft, getBorderColorRight, getBorderColorTop, getBorderWidthBottom, getBorderWidthLeft, getBorderWidthRight, getBorderWidthTop, getChunks, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getRotation, grayFill, hasBorder, hasBorders, height, isUseVariableBorders, left, left, normalize, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderColorBottom, setBorderColorLeft, setBorderColorRight, setBorderColorTop, setBorderWidth, setBorderWidthBottom, setBorderWidthLeft, setBorderWidthRight, setBorderWidthTop, setBottom, setGrayFill, setLeft, setMarkupAttribute, setMarkupAttributes, setRight, setTop, setUseVariableBorders, softCloneNonPositionParameters, top, top, toString, width
private int columns
private java.util.ArrayList headercells
private java.util.ArrayList cells
protected Table table
protected float[] positions
PdfTable(Table table, float left, float right, float top, boolean supportUpdateRowAdditions)
PdfTable
-object.table
- a Table
left
- the left border on the pageright
- the right border on the pagetop
- the start position of the top of the tablesupportUpdateRowAdditions
- if true, table rows will be deleted after building the PdfTable table,
in order to preserve memory and detect future row additionsvoid updateRowAdditions()
Pre-requisite: the object must have been built with the parameter supportUpdateRowAdditions
equals to true.
private void updateRowAdditionsInternal()
int rows()
public int type()
Rectangle
type
in interface Element
type
in class Rectangle
Element.type()
java.util.ArrayList getHeaderCells()
ArrayList
boolean hasHeader()
ArrayList
java.util.ArrayList getCells()
ArrayList
int columns()
final float cellpadding()
final float cellspacing()
public final boolean hasToFitPageTable()
Table
has to fit a page.public final boolean hasToFitPageCells()
Table
have to fit a page.public float getOffset()