|
Style Intelligence v12.0 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectinetsoft.report.io.BaseFormatter
inetsoft.report.io.TemplateFormatter
public class TemplateFormatter
Converting a report template to XML representation.
| Field Summary | |
|---|---|
protected boolean |
embedData
|
protected boolean |
keepScript
|
protected OutputStream |
output
|
PrintWriter |
writer
|
| Fields inherited from class inetsoft.report.io.BaseFormatter |
|---|
docInfo, report |
| Constructor Summary | |
|---|---|
TemplateFormatter(OutputStream output)
Create a template formatter. |
|
| Method Summary | |
|---|---|
void |
end()
Write the end of report. |
protected void |
endCell()
End a cell. |
protected void |
endGrid()
End the layout grid. |
void |
endHeader()
End a header section. |
protected void |
endRow()
End a row. |
protected String |
getType(ReportSheet sheet)
Get the type name of a ReportSheet. |
protected boolean |
isKeepScript()
check if scripts associated with reports and elements will be saved. |
protected void |
localize(ReportSheet report)
Localize the report. |
protected void |
prepare(ReportSheet sheet)
Prepare the report for exporting to xml. |
void |
prolog(ReportSheet sheet)
Write the prolog of report. |
protected void |
setKeepScript(boolean v)
set whether scripts associated with reports and elements will be saved. |
protected void |
startCell(TabularSheet sheet,
int r,
int c,
Object bg,
Insets borders,
Color bcolor,
Rectangle span,
String width,
boolean repeat)
Start a new cell. |
protected void |
startGrid(int rows,
int cols)
Start a layout grid (for tabular layout). |
void |
startHeader(int type)
Start a header section. |
void |
startHeader(String eid,
boolean header)
Start a header selection for element associated header/footer. |
protected void |
startRow(TabularSheet sheet,
int row)
Start a new row. |
protected static String |
toString(Object obj)
|
void |
write(AreaBreakElement elem)
Write the areabreak element. |
void |
write(BeanElement elem)
Write the bean element. |
void |
write(ChartElement elem)
Write the chart element. |
void |
write(CompositeElement elem)
Write the composite element. |
void |
write(CondPageBreakElement elem)
Write the conditional page break element. |
void |
write(EditRegionElement elem)
Write the edit region element. |
void |
write(FormElement elem)
Write the form element. |
protected void |
write(FormLens table)
Write a table data. |
void |
write(HeadingElement elem)
Write the heading text element. |
protected void |
write(Image buf,
Dimension d)
Write an image object. |
void |
write(NewlineElement elem)
Write the newline element. |
void |
write(PageBreakElement elem)
Write the pagebreak element. |
void |
write(PageLayoutElement elem)
Write the page layout element. |
void |
write(PainterElement elem)
Write the painter element. |
protected void |
write(Painter painter,
ReportElement elem)
Write an embedded image (painter) object. |
void |
write(ParameterElement elem)
Write the parameter element. |
void |
write(ReportElement elem)
Write one element. |
void |
write(ReportSheet sheet)
Export a report. |
void |
write(SectionElement elem)
Write the section element. |
void |
write(SeparatorElement elem)
Write the separator element. |
void |
write(SpaceElement elem)
Write the space element. |
protected void |
write(SubreportElement subreport)
Write a subreport. |
void |
write(TabElement elem)
Write the tab element. |
void |
write(TableElement elem)
Write the table element. |
protected void |
write(TableLens table)
Write a table data. |
void |
write(TextBoxElement elem)
Write the textbox element. |
void |
write(TextElement elem)
Write the text element. |
void |
write(TOCElement elem)
Write the TOC element. |
void |
write(inetsoft.report.style.XTableStyle style)
Write embedded table style. |
protected void |
writeBeanPropertyDefinition(String prop,
BeanPropertyDefinition map)
Write a bean mapping definition. |
protected void |
writeBindingAttr(inetsoft.report.internal.BindableElement elem,
boolean rewriting)
Write binding attr. |
protected void |
writeContents(StyleSheet sheet)
Export a report. |
protected void |
writeContents(TabularSheet sheet)
Export a TabularSheet report. |
protected void |
writeElementAttributes(ReportElement elem0)
Write the common attributes of elements. |
protected void |
writeElementProperties(ReportElement elem0)
Write the properties of elements. |
protected void |
writeHiddenFields(inetsoft.report.internal.FieldElementDef elem)
Write hidden fields attr for field element |
void |
writeHyperlink(PrintWriter writer,
Hyperlink link)
Writer the hyperlink to XML. |
protected void |
writePageAreas(PageArea[] as)
Write the page area specifications. |
protected void |
writePainterAttributes(PainterElement elem)
Write the painter attributes. |
protected void |
writePropertyValue(PrintWriter writer,
String prop,
Object value)
Write tags for a property value. |
protected void |
writeSection(SectionLens section)
Write the section specifications. |
protected void |
writeSectionBand(SectionBand band)
Write the section band contents. |
protected void |
writeSectionBands(SectionBand[] bands)
Write the section band contents. |
protected void |
writeShapes(PageLayout.Shape[] shapes)
Write the pagelayout shapes specifications. |
protected void |
writeTabAttributes(inetsoft.report.internal.TabSupport elem)
Write the tab attributes. |
| Methods inherited from class inetsoft.report.io.BaseFormatter |
|---|
addProgressListener, escape, fireProgressEvent, init, removeProgressListener, setDocumentInfo, writeContents, writeElementContents, writeSection, writeWarnings, writeWarnings |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected boolean keepScript
protected boolean embedData
public PrintWriter writer
protected OutputStream output
| Constructor Detail |
|---|
public TemplateFormatter(OutputStream output)
| Method Detail |
|---|
public void write(ReportSheet sheet)
throws IOException
write in interface Formatterwrite in class BaseFormattersheet - report to export.
IOExceptionprotected void localize(ReportSheet report)
localize in class BaseFormatterprotected void prepare(ReportSheet sheet)
protected void setKeepScript(boolean v)
protected boolean isKeepScript()
protected void startGrid(int rows,
int cols)
startGrid in class BaseFormatterrows - number of rows.cols - number of columns.protected void endGrid()
endGrid in class BaseFormatter
protected void startRow(TabularSheet sheet,
int row)
startRow in class BaseFormattersheet - tabular report object.row - row index in the grid.protected void endRow()
endRow in class BaseFormatter
protected void startCell(TabularSheet sheet,
int r,
int c,
Object bg,
Insets borders,
Color bcolor,
Rectangle span,
String width,
boolean repeat)
startCell in class BaseFormatterr - row index.c - column index.bg - cell background color or image.borders - border setting.bcolor - border color.span - cell span.width - column width. See TabularSheet for width specification
format.repeat - true to repeat the cell contents on every page.protected void endCell()
endCell in class BaseFormatter
protected void writeContents(StyleSheet sheet)
throws IOException
writeContents in class BaseFormattersheet - report to export.
IOException
protected void writeContents(TabularSheet sheet)
throws IOException
writeContents in class BaseFormatterIOExceptionpublic void prolog(ReportSheet sheet)
public void startHeader(int type)
type - header/footer type. Defined in StyleSheet.
public void startHeader(String eid,
boolean header)
eid - element ID.header - true if header, false if footer.public void endHeader()
public void write(ReportElement elem)
throws IOException
write in class BaseFormatterelem - report element.
IOExceptionpublic void write(inetsoft.report.style.XTableStyle style)
public void write(TextElement elem)
public void write(HeadingElement elem)
public void write(TableElement elem)
public void write(FormElement elem)
public void write(PainterElement elem)
public void write(ChartElement elem)
Formatter
public void write(TextBoxElement elem)
public void write(TabElement elem)
protected void writeTabAttributes(inetsoft.report.internal.TabSupport elem)
public void write(NewlineElement elem)
public void write(AreaBreakElement elem)
public void write(PageBreakElement elem)
public void write(SectionElement elem)
throws IOException
IOException
protected void writeSection(SectionLens section)
throws IOException
IOException
protected void writeSectionBands(SectionBand[] bands)
throws IOException
IOException
protected void writeSectionBand(SectionBand band)
throws IOException
writeSectionBand in class BaseFormatterIOException
public void write(PageLayoutElement elem)
throws IOException
IOException
protected void writePageAreas(PageArea[] as)
throws IOException
IOExceptionprotected void writeShapes(PageLayout.Shape[] shapes)
writeShapes in class BaseFormatterpublic void write(CondPageBreakElement elem)
public void write(SpaceElement elem)
public void write(SeparatorElement elem)
protected void write(SubreportElement subreport)
throws IOException
write in class BaseFormatterIOException
public void write(TOCElement elem)
throws IOException
IOException
public void write(CompositeElement elem)
throws IOException
IOException
public void write(EditRegionElement elem)
throws IOException
IOException
public void write(BeanElement elem)
throws IOException
IOException
public void write(ParameterElement elem)
throws IOException
write in interface Formatterwrite in class BaseFormatterIOExceptionpublic void end()
end in interface Formatterend in class BaseFormatterprotected void writeElementAttributes(ReportElement elem0)
protected void writeElementProperties(ReportElement elem0)
protected void writePainterAttributes(PainterElement elem)
protected void writeBindingAttr(inetsoft.report.internal.BindableElement elem,
boolean rewriting)
protected void writeHiddenFields(inetsoft.report.internal.FieldElementDef elem)
protected void write(TableLens table)
protected void write(FormLens table)
protected void write(Painter painter,
ReportElement elem)
protected void write(Image buf,
Dimension d)
protected void writePropertyValue(PrintWriter writer,
String prop,
Object value)
protected void writeBeanPropertyDefinition(String prop,
BeanPropertyDefinition map)
writeBeanPropertyDefinition in class BaseFormatter
public void writeHyperlink(PrintWriter writer,
Hyperlink link)
protected String getType(ReportSheet sheet)
protected static String toString(Object obj)
|
Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved. | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||