|
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.HTMLFormatter
public class HTMLFormatter
HTMLFormatter is responsible for converting report and report elements into a HTML format. The generated HTML uses HTML tags only, with no cascade style sheet or other advanced features. For Web presentation of reports, use Style Report/EE's built-in web interface instead.
| Field Summary | |
|---|---|
protected Vector |
centerV
Deprecated. |
protected int |
currAlign
Deprecated. |
protected String |
dir
Deprecated. |
protected boolean |
inHeader
Deprecated. |
protected Vector |
leftV
Deprecated. |
protected OutputStream |
output
Deprecated. |
protected String |
prefix
Deprecated. |
protected Vector |
rightV
Deprecated. |
protected ReportSheet |
sheet
Deprecated. |
protected PrintWriter |
writer
Deprecated. |
| Fields inherited from class inetsoft.report.io.BaseFormatter |
|---|
docInfo, report |
| Constructor Summary | |
|---|---|
HTMLFormatter(OutputStream output,
String dir)
Deprecated. Create a report formatter. |
|
| Method Summary | |
|---|---|
protected void |
addElement(ReportElement elem)
Deprecated. |
void |
end()
Deprecated. Write the end of report. |
protected void |
endCell()
Deprecated. End a cell. |
protected void |
endGrid()
Deprecated. End the layout grid. |
void |
endHeader()
Deprecated. End a header section. |
protected void |
endRow()
Deprecated. End a row. |
protected void |
flushElements()
Deprecated. Write out the buffered paragraphs. |
protected String |
getFontName(Font font)
Deprecated. Get the real font name. |
void |
prolog(ReportSheet sheet)
Deprecated. Write the prolog of report. |
void |
setJPEGPrefix(String prefix)
Deprecated. Set the JPEG file prefix. |
protected void |
startCell(TabularSheet sheet,
int r,
int c,
Object bg,
Insets borders,
Color bcolor,
Rectangle span,
String width,
boolean repeat)
Deprecated. Start a new cell. |
protected void |
startGrid(int rows,
int cols)
Deprecated. Start a layout grid (for tabular layout). |
void |
startHeader(int type)
Deprecated. Start a header section. |
void |
startHeader(String eid,
boolean header)
Deprecated. Start a header selection for element associated header/footer. |
protected void |
startRow(TabularSheet sheet,
int row)
Deprecated. Start a new row. |
protected String |
toString(Color c)
Deprecated. Convert color to hex string. |
void |
write(AreaBreakElement elem)
Deprecated. Write the areabreak element. |
void |
write(BeanElement elem)
Deprecated. Write the bean element. |
void |
write(ChartElement elem)
Deprecated. Write the chart element. |
void |
write(CompositeElement elem)
Deprecated. Write the composite element. |
void |
write(CondPageBreakElement elem)
Deprecated. Write the conditional page break element. |
void |
write(FormElement elem0)
Deprecated. Write the form element. |
void |
write(HeadingElement elem)
Deprecated. Write the heading text element. |
void |
write(NewlineElement elem)
Deprecated. Write the newline element. |
void |
write(PageBreakElement elem)
Deprecated. Write the pagebreak element. |
void |
write(PageLayoutElement elem)
Deprecated. Write the page layout element. |
void |
write(PainterElement elem0)
Deprecated. Write the painter element. |
void |
write(SectionElement elem0)
Deprecated. Write the section element. |
void |
write(SeparatorElement elem)
Deprecated. Write the separator element. |
void |
write(SpaceElement elem)
Deprecated. Write the space element. |
void |
write(TabElement elem)
Deprecated. Write the tab element. |
void |
write(TableElement elem0)
Deprecated. Write the table element. |
void |
write(TextBoxElement elem)
Deprecated. Write the textbox element. |
void |
write(TextElement elem0)
Deprecated. Write the text element. |
void |
write(TOCElement elem)
Deprecated. Write the TOC element. |
void |
write(inetsoft.report.style.XTableStyle style)
Deprecated. Write embedded table style. |
protected void |
writeAlignment(int align)
Deprecated. Write horizontal alignment option. |
protected void |
writeHeading(HeadingElement elem)
Deprecated. Write a heading element. |
protected String |
writeImage(Painter painter,
Dimension d,
Color fg,
Color bg)
Deprecated. Write a painter to an image file. |
protected Image |
writeImage0(Painter painter,
Dimension d,
Color fg,
Color bg)
Deprecated. Write a painter to an image file. |
protected void |
writePainter(Painter painter,
String url,
Color fg,
Color bg,
int align,
Insets space,
Dimension size)
Deprecated. Write an image element. |
protected void |
writeParagraph(Vector para,
int align)
Deprecated. |
void |
writeSection(SectionLens section,
TableLens table)
Deprecated. Write the section element. |
protected void |
writeSectionBand(SectionBand band)
Deprecated. Print one band. |
protected void |
writeShapes(PageLayout.Shape[] shapes)
Deprecated. Write the pagelayout shapes specifications. |
protected void |
writeText(Object obj,
Font font,
Color fg,
Color bg)
Deprecated. Write text paragraph. |
protected int |
writeTOC(TOCElement elem)
Deprecated. Write a TOC element. |
| Methods inherited from class inetsoft.report.io.BaseFormatter |
|---|
addProgressListener, escape, fireProgressEvent, init, localize, removeProgressListener, setDocumentInfo, write, write, write, write, writeBeanPropertyDefinition, writeContents, writeContents, 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 String dir
protected PrintWriter writer
protected OutputStream output
protected Vector leftV
protected Vector centerV
protected Vector rightV
protected int currAlign
protected boolean inHeader
protected String prefix
protected ReportSheet sheet
| Constructor Detail |
|---|
public HTMLFormatter(OutputStream output,
String dir)
| Method Detail |
|---|
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 BaseFormatterprotected void writeShapes(PageLayout.Shape[] shapes)
writeShapes in class BaseFormatterpublic void setJPEGPrefix(String prefix)
prefix - jpeg file prefix.public void prolog(ReportSheet sheet)
public void startHeader(int type)
type - header/footer type. Defined in ReportSheet.
public void startHeader(String eid,
boolean header)
eid - element ID.header - true if header, false if footer.public void endHeader()
public void write(inetsoft.report.style.XTableStyle style)
public void write(HeadingElement elem)
public void write(TextElement elem0)
public void write(SectionElement elem0)
throws IOException
IOException
public void writeSection(SectionLens section,
TableLens table)
throws IOException
IOException
protected void writeSectionBand(SectionBand band)
throws IOException
writeSectionBand in class BaseFormatterIOExceptionpublic void write(TableElement elem0)
public void write(FormElement elem0)
public void write(PainterElement elem0)
public void write(ChartElement elem)
public void write(TextBoxElement elem)
public void write(TabElement elem)
public void write(NewlineElement elem)
public void write(AreaBreakElement elem)
public void write(PageBreakElement elem)
public void write(PageLayoutElement elem)
public void write(CondPageBreakElement elem)
public void write(SpaceElement elem)
public void write(SeparatorElement elem)
public void write(TOCElement elem)
public void write(CompositeElement elem)
throws IOException
IOException
public void write(BeanElement elem)
throws IOException
IOException
public void end()
throws IOException
end in interface Formatterend in class BaseFormatterIOExceptionprotected String getFontName(Font font)
protected void writeText(Object obj,
Font font,
Color fg,
Color bg)
protected void writeAlignment(int align)
protected void writePainter(Painter painter,
String url,
Color fg,
Color bg,
int align,
Insets space,
Dimension size)
protected void writeHeading(HeadingElement elem)
protected int writeTOC(TOCElement elem)
protected String writeImage(Painter painter,
Dimension d,
Color fg,
Color bg)
protected Image writeImage0(Painter painter,
Dimension d,
Color fg,
Color bg)
protected String toString(Color c)
protected void addElement(ReportElement elem)
protected void flushElements()
protected void writeParagraph(Vector para,
int align)
|
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 | ||||||||