info.informatica.report.block
Class TableBlock

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

public class TableBlock
extends AbstractTableBlock

A Table Block containing cell specifications.

Author:
amengual at informatica dot info

Constructor Summary
TableBlock(ReportElement peerElement)
           
TableBlock(TableBlock 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()
           
 int getColumnCount()
           
 List<ReportTableRowElement> getRowList()
           
 boolean hasHeader()
           
 void init()
          Arranges the block for printing.
 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

TableBlock

public TableBlock(ReportElement peerElement)

TableBlock

public TableBlock(TableBlock 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.

hasHeader

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

getBorderWidth

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

getColumnCount

public 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.

getRowList

public final List<ReportTableRowElement> getRowList()

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