Package com.lowagie.text.pdf
Class PdfPTable
java.lang.Object
com.lowagie.text.pdf.PdfPTable
- All Implemented Interfaces:
Element,LargeElement
This is a table that can be put at an absolute position but can also
be added to the document as the class
Table.
In the last case when crossing pages the table always break at full rows; if a
row is bigger than the page it is dropped silently to avoid infinite loops.
A PdfPTableEvent can be associated to the table to do custom drawing when the table is rendered.
- Author:
- Paulo Soares (psoares@consiste.pt)
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected float[]static final intThe index of the duplicatePdfContentBytewhere the background will be drawn.static final intThe index of the originalPdfcontentByte.protected booleanIndicates if the PdfPTable is complete once added to the document.protected PdfPCell[]protected intprotected PdfPCellprotected intHolds value of property headerRows.protected booleanstatic final intThe index of the duplicatePdfContentBytewhere the border lines will be drawn.protected float[]protected booleanKeeps track of the completeness of the current row.protected ArrayListprotected intprotected floatThe spacing after the table.protected floatThe spacing before the table.protected PdfPTableEventstatic final intThe index of the duplicatePdfContentBytewhere the text will be drawn.protected floatprotected floatprotected floatHolds value of property widthPercentage.Fields inherited from interface com.lowagie.text.Element
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, HEADER, IMGRAW, IMGTEMPLATE, JBIG2, JPEG, JPEG2000, KEYWORDS, LIST, LISTITEM, MARKED, MULTI_COLUMN_TEXT, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE, YMARK -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds an Image as Cell.voidAdds a cell element.voidAdds a nested table.voidAdds a cell element.voidAdds a cell element.protected PdfPRowadjustCellsInRow(int start, int end) Calculates the extra height needed in a row because of rowspans.static PdfContentByte[]beginWritingRows(PdfContentByte canvas) Gets and initializes the 4 layers where the table is written to.floatcalculateHeights(boolean firsttime) Calculates the heights of the table.voidCalculates the heights of the table.protected voidvoidCompletes the current row with the default cell.protected voidcopyFormat(PdfPTable sourceTable) Copies the format of the sourceTable without copying the content.voidRemoves all of the rows except headersbooleanDeletes the last row in the table.booleandeleteRow(int rowNumber) Deletes a row from the table.static voidendWritingRows(PdfContentByte[] canvases) Finishes writing the table.voidFlushes the content that has been added.float[]Gets the absolute sizes of each column width.Gets all the chunks in this element.Gets the defaultPdfPCellthat will be used as reference for all theaddCellmethods exceptaddCell(PdfPCell).floatGets the height of the rows that constitute the footer as defined bysetFooterRows().intGets the number of rows in the footer.floatGets the height of the rows that constitute the header as defined bysetHeaderRows().intGets the number of the rows that constitute the header.intGets the horizontal alignment of the table relative to the page.booleanGetter for property keepTogetherintReturns the number of columns.getRow(int idx) Gets a row with a given index (added by Jin-Hsia Yang).floatgetRowHeight(int idx) Gets the height of a particular row.floatgetRowHeight(int idx, boolean firsttime) Gets the height of a particular row.getRows()Gets an arraylist with all the rows in the table.getRows(int start, int end) Gets an arraylist with a selection of rows.floatgetRowspanHeight(int rowIndex, int cellIndex) Gets the maximum height of a cell in a particular row (will only be different from getRowHeight is one of the cells in the row has a rowspan > 1).intReturns the run direction of the contents in the table.Gets the table event for this page.floatGets the total height of the table.floatGets the full width of the table.floatGets the width percentage that the table will occupy in the page.booleanIndicates if the element is complete or not.booleanChecks if this element is a content object.booleanGets the value of the last row extension.booleanisExtendLastRow(boolean newPageFollows) Gets the value of the last row extension, taking into account if the final row is reached or not.booleanGets the header status inclusion in PdfPTableEvent.booleanGetter for property lockedWidth.booleanChecks if this element is nestable.booleanTells you if the first header needs to be skipped (for instance if the header says "continued from the previous page").booleanTells you if the last footer needs to be skipped (for instance if the footer says "continued on the next page")booleanGets the property splitLate.booleanGets the split value.booleanprocess(ElementListener listener) Processes the element by adding it (or the different parts) to anElementListener.voidsetComplete(boolean complete) If you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow.voidsetExtendLastRow(boolean extendLastRows) When set the last row will be extended to fill all the remaining space to the bottom boundary.voidsetExtendLastRow(boolean extendLastRows, boolean extendFinalRow) When set the last row on every page will be extended to fill all the remaining space to the bottom boundary; except maybe the final row.voidsetFooterRows(int footerRows) Sets the number of rows to be used for the footer.voidsetHeaderRows(int headerRows) Sets the number of the top rows that constitute the header.voidsetHeadersInEvent(boolean headersInEvent) When set the PdfPTableEvent will include the headers.voidsetHorizontalAlignment(int horizontalAlignment) Sets the horizontal alignment of the table relative to the page.voidsetKeepTogether(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.voidsetLockedWidth(boolean lockedWidth) Uses the value insetTotalWidth()inDocument.add().voidsetRunDirection(int runDirection) Sets the run direction of the contents of the table.voidsetSkipFirstHeader(boolean skipFirstHeader) Skips the printing of the first header.voidsetSkipLastFooter(boolean skipLastFooter) Skips the printing of the last footer.voidsetSpacingAfter(float spacing) Sets the spacing after this table.voidsetSpacingBefore(float spacing) Sets the spacing before this table.voidsetSplitLate(boolean splitLate) If true the row will only split if it's the first one in an empty page.voidsetSplitRows(boolean splitRows) When set the rows that won't fit in the page will be split.voidsetTableEvent(PdfPTableEvent event) Sets the table event for this table.voidsetTotalWidth(float totalWidth) Sets the full width of the table.voidsetTotalWidth(float[] columnWidth) Sets the full width of the table from the absolute column width.voidsetWidthPercentage(float widthPercentage) Sets the width percentage that the table will occupy in the page.voidsetWidthPercentage(float[] columnWidth, Rectangle pageSize) Sets the percentage width of the table from the absolute column width.voidsetWidths(float[] relativeWidths) Sets the relative widths of the table.voidsetWidths(int[] relativeWidths) Sets the relative widths of the table.static PdfPTableshallowCopy(PdfPTable table) Makes a shallow copy of a table (format without content).intsize()Gets the number of rows in this table.floatGets the spacing after this table.floatGets the spacing before this table.inttype()Gets the type of the text element.floatwriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows to the document.floatwriteSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows to the document.floatwriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows and columns to the document.floatwriteSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows and columns to the document.
-
Field Details
-
BASECANVAS
public static final int BASECANVASThe index of the originalPdfcontentByte.- See Also:
-
BACKGROUNDCANVAS
public static final int BACKGROUNDCANVASThe index of the duplicatePdfContentBytewhere the background will be drawn.- See Also:
-
LINECANVAS
public static final int LINECANVASThe index of the duplicatePdfContentBytewhere the border lines will be drawn.- See Also:
-
TEXTCANVAS
public static final int TEXTCANVASThe index of the duplicatePdfContentBytewhere the text will be drawn.- See Also:
-
rows
-
totalHeight
protected float totalHeight -
currentRow
-
currentRowIdx
protected int currentRowIdx -
defaultCell
-
totalWidth
protected float totalWidth -
relativeWidths
protected float[] relativeWidths -
absoluteWidths
protected float[] absoluteWidths -
tableEvent
-
headerRows
protected int headerRowsHolds value of property headerRows. -
widthPercentage
protected float widthPercentageHolds value of property widthPercentage. -
isColspan
protected boolean isColspan -
runDirection
protected int runDirection -
spacingBefore
protected float spacingBeforeThe spacing before the table. -
spacingAfter
protected float spacingAfterThe spacing after the table. -
complete
protected boolean completeIndicates if the PdfPTable is complete once added to the document.- Since:
- iText 2.0.8
-
rowCompleted
protected boolean rowCompletedKeeps track of the completeness of the current row.- Since:
- 2.1.6
-
-
Constructor Details
-
PdfPTable
protected PdfPTable() -
PdfPTable
public PdfPTable(float[] relativeWidths) Constructs aPdfPTablewith the relative column widths.- Parameters:
relativeWidths- the relative column widths
-
PdfPTable
public PdfPTable(int numColumns) Constructs aPdfPTablewithnumColumnscolumns.- Parameters:
numColumns- the number of columns
-
PdfPTable
Constructs a copy of aPdfPTable.- Parameters:
table- thePdfPTableto be copied
-
-
Method Details
-
shallowCopy
Makes a shallow copy of a table (format without content).- Parameters:
table-- Returns:
- a shallow copy of the table
-
copyFormat
Copies the format of the sourceTable without copying the content.- Parameters:
sourceTable-- Since:
- 2.1.6 private is now protected
-
setWidths
Sets the relative widths of the table.- Parameters:
relativeWidths- the relative widths of the table.- Throws:
DocumentException- if the number of widths is different than the number of columns
-
setWidths
Sets the relative widths of the table.- Parameters:
relativeWidths- the relative widths of the table.- Throws:
DocumentException- if the number of widths is different than the number of columns
-
calculateWidths
protected void calculateWidths()- Since:
- 2.1.6 private is now protected
-
setTotalWidth
public void setTotalWidth(float totalWidth) Sets the full width of the table.- Parameters:
totalWidth- the full width of the table.
-
setTotalWidth
Sets the full width of the table from the absolute column width.- Parameters:
columnWidth- the absolute width of each column- Throws:
DocumentException- if the number of widths is different than the number of columns
-
setWidthPercentage
Sets the percentage width of the table from the absolute column width.- Parameters:
columnWidth- the absolute width of each columnpageSize- the page size- Throws:
DocumentException
-
getTotalWidth
public float getTotalWidth()Gets the full width of the table.- Returns:
- the full width of the table
-
calculateHeights
public float calculateHeights(boolean firsttime) Calculates the heights of the table.- Parameters:
firsttime- if true, the heights of the rows will be recalculated. This takes time; normally the heights of the rows are already calcultated, so in most cases, it's save to use false as parameter.- Returns:
- the total height of the table. Note that it will be 0 if you didn't specify the width of the table with setTotalWidth().
- Since:
- 2.1.5 added a parameter and a return type to an existing method, and made it public
-
calculateHeightsFast
public void calculateHeightsFast()Calculates the heights of the table. -
getDefaultCell
Gets the defaultPdfPCellthat will be used as reference for all theaddCellmethods exceptaddCell(PdfPCell).- Returns:
- default
PdfPCell
-
addCell
Adds a cell element.- Parameters:
cell- the cell element
-
addCell
Adds a cell element.- Parameters:
text- the text for the cell
-
addCell
Adds a nested table.- Parameters:
table- the table to be added to the cell
-
addCell
Adds an Image as Cell.- Parameters:
image- theImageto add to the table. This image will fit in the cell
-
addCell
Adds a cell element.- Parameters:
phrase- thePhraseto be added to the cell
-
writeSelectedRows
public float writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows to the document.canvasesis obtained frombeginWritingRows().- Parameters:
rowStart- the first row to be written, zero indexrowEnd- the last row to be written + 1. If it is -1 all the rows to the end are writtenxPos- the x write coordinateyPos- the y write coordinatecanvases- an array of 4PdfContentByteobtained frombeginWrittingRows()- Returns:
- the y coordinate position of the bottom of the last row
- See Also:
-
writeSelectedRows
public float writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte[] canvases) Writes the selected rows and columns to the document. This method does not clip the columns; this is only important if there are columns with colspan at boundaries.canvasesis obtained frombeginWritingRows(). The table event is only fired for complete rows.- Parameters:
colStart- the first column to be written, zero indexcolEnd- the last column to be written + 1. If it is -1 all the columns to the end are writtenrowStart- the first row to be written, zero indexrowEnd- the last row to be written + 1. If it is -1 all the rows to the end are writtenxPos- the x write coordinateyPos- the y write coordinatecanvases- an array of 4PdfContentByteobtained frombeginWritingRows()- Returns:
- the y coordinate position of the bottom of the last row
- See Also:
-
writeSelectedRows
public float writeSelectedRows(int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows to the document.- Parameters:
rowStart- the first row to be written, zero indexrowEnd- the last row to be written + 1. If it is -1 all the rows to the end are writtenxPos- the x write coordinateyPos- the y write coordinatecanvas- thePdfContentBytewhere the rows will be written to- Returns:
- the y coordinate position of the bottom of the last row
-
writeSelectedRows
public float writeSelectedRows(int colStart, int colEnd, int rowStart, int rowEnd, float xPos, float yPos, PdfContentByte canvas) Writes the selected rows and columns to the document. This method clips the columns; this is only important if there are columns with colspan at boundaries. The table event is only fired for complete rows.- Parameters:
colStart- the first column to be written, zero indexcolEnd- the last column to be written + 1. If it is -1 all the columns to the end are writtenrowStart- the first row to be written, zero indexrowEnd- the last row to be written + 1. If it is -1 all the rows to the end are writtenxPos- the x write coordinateyPos- the y write coordinatecanvas- thePdfContentBytewhere the rows will be written to- Returns:
- the y coordinate position of the bottom of the last row
-
beginWritingRows
Gets and initializes the 4 layers where the table is written to. The text or graphics are added to one of the 4PdfContentBytereturned with the following order:PdfPtable.BASECANVAS- the originalPdfContentByte. Anything placed here will be under the table.PdfPtable.BACKGROUNDCANVAS- the layer where the background goes to.PdfPtable.LINECANVAS- the layer where the lines go to.PdfPtable.TEXTCANVAS- the layer where the text go to. Anything placed here will be over the table.
The layers are placed in sequence on top of each other.
- Parameters:
canvas- thePdfContentBytewhere the rows will be written to- Returns:
- an array of 4
PdfContentByte - See Also:
-
endWritingRows
Finishes writing the table.- Parameters:
canvases- the array returned bybeginWritingRows()
-
size
public int size()Gets the number of rows in this table.- Returns:
- the number of rows in this table
-
getTotalHeight
public float getTotalHeight()Gets the total height of the table.- Returns:
- the total height of the table
-
getRowHeight
public float getRowHeight(int idx) Gets the height of a particular row.- Parameters:
idx- the row index (starts at 0)- Returns:
- the height of a particular row
-
getRowHeight
public float getRowHeight(int idx, boolean firsttime) Gets the height of a particular row.- Parameters:
idx- the row index (starts at 0)firsttime- is this the first time the row heigh is calculated?- Returns:
- the height of a particular row
- Since:
- 3.0.0
-
getRowspanHeight
public float getRowspanHeight(int rowIndex, int cellIndex) Gets the maximum height of a cell in a particular row (will only be different from getRowHeight is one of the cells in the row has a rowspan > 1).- Parameters:
rowIndex- the row indexcellIndex- the cell index- Returns:
- the height of a particular row including rowspan
- Since:
- 2.1.6
-
getHeaderHeight
public float getHeaderHeight()Gets the height of the rows that constitute the header as defined bysetHeaderRows().- Returns:
- the height of the rows that constitute the header and footer
-
deleteRow
public boolean deleteRow(int rowNumber) Deletes a row from the table.- Parameters:
rowNumber- the row to be deleted- Returns:
trueif the row was deleted
-
deleteLastRow
public boolean deleteLastRow()Deletes the last row in the table.- Returns:
trueif the last row was deleted
-
deleteBodyRows
public void deleteBodyRows()Removes all of the rows except headers -
getNumberOfColumns
public int getNumberOfColumns()Returns the number of columns.- Returns:
- the number of columns.
- Since:
- 2.1.1
-
getHeaderRows
public int getHeaderRows()Gets the number of the rows that constitute the header.- Returns:
- the number of the rows that constitute the header
-
setHeaderRows
public void setHeaderRows(int headerRows) Sets the number of the top rows that constitute the header. This header has only meaning if the table is added toDocumentand the table crosses pages.- Parameters:
headerRows- the number of the top rows that constitute the header
-
getChunks
Gets all the chunks in this element. -
type
public int type()Gets the type of the text element. -
isContent
public boolean isContent()Description copied from interface:ElementChecks if this element is a content object. If not, it's a metadata object. -
isNestable
public boolean isNestable()Description copied from interface:ElementChecks if this element is nestable.- Specified by:
isNestablein interfaceElement- Returns:
- true if this element can be nested inside other elements.
- Since:
- iText 2.0.8
- See Also:
-
process
Processes the element by adding it (or the different parts) to anElementListener. -
getWidthPercentage
public float getWidthPercentage()Gets the width percentage that the table will occupy in the page.- Returns:
- the width percentage that the table will occupy in the page
-
setWidthPercentage
public void setWidthPercentage(float widthPercentage) Sets the width percentage that the table will occupy in the page.- Parameters:
widthPercentage- the width percentage that the table will occupy in the page
-
getHorizontalAlignment
public int getHorizontalAlignment()Gets the horizontal alignment of the table relative to the page.- Returns:
- the horizontal alignment of the table relative to the page
-
setHorizontalAlignment
public void setHorizontalAlignment(int horizontalAlignment) Sets the horizontal alignment of the table relative to the page. It only has meaning if the width percentage is less than 100%.- Parameters:
horizontalAlignment- the horizontal alignment of the table relative to the page
-
getRow
Gets a row with a given index (added by Jin-Hsia Yang).- Parameters:
idx-- Returns:
- the row at position idx
-
getRows
Gets an arraylist with all the rows in the table.- Returns:
- an arraylist
-
getRows
Gets an arraylist with a selection of rows.- Parameters:
start- the first row in the selectionend- the first row that isn't part of the selection- Returns:
- a selection of rows
- Since:
- 2.1.6
-
adjustCellsInRow
Calculates the extra height needed in a row because of rowspans.- Parameters:
start- the index of the start row (the one to adjust)end- the index of the end row on the page- Since:
- 2.1.6
-
setTableEvent
Sets the table event for this table.- Parameters:
event- the table event for this table
-
getTableEvent
Gets the table event for this page.- Returns:
- the table event for this page
-
getAbsoluteWidths
public float[] getAbsoluteWidths()Gets the absolute sizes of each column width.- Returns:
- he absolute sizes of each column width
-
isSkipFirstHeader
public boolean isSkipFirstHeader()Tells you if the first header needs to be skipped (for instance if the header says "continued from the previous page").- Returns:
- Value of property skipFirstHeader.
-
setSkipFirstHeader
public void setSkipFirstHeader(boolean skipFirstHeader) Skips the printing of the first header. Used when printing tables in succession belonging to the same printed table aspect.- Parameters:
skipFirstHeader- New value of property skipFirstHeader.
-
setRunDirection
public void setRunDirection(int runDirection) Sets the run direction of the contents of the table.- Parameters:
runDirection- One of the following values: PdfWriter.RUN_DIRECTION_DEFAULT, PdfWriter.RUN_DIRECTION_NO_BIDI, PdfWriter.RUN_DIRECTION_LTR or PdfWriter.RUN_DIRECTION_RTL.
-
getRunDirection
public int getRunDirection()Returns the run direction of the contents in the table.- Returns:
- One of the following values: PdfWriter.RUN_DIRECTION_DEFAULT, PdfWriter.RUN_DIRECTION_NO_BIDI, PdfWriter.RUN_DIRECTION_LTR or PdfWriter.RUN_DIRECTION_RTL.
-
isLockedWidth
public boolean isLockedWidth()Getter for property lockedWidth.- Returns:
- Value of property lockedWidth.
-
setLockedWidth
public void setLockedWidth(boolean lockedWidth) Uses the value insetTotalWidth()inDocument.add().- Parameters:
lockedWidth-trueto use the value insetTotalWidth()inDocument.add()
-
isSplitRows
public boolean isSplitRows()Gets the split value.- Returns:
- true to split; false otherwise
-
setSplitRows
public void setSplitRows(boolean splitRows) When set the rows that won't fit in the page will be split. Note that it takes at least twice the memory to handle a split table row than a normal table.trueby default.- Parameters:
splitRows- true to split; false otherwise
-
setSpacingBefore
public void setSpacingBefore(float spacing) Sets the spacing before this table.- Parameters:
spacing- the new spacing
-
setSpacingAfter
public void setSpacingAfter(float spacing) Sets the spacing after this table.- Parameters:
spacing- the new spacing
-
spacingBefore
public float spacingBefore()Gets the spacing before this table.- Returns:
- the spacing
-
spacingAfter
public float spacingAfter()Gets the spacing after this table.- Returns:
- the spacing
-
isExtendLastRow
public boolean isExtendLastRow()Gets the value of the last row extension.- Returns:
- true if the last row will extend; false otherwise
-
setExtendLastRow
public void setExtendLastRow(boolean extendLastRows) When set the last row will be extended to fill all the remaining space to the bottom boundary.- Parameters:
extendLastRows- true to extend the last row; false otherwise
-
setExtendLastRow
public void setExtendLastRow(boolean extendLastRows, boolean extendFinalRow) When set the last row on every page will be extended to fill all the remaining space to the bottom boundary; except maybe the final row.- Parameters:
extendLastRows- true to extend the last row on each page; false otherwiseextendFinalRow- false if you don't want to extend the final row of the complete table
-
isExtendLastRow
public boolean isExtendLastRow(boolean newPageFollows) Gets the value of the last row extension, taking into account if the final row is reached or not.- Returns:
- true if the last row will extend; false otherwise
- Since:
- iText 5.0.0
-
isHeadersInEvent
public boolean isHeadersInEvent()Gets the header status inclusion in PdfPTableEvent.- Returns:
- true if the headers are included; false otherwise
-
setHeadersInEvent
public void setHeadersInEvent(boolean headersInEvent) When set the PdfPTableEvent will include the headers.- Parameters:
headersInEvent- true to include the headers; false otherwise
-
isSplitLate
public boolean isSplitLate()Gets the property splitLate.- Returns:
- the property splitLate
-
setSplitLate
public void setSplitLate(boolean splitLate) If true the row will only split if it's the first one in an empty page. It's true by default. It's only meaningful if setSplitRows(true).- Parameters:
splitLate- the property value
-
setKeepTogether
public 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. The default is to split the table over multiple pages.- Parameters:
keepTogether- whether to try to keep the table on one page
-
getKeepTogether
public boolean getKeepTogether()Getter for property keepTogether- Returns:
- true if it is tried to keep the table on one page; false otherwise
-
completeRow
public void completeRow()Completes the current row with the default cell. An incomplete row will be dropped but calling this method will make sure that it will be present in the table. -
flushContent
public void flushContent()Description copied from interface:LargeElementFlushes the content that has been added.- Specified by:
flushContentin interfaceLargeElement- Since:
- iText 2.0.8
- See Also:
-
isComplete
public boolean isComplete()Description copied from interface:LargeElementIndicates if the element is complete or not.- Specified by:
isCompletein interfaceLargeElement- Returns:
- indicates if the element is complete according to the user.
- Since:
- iText 2.0.8
- See Also:
-
setComplete
public void setComplete(boolean complete) Description copied from interface:LargeElementIf you invoke setComplete(false), you indicate that the content of the object isn't complete yet; it can be added to the document partially, but more will follow. If you invoke setComplete(true), you indicate that you won't add any more data to the object.- Specified by:
setCompletein interfaceLargeElement- Parameters:
complete- false if you'll be adding more data after adding the object to the document.- Since:
- iText 2.0.8
- See Also:
-