org.ujac.print
Interface PdfTableHolder

All Superinterfaces:
CommonAttributesHolder, PdfCellContainer
All Known Implementing Classes:
PdfTableTag, PrintTableTag

public interface PdfTableHolder
extends PdfCellContainer

Name: PdfTableHolder
Description: Interface for tags, holding PDF tables.

Author:
lauerc

Method Summary
 boolean fitsPage()
          Checks whether the table fits the current page or not.
 int getNumColumns()
          Gets the number of columns, defined for the table.
 int getNumContentRows()
          Gets the number of content rows, that have been added to the current table so far.
 boolean splitTable(boolean newPage, boolean keepHeader)
          Splits the table vertically.
 
Methods inherited from interface org.ujac.print.PdfCellContainer
addCell, getCellAttributes, getPdfTable, getRemainingPdfColumns
 
Methods inherited from interface org.ujac.print.CommonAttributesHolder
getLeading, getLineSpacing
 

Method Detail

getNumColumns

int getNumColumns()
Gets the number of columns, defined for the table.

Returns:
The number of columns that have been defined for the table.

getNumContentRows

int getNumContentRows()
Gets the number of content rows, that have been added to the current table so far.

Returns:
The number of content rows, that have been added to the current table so far.

fitsPage

boolean fitsPage()
                 throws DocumentHandlerException
Checks whether the table fits the current page or not.

Returns:
true if there's room enough for the table on the current page, else false.
Throws:
DocumentHandlerException - In case something went wrong.

splitTable

boolean splitTable(boolean newPage,
                   boolean keepHeader)
                   throws DocumentHandlerException
Splits the table vertically.

Parameters:
newPage - Tells whether to start a new page or not.
keepHeader - Tells whether to keep the old header or not.
Returns:
true if a split has been really performed, else false.
Throws:
DocumentHandlerException - If something went wrong while splitting the table.


Copyright © 2003-2004 UJAC.org. All Rights Reserved.