Save This Page
Home » iText-src-2.1.3 » com.lowagie » text » pdf » [javadoc | source]
com.lowagie.text.pdf
public class: PdfTable [javadoc | source]
java.lang.Object
   com.lowagie.text.Rectangle
      com.lowagie.text.pdf.PdfTable

All Implemented Interfaces:
    Element

PdfTable is an object that contains the graphics and text of a table.
Field Summary
protected  Table table    Original table used to build this object 
protected  float[] positions    Cached column widths. 
Fields inherited from com.lowagie.text.Rectangle:
UNDEFINED,  TOP,  BOTTOM,  LEFT,  RIGHT,  NO_BORDER,  BOX,  llx,  lly,  urx,  ury,  rotation,  border,  borderWidth,  borderColor,  backgroundColor,  useVariableBorders,  borderWidthLeft,  borderWidthRight,  borderWidthTop,  borderWidthBottom,  borderColorLeft,  borderColorRight,  borderColorTop,  borderColorBottom
Constructor:
 PdfTable(Table table,
    float left,
    float right,
    float top) 
    Constructs a 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
Method from com.lowagie.text.pdf.PdfTable Summary:
cellpadding,   cellspacing,   columns,   getCells,   getHeaderCells,   getOffset,   hasHeader,   hasToFitPageCells,   hasToFitPageTable,   rows,   type,   updateRowAdditions
Methods from com.lowagie.text.Rectangle:
cloneNonPositionParameters,   disableBorderSide,   enableBorderSide,   getBackgroundColor,   getBorder,   getBorderColor,   getBorderColorBottom,   getBorderColorLeft,   getBorderColorRight,   getBorderColorTop,   getBorderWidth,   getBorderWidthBottom,   getBorderWidthLeft,   getBorderWidthRight,   getBorderWidthTop,   getBottom,   getBottom,   getChunks,   getGrayFill,   getHeight,   getLeft,   getLeft,   getRight,   getRight,   getRotation,   getTop,   getTop,   getWidth,   hasBorder,   hasBorders,   isContent,   isNestable,   isUseVariableBorders,   normalize,   process,   rectangle,   rotate,   setBackgroundColor,   setBorder,   setBorderColor,   setBorderColorBottom,   setBorderColorLeft,   setBorderColorRight,   setBorderColorTop,   setBorderWidth,   setBorderWidthBottom,   setBorderWidthLeft,   setBorderWidthRight,   setBorderWidthTop,   setBottom,   setGrayFill,   setLeft,   setRight,   setTop,   setUseVariableBorders,   softCloneNonPositionParameters,   toString,   type
Methods from java.lang.Object:
equals,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from com.lowagie.text.pdf.PdfTable Detail:
 final float cellpadding() 
    Returns the cellpadding of the table.
 final 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.
 public float getOffset() 
    Gets the offset of this table.
 boolean hasHeader() 
    Checks if there is a table header.
 public final boolean hasToFitPageCells() 
    Checks if the cells of this Table have to fit a page.
 public final boolean hasToFitPageTable() 
    Checks if this Table has to fit a page.
 int rows() 
    Get the number of rows
 public 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.

    Pre-requisite: the object must have been built with the parameter supportUpdateRowAdditions equals to true.