info.informatica.report.block
Class TablePrinter

java.lang.Object
  extended by info.informatica.report.block.TablePrinter
All Implemented Interfaces:
info.informatica.doc.dom4j.TableRenderer, NativeWrapper
Direct Known Subclasses:
PdfPTableWrapper, PdfTableWrapper, TextTableWrapper

public abstract class TablePrinter
extends Object
implements NativeWrapper, info.informatica.doc.dom4j.TableRenderer

A table printer adapter for native objects.

Version:
1.01
Author:
amengual at informatica dot info

Nested Class Summary
 class TablePrinter.CellIndex
           
 
Method Summary
abstract  void endRow()
           
abstract  void endTable()
           
abstract  Object getRenderedObject()
          Get the native rendered object.
 AbstractTableBlock getTableBlock()
           
abstract  void initHeader()
           
 void initRender(ReportWriter writer)
          Initialize the wrapper for rendering the block.
abstract  void printCell(info.informatica.doc.dom4j.CSSStylableElement element, String cellValue)
           
abstract  void printHeaderCell(info.informatica.doc.dom4j.CSSStylableElement element, String cellValue)
           
abstract  void startRow(info.informatica.doc.dom4j.CSSStylableElement element)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getTableBlock

public AbstractTableBlock getTableBlock()

initRender

public void initRender(ReportWriter writer)
                throws info.informatica.doc.RenderingException
Description copied from interface: NativeWrapper
Initialize the wrapper for rendering the block.

Specified by:
initRender in interface NativeWrapper
Parameters:
writer - the report writer.
Throws:
info.informatica.doc.RenderingException - if any problem happened.

initHeader

public abstract void initHeader()
Specified by:
initHeader in interface info.informatica.doc.dom4j.TableRenderer

printHeaderCell

public abstract void printHeaderCell(info.informatica.doc.dom4j.CSSStylableElement element,
                                     String cellValue)
Specified by:
printHeaderCell in interface info.informatica.doc.dom4j.TableRenderer

startRow

public abstract void startRow(info.informatica.doc.dom4j.CSSStylableElement element)
Specified by:
startRow in interface info.informatica.doc.dom4j.TableRenderer

endRow

public abstract void endRow()
Specified by:
endRow in interface info.informatica.doc.dom4j.TableRenderer

printCell

public abstract void printCell(info.informatica.doc.dom4j.CSSStylableElement element,
                               String cellValue)
Specified by:
printCell in interface info.informatica.doc.dom4j.TableRenderer

endTable

public abstract void endTable()
                       throws info.informatica.doc.RenderingException
Specified by:
endTable in interface info.informatica.doc.dom4j.TableRenderer
Throws:
info.informatica.doc.RenderingException

getRenderedObject

public abstract Object getRenderedObject()
Description copied from interface: NativeWrapper
Get the native rendered object.

Specified by:
getRenderedObject in interface NativeWrapper
Returns:
the rendered object, or null if the block has not been rendered yet.