info.informatica.report.block
Class TextBlock
java.lang.Object
info.informatica.report.block.AbstractBlock
info.informatica.report.block.TextBlock
- All Implemented Interfaces:
- Block, StaticBlock
public class TextBlock
- extends AbstractBlock
- implements StaticBlock
The simplest StaticBlock: a bunch of text.
- Author:
- amengual at informatica dot info
TextBlock
public TextBlock(ReportElement peerElement)
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.
setContent
public void setContent(String text)
throws info.informatica.doc.DocumentFormatException
- Throws:
info.informatica.doc.DocumentFormatException
print
public void print(ReportWriter rw)
throws info.informatica.doc.RenderingException
- Specified by:
print in interface StaticBlock
- Throws:
info.informatica.doc.RenderingException