info.informatica.report.block
Class TableDataBlock

java.lang.Object
  extended by info.informatica.report.block.AbstractBlock
      extended by info.informatica.report.block.AbstractTableBlock
          extended by info.informatica.report.block.TableDataBlock
All Implemented Interfaces:
Block

public class TableDataBlock
extends AbstractTableBlock

A Table Block that supports DataFormatter formatting.

Author:
amengual at informatica dot info

Constructor Summary
TableDataBlock(ReportElement peerElement)
           
TableDataBlock(TableDataBlock tableblock)
           
 
Method Summary
 ReportElement filterChildReportElement(ReportElement element)
          When any ReportElement is added as a child of the peer ReportElement, it is filtered through this method.
 info.informatica.doc.dom4j.CSSStylableElement filterChildXHTMLElement(info.informatica.doc.dom4j.CSSStylableElement element)
          When any CSSStylableElement is added as a child of the peer ReportElement, it is filtered through this method.
 int getBorderWidth()
           
 ReportTableRowElement getCellList()
           
 int getColumnCount()
           
 ReportTableRowElement getHeaders()
           
 boolean hasHeader()
           
 void init()
          Arranges the block for printing.
 void print(info.informatica.doc.dom4j.TableRenderer tablePrinter, Dataset rd)
           
 void print(info.informatica.doc.dom4j.TableRenderer tablePrinter, Map<String,? extends Object> m)
           
 
Methods inherited from class info.informatica.report.block.AbstractBlock
getCondition, getPeerElement, getReportDataSpec, getTransformParameters, isHidden, printSample, setCondition, setReportDataSpec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TableDataBlock

public TableDataBlock(ReportElement peerElement)

TableDataBlock

public TableDataBlock(TableDataBlock tableblock)
Method Detail

init

public void init()
          throws info.informatica.doc.DocumentFormatException
Description copied from class: AbstractBlock
Arranges the block for printing. This method must be called before printing.

Note that blocks implementing NativeBlock must also call initRender(), after init().

This method needs to be called only once, typically before generating the data to be able to check for configuration errors.

Specified by:
init in interface Block
Specified by:
init in class AbstractBlock
Throws:
info.informatica.doc.DocumentFormatException - if is unable to initialize due to a syntax or formatting problem.

getBorderWidth

public int getBorderWidth()
Specified by:
getBorderWidth in class AbstractTableBlock

hasHeader

public boolean hasHeader()
Specified by:
hasHeader in class AbstractTableBlock

getColumnCount

public final int getColumnCount()
Specified by:
getColumnCount in class AbstractTableBlock

filterChildXHTMLElement

public info.informatica.doc.dom4j.CSSStylableElement filterChildXHTMLElement(info.informatica.doc.dom4j.CSSStylableElement element)
Description copied from interface: Block
When any CSSStylableElement is added as a child of the peer ReportElement, it is filtered through this method.

If the method returns null, the element will not be added.

Specified by:
filterChildXHTMLElement in interface Block
Overrides:
filterChildXHTMLElement in class AbstractBlock
Parameters:
element - the child element.
Returns:
the child element, maybe modified, or null if it must not be added as child.

filterChildReportElement

public ReportElement filterChildReportElement(ReportElement element)
Description copied from interface: Block
When any ReportElement is added as a child of the peer ReportElement, it is filtered through this method.

If the method returns null, the element will not be added.

Specified by:
filterChildReportElement in interface Block
Overrides:
filterChildReportElement in class AbstractBlock
Parameters:
element - the child element.
Returns:
the child element, maybe modified, or null if it must not be added as child.

getCellList

public final ReportTableRowElement getCellList()

getHeaders

public final ReportTableRowElement getHeaders()

print

public void print(info.informatica.doc.dom4j.TableRenderer tablePrinter,
                  Map<String,? extends Object> m)
           throws info.informatica.doc.RenderingException
Throws:
info.informatica.doc.RenderingException

print

public void print(info.informatica.doc.dom4j.TableRenderer tablePrinter,
                  Dataset rd)
           throws info.informatica.doc.RenderingException,
                  DatasetException
Throws:
info.informatica.doc.RenderingException
DatasetException