info.informatica.report.block
Class DynamicBlock

java.lang.Object
  extended by info.informatica.report.block.AbstractBlock
      extended by info.informatica.report.block.DynamicBlock
All Implemented Interfaces:
Block
Direct Known Subclasses:
ImageBlock, RowTemplateBlock

public abstract class DynamicBlock
extends AbstractBlock

Clases implementing this interface are able to print more than one row of data by calling the next() method of the data-provider object, until a maximum of RowLimit, as given by ReportDataSpec.

Author:
Carlos Amengual (amengual at informatica.info)

Method Summary
 ReportElement filterChildReportElement(ReportElement element)
          Add a nested block.
 FragmentList getNestedBlocks()
          Gets the nested blocks.
 boolean hasNested()
          Does this Block have nested blocks?
 
Methods inherited from class info.informatica.report.block.AbstractBlock
filterChildXHTMLElement, getCondition, getPeerElement, getReportDataSpec, getTransformParameters, init, isHidden, printSample, setCondition, setReportDataSpec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

filterChildReportElement

public ReportElement filterChildReportElement(ReportElement element)
Add a nested block.

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.
Throws:
IllegalArgumentException - if the block does not allow nested segments.

getNestedBlocks

public FragmentList getNestedBlocks()
Gets the nested blocks.

Returns:
the nested blocks list.

hasNested

public boolean hasNested()
Does this Block have nested blocks?

Returns:
true if the block has nested blocks, false otherwise.