fr.opensagres.xdocreport.itext.extension
Class ExtendedPdfPTable

java.lang.Object
  extended by com.lowagie.text.pdf.PdfPTable
      extended by fr.opensagres.xdocreport.itext.extension.ExtendedPdfPTable
All Implemented Interfaces:
com.lowagie.text.Element, com.lowagie.text.LargeElement, IITextContainer, IITextElement
Direct Known Subclasses:
MasterPageHeaderFooter, StylableTable, StylableTable

public class ExtendedPdfPTable
extends com.lowagie.text.pdf.PdfPTable
implements IITextContainer


Field Summary
 
Fields inherited from class com.lowagie.text.pdf.PdfPTable
absoluteWidths, BACKGROUNDCANVAS, BASECANVAS, complete, currentRow, currentRowIdx, defaultCell, headerRows, isColspan, LINECANVAS, relativeWidths, rowCompleted, rows, runDirection, spacingAfter, spacingBefore, tableEvent, TEXTCANVAS, totalHeight, totalWidth, 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
ExtendedPdfPTable(int numColumns)
           
 
Method Summary
 void addCell(com.lowagie.text.Image image)
           
 void addCell(com.lowagie.text.pdf.PdfPCell cell)
           
 void addCell(com.lowagie.text.pdf.PdfPTable table)
           
 void addCell(com.lowagie.text.Phrase phrase)
           
 void addCell(String text)
           
 void addElement(com.lowagie.text.Element element)
           
 com.lowagie.text.Element getElement()
           
 IITextContainer getITextContainer()
           
 float getRowHeight(int idx)
           
 float getRowHeight(int idx, boolean firsttime)
          Gets the height of a particular row.
 boolean isEmpty()
           
 void setITextContainer(IITextContainer container)
           
 void setPadding(float padding)
          Sets the padding of the contents in the cell (space between content and border).
 void setPaddingBottom(float paddingBottom)
          Setter for property paddingBottom.
 void setPaddingLeft(float paddingLeft)
          Setter for property paddingLeft.
 void setPaddingRight(float paddingRight)
          Setter for property paddingRight.
 void setPaddingTop(float paddingTop)
          Setter for property paddingTop.
 
Methods inherited from class com.lowagie.text.pdf.PdfPTable
adjustCellsInRow, beginWritingRows, calculateHeights, calculateHeightsFast, calculateWidths, completeRow, copyFormat, deleteBodyRows, deleteLastRow, deleteRow, endWritingRows, flushContent, getAbsoluteWidths, getChunks, getDefaultCell, getFooterHeight, getFooterRows, getHeaderHeight, getHeaderRows, getHorizontalAlignment, getKeepTogether, getNumberOfColumns, getRow, getRows, getRows, getRowspanHeight, getRunDirection, getTableEvent, getTotalHeight, getTotalWidth, getWidthPercentage, isComplete, isContent, isExtendLastRow, isHeadersInEvent, isLockedWidth, isNestable, isSkipFirstHeader, isSkipLastFooter, isSplitLate, isSplitRows, process, setComplete, setExtendLastRow, setFooterRows, setHeaderRows, setHeadersInEvent, setHorizontalAlignment, setKeepTogether, setLockedWidth, setRunDirection, setSkipFirstHeader, setSkipLastFooter, setSpacingAfter, setSpacingBefore, setSplitLate, setSplitRows, setTableEvent, setTotalWidth, setTotalWidth, setWidthPercentage, setWidthPercentage, setWidths, setWidths, shallowCopy, size, spacingAfter, spacingBefore, type, writeSelectedRows, writeSelectedRows, writeSelectedRows, writeSelectedRows
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.lowagie.text.Element
toString
 

Constructor Detail

ExtendedPdfPTable

public ExtendedPdfPTable(int numColumns)
Method Detail

addElement

public void addElement(com.lowagie.text.Element element)
Specified by:
addElement in interface IITextContainer

getITextContainer

public IITextContainer getITextContainer()
Specified by:
getITextContainer in interface IITextElement

setITextContainer

public void setITextContainer(IITextContainer container)
Specified by:
setITextContainer in interface IITextElement

getRowHeight

public float getRowHeight(int idx)
Overrides:
getRowHeight in class com.lowagie.text.pdf.PdfPTable

getRowHeight

public float getRowHeight(int idx,
                          boolean firsttime)
Gets the height of a particular row.

Overrides:
getRowHeight in class com.lowagie.text.pdf.PdfPTable
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

addCell

public void addCell(com.lowagie.text.Image image)
Overrides:
addCell in class com.lowagie.text.pdf.PdfPTable

addCell

public void addCell(com.lowagie.text.pdf.PdfPCell cell)
Overrides:
addCell in class com.lowagie.text.pdf.PdfPTable

addCell

public void addCell(com.lowagie.text.pdf.PdfPTable table)
Overrides:
addCell in class com.lowagie.text.pdf.PdfPTable

addCell

public void addCell(com.lowagie.text.Phrase phrase)
Overrides:
addCell in class com.lowagie.text.pdf.PdfPTable

addCell

public void addCell(String text)
Overrides:
addCell in class com.lowagie.text.pdf.PdfPTable

isEmpty

public boolean isEmpty()

setPadding

public void setPadding(float padding)
Sets the padding of the contents in the cell (space between content and border).

Parameters:
padding -

setPaddingLeft

public void setPaddingLeft(float paddingLeft)
Setter for property paddingLeft.

Parameters:
paddingLeft - New value of property paddingLeft.

setPaddingRight

public void setPaddingRight(float paddingRight)
Setter for property paddingRight.

Parameters:
paddingRight - New value of property paddingRight.

setPaddingBottom

public void setPaddingBottom(float paddingBottom)
Setter for property paddingBottom.

Parameters:
paddingBottom - New value of property paddingBottom.

setPaddingTop

public void setPaddingTop(float paddingTop)
Setter for property paddingTop.

Parameters:
paddingTop - New value of property paddingTop.

getElement

public com.lowagie.text.Element getElement()


Copyright © 2013. All rights reserved.