Example usage for Java com.lowagie.text.pdf PdfPTable fields, constructors, methods, implement or subclass
The text is from its open source code.
int | BACKGROUNDCANVAS The index of the duplicate PdfContentByte where the background will be drawn. |
int | LINECANVAS The index of the duplicate PdfContentByte where the border lines will be drawn. |
float | spacingBefore The spacing before the table. |
float | spacingAfter The spacing after the table. |
PdfPTable(float relativeWidths[]) Constructs a PdfPTable with the relative column widths. | |
PdfPTable(int numColumns) Constructs a PdfPTable with numColumns columns. | |
PdfPTable(PdfPTable table) Constructs a copy of a PdfPTable . |
void | addCell(PdfPCell cell) Adds a cell element. |
void | addCell(String text) Adds a cell element. |
void | addCell(PdfPTable table) Adds a nested table. |
void | addCell(Image image) Adds an Image as Cell. |
void | addCell(Phrase phrase) Adds a cell element. |
void | completeRow() Completes the current row with the default cell. |
void | deleteBodyRows() Removes all of the rows except headers |
void | flushContent() |
float[] | getAbsoluteWidths() Gets the absolute sizes of each column width. |
PdfPCell | getDefaultCell() Gets the default PdfPCell that will be used as reference for all the addCell methods except addCell(PdfPCell) . |
int | getHeaderRows() Gets the number of the rows that constitute the header. |
int | getHorizontalAlignment() Gets the horizontal alignment of the table relative to the page. |
boolean | getKeepTogether() Getter for property keepTogether |
int | getNumberOfColumns() Returns the number of columns. |
PdfPRow | getRow(int idx) Gets a row with a given index (added by Jin-Hsia Yang). |
float | getRowHeight(int idx) Gets the height of a particular row. |
ArrayList | getRows() Gets an arraylist with all the rows in the table. |
float | getTotalHeight() Gets the total height of the table. |
float | getTotalWidth() Gets the full width of the table. |
float | getWidthPercentage() Gets the width percentage that the table will occupy in the page. |
void | setComplete(boolean complete) |
void | setExtendLastRow(boolean extendLastRow) When set the last row will be extended to fill all the remaining space to the bottom boundary. |
void | setFooterRows(int footerRows) Sets the number of rows to be used for the footer. |
void | setHeaderRows(int headerRows) Sets the number of the top rows that constitute the header. |
void | setHorizontalAlignment(int horizontalAlignment) Sets the horizontal alignment of the table relative to the page. |
void | setKeepTogether(boolean keepTogether) If true the table will be kept on one page if it fits, by forcing a new page if it doesn't fit on the current page. |
void | setLockedWidth(boolean lockedWidth) Uses the value in setTotalWidth() in Document.add() . |
void | setRunDirection(int runDirection) Sets the run direction of the contents of the table. |
void | setSkipFirstHeader(boolean skipFirstHeader) Skips the printing of the first header. |
void | setSpacingAfter(float spacing) Sets the spacing after this table. |
void | setSpacingBefore(float spacing) Sets the spacing before this table. |
void | setSplitLate(boolean splitLate) If true the row will only split if it's the first one in an empty page. |
void | setSplitRows(boolean splitRows) When set the rows that won't fit in the page will be split. |
void | setTableEvent(PdfPTableEvent event) Sets the table event for this table. |
void | setTotalWidth(float totalWidth) Sets the full width of the table. |
void | setTotalWidth(float columnWidth[]) Sets the full width of the table from the absolute column width. |
void | setWidthPercentage(float widthPercentage) Sets the width percentage that the table will occupy in the page. |
void | setWidthPercentage(float columnWidth[], Rectangle pageSize) Sets the percentage width of the table from the absolute column width. |
void | setWidths(float relativeWidths[]) Sets the relative widths of the table. |
void | setWidths(int relativeWidths[]) Sets the relative widths of the table. |
int | size() Gets the number of rows in this table. |
float | writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows to the document. |
float | writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows to the document. |