com.lowagie.text.pdf
Class PdfTable

java.lang.Object
  |
  +--com.lowagie.text.Rectangle
        |
        +--com.lowagie.text.pdf.PdfTable
All Implemented Interfaces:
Element, MarkupAttributes

class PdfTable
extends Rectangle

PdfTable is an object that contains the graphics and text of a table.

See Also:
Table, Row, Cell, PdfCell

Field Summary
private  float cellpadding
          this is the cellpadding of the table.
private  ArrayList cells
          this is the ArrayList with all the cells in the table.
private  float cellspacing
          this is the cellspacing of the table.
private  int columns
          this is the number of columns in the table.
private  ArrayList headercells
          this is the ArrayList with all the cell of the table header.
 
Fields inherited from class com.lowagie.text.Rectangle
background, border, borderWidth, BOTTOM, BOX, color, grayFill, LEFT, llx, lly, markupAttributes, NO_BORDER, RIGHT, rotation, TOP, UNDEFINED, urx, ury
 
Fields inherited from interface com.lowagie.text.Element
ALIGN_BASELINE, ALIGN_BOTTOM, ALIGN_CENTER, ALIGN_JUSTIFIED, 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, PARAGRAPH, PHRASE, PRODUCER, PTABLE, RECTANGLE, ROW, SECTION, SUBJECT, TABLE, TITLE
 
Constructor Summary
(package private) PdfTable(Table table, float left, float right, float top)
          Constructs a PdfTable-object.
 
Method Summary
(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)  ArrayList getCells()
          Returns the arraylist with the cells of the table.
(package private)  ArrayList getHeaderCells()
          Returns the arraylist with the cells of the table header.
(package private)  boolean hasHeader()
          Checks if there is a table header.
 
Methods inherited from class com.lowagie.text.Rectangle
backgroundColor, border, borderColor, borderWidth, bottom, bottom, getChunks, getMarkupAttribute, getMarkupAttributeNames, getMarkupAttributes, getRotation, grayFill, hasBorder, hasBorders, height, left, left, process, rectangle, right, right, rotate, setBackgroundColor, setBorder, setBorderColor, setBorderWidth, setBottom, setGrayFill, setLeft, setMarkupAttribute, setMarkupAttributes, setRight, setTop, top, top, type, width
 
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
 

Field Detail

columns

private int columns
this is the number of columns in the table.


headercells

private ArrayList headercells
this is the ArrayList with all the cell of the table header.


cells

private ArrayList cells
this is the ArrayList with all the cells in the table.


cellpadding

private float cellpadding
this is the cellpadding of the table.


cellspacing

private float cellspacing
this is the cellspacing of the table.

Constructor Detail

PdfTable

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
Method Detail

getHeaderCells

ArrayList getHeaderCells()
Returns the arraylist with the cells of the table header.

Returns:
an ArrayList

hasHeader

boolean hasHeader()
Checks if there is a table header.

Returns:
an ArrayList

getCells

ArrayList getCells()
Returns the arraylist with the cells of the table.

Returns:
an ArrayList

columns

int columns()
Returns the number of columns of the table.

Returns:
the number of columns

cellpadding

float cellpadding()
Returns the cellpadding of the table.

Returns:
the cellpadding

cellspacing

float cellspacing()
Returns the cellspacing of the table.

Returns:
the cellspacing