info.informatica.doc.structure
Interface TableRenderer


public interface TableRenderer

Interface used to help rendering tables.

Author:
Carlos Amengual (amengual at informatica.info)

Method Summary
 void endRow()
          End the rendering of a table row.
 void endTable()
          End the rendering of the table.
 void initHeader()
          Initialize the table appropriately for printing table headers.
 void printCell(TableCell cell, String cellValue)
          Print a table cell.
 void printHeaderCell(TableCell headerCell, String cellValue)
          Print a header cell.
 void startRow(TableRow row)
          Start the rendering of a table row.
 

Method Detail

initHeader

void initHeader()
Initialize the table appropriately for printing table headers. Must be called before printing the first header.


printHeaderCell

void printHeaderCell(TableCell headerCell,
                     String cellValue)
Print a header cell.

Parameters:
headerCell - the cell that must be rendered as a header cell.
cellValue - the text contents of the cell.

startRow

void startRow(TableRow row)
Start the rendering of a table row.

Parameters:
row - the row box.

endRow

void endRow()
End the rendering of a table row.


printCell

void printCell(TableCell cell,
               String cellValue)
Print a table cell.

Parameters:
cell - the table cell that must be rendered.
cellValue - the text contents of the cell.

endTable

void endTable()
              throws RenderingException
End the rendering of the table.

Throws:
RenderingException


Copyright © 2011 informatica.info. All Rights Reserved.