|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.report.block.AbstractBlock
info.informatica.report.block.DefaultTemplateBlock
public class DefaultTemplateBlock
A MapBlock that supports DataFormatter formatting.
The basic building block of the default templates.
| Constructor Summary | |
|---|---|
DefaultTemplateBlock(ReportElement peerElement)
|
|
| Method Summary | |
|---|---|
String |
format(Dataset data)
|
String |
format(Map<String,? extends Object> m)
|
DataFormatter |
getFormatter()
Gets the FormatPrinter object associated to this block. |
void |
init()
Arranges the block for printing. |
void |
print(ReportWriter rw,
Map<String,? extends Object> m)
|
void |
printSample(ReportWriter rw)
Print a sample of this block. |
void |
setTemplate(String templateText)
|
| Methods inherited from class info.informatica.report.block.AbstractBlock |
|---|
filterChildReportElement, filterChildXHTMLElement, getCondition, getPeerElement, getReportDataSpec, getTransformParameters, isHidden, setCondition, setReportDataSpec |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultTemplateBlock(ReportElement peerElement)
| Method Detail |
|---|
public void init()
throws info.informatica.doc.DocumentFormatException
AbstractBlockNote 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.
init in interface Blockinit in class AbstractBlockinfo.informatica.doc.DocumentFormatException - if is unable to initialize due to a syntax or formatting
problem.
public void setTemplate(String templateText)
throws info.informatica.doc.DocumentFormatException
setTemplate in interface TemplateBlockinfo.informatica.doc.DocumentFormatExceptionpublic String format(Map<String,? extends Object> m)
format in interface TemplateBlock
public String format(Dataset data)
throws DatasetException
format in interface TemplateBlockDatasetExceptionpublic DataFormatter getFormatter()
public void print(ReportWriter rw,
Map<String,? extends Object> m)
throws info.informatica.doc.RenderingException
print in interface MapBlockinfo.informatica.doc.RenderingException
public void printSample(ReportWriter rw)
throws info.informatica.doc.RenderingException
Block
printSample in interface BlockprintSample in class AbstractBlockrw - the ReportWriter to write to.
info.informatica.doc.RenderingException - if cannot render the sample.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||