|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class is a subclass of ProcessReportAPI specifically for creating an output in the html format.
| Field Summary | |
static int |
CSS_EXISTS
Assume they have the css file already. |
static int |
CSS_INCLUDE
Put the css contents in the output (html) file. |
static int |
CSS_NO
No css. |
static int |
CSS_SEPARATE
Put the css contents in the css stream. |
static int |
DHTML
Create a HTML file that conforms to the DHTML spec. |
static int |
HTML_2
Create a HTML file that conforms to html 2.0. |
static int |
HTML_4_1
Create a HTML file that conforms to 4.01. |
static int |
IE5
Create a HTML file that conforms to the IE 5.0 spec. |
static int |
IE5_5
Create a HTML file that conforms to the IE 5.5 spec. |
static int |
IE6
Create a HTML file that conforms to the IE 6.0 spec. |
static int |
NN4
Create a HTML file that conforms to the Netscape 4.0 spec. |
static int |
NN6_1
Create a HTML file that conforms to the Netscape 6.1 spec. |
static int |
OP5
Create a HTML file that conforms to the Opera 5.0 spec. |
static int |
XHTML
Create a HTML file that conforms to the XHTML spec. |
| Fields inherited from interface net.windward.xmlreport.ProcessReportAPI |
CHARSET_DEFAULT, CHARSET_RTF, CHARSET_UNICODE, LOCALE_DEFAULT, LOCALE_SYSTEM, TYP_DOCX, TYP_EXCEL_ML, TYP_HTML, TYP_PDF, TYP_RTF, TYP_TXT, TYP_WORD_ML, TYP_XLS, TYP_XLSX |
| Method Summary | |
void |
addImageName(HtmlImage img)
Set a single image name. |
void |
addImageNames(java.util.ArrayList imgs)
Set several image names. |
ProcessHtmlAPI |
duplicate(java.io.OutputStream out,
java.io.OutputStream cssStream)
Creates and returns a copy of this object. |
java.lang.String |
getCssFilename()
Returns the css filename. |
java.io.OutputStream |
getCssStream()
Returns the css stream. |
int |
getCssType()
Returns if the css information will be written to a separate file, as part of the html file, or skipped (because the file already exists). |
java.lang.String |
getFilePath()
Get the path that all images will be saved to on the disk. |
java.lang.String |
getFilePrefix()
Get the prefix that will be part of the filename of all images saved to disk and listed in the html file. |
java.lang.String |
getHtmlPath()
Get the path that all images will be prefixed with in the html file. |
java.util.ArrayList |
getImageNames()
Get the image names/streams for the images in a report. |
int |
getReportType()
Get the report format of the output stream. |
int |
getSpec()
Gets the spec that the produced report must run under. |
boolean |
isFullFile()
The report can be generated as either a complete html file, or as just the body. |
void |
setCss(int cssMethod,
java.io.OutputStream cssStream,
java.lang.String cssFileName)
Sets if the css information will be written to a separate file, as part of the html file, or skipped (because the file already exists). |
void |
setFullFile(boolean fullDoc)
The report can be generated as either a complete html file, or as just the body. |
void |
setImagePath(java.lang.String file,
java.lang.String html,
java.lang.String prefix)
Set a path that all images will be saved to. |
void |
setSpec(int spec)
Sets the spec that the produced report must run under. |
| Methods inherited from interface net.windward.xmlreport.ProcessReportAPI |
setChartProvider |
| Methods inherited from interface net.windward.xmlreport.ProcessReportAPIBase |
addBean, close, duplicate, getBaseDirectory, getCharset, getInfo, getKeywords, getLocale, getNumPages, getReport, getSubject, getTitle, isDebugMode, process, processComplete, processData, processSetup, processSetup, setBaseDirectory, setCharset, setDebugMode, setKeywords, setLocale, setSubject, setTitle |
| Field Detail |
public static final int HTML_2
public static final int HTML_4_1
public static final int NN4
public static final int NN6_1
public static final int IE5
public static final int IE5_5
public static final int IE6
public static final int OP5
public static final int DHTML
public static final int XHTML
public static final int CSS_NO
public static final int CSS_INCLUDE
public static final int CSS_SEPARATE
public static final int CSS_EXISTS
| Method Detail |
public ProcessHtmlAPI duplicate(java.io.OutputStream out,
java.io.OutputStream cssStream)
throws AlreadyProcessedException,
LicenseException,
SetupException
out - The stream to write the report to. If null will create a ByteArrayOutputStream.cssStream - The css stream to write to. Can be null.AlreadyProcessedException - thrown if call the process steps out of order or call ones other than data twice.LicenseException - thrown if the license licenseKey check fails. The message will list the license check that failed.public int getReportType()
getReportType in interface ProcessReportAPIBasepublic void addImageName(HtmlImage img)
img - The image to add to the list of images for this file.java.lang.IllegalArgumentException - Thrown if addImageName(s) already calledpublic void addImageNames(java.util.ArrayList imgs)
imgs - The images to add to the list of images for this file.java.lang.IllegalArgumentException - Thrown if addImageName(s) already called
public void setImagePath(java.lang.String file,
java.lang.String html,
java.lang.String prefix)
file - The path of the file on the disk relative to the default directory of your program.html - The path of the file relative to the default directory of the client browser.prefix - The prefix to use when creating the filename. This can be null.java.lang.IllegalArgumentException - Thrown if addImageName(s) already calledpublic java.lang.String getFilePath()
public java.lang.String getHtmlPath()
public java.lang.String getFilePrefix()
public java.util.ArrayList getImageNames()
public void setFullFile(boolean fullDoc)
fullDoc - Set to true to return a complete html file, false otherwise.public boolean isFullFile()
public void setCss(int cssMethod,
java.io.OutputStream cssStream,
java.lang.String cssFileName)
throws java.lang.IllegalArgumentException
cssMethod - Must be one of the values CSS_NO, CSS_INCLUDE, CSS_SEPARATE, or CSS_EXISTS.cssStream - The stream to write the css file to. This can (and must) only be set if cssMethod
is CSS_SEPARATE. This file will always be the same every time a given template is run so it can be
generated the first time and just reused without being regenerated after that.cssFileName - The name of the file when cssMethod is CSS_SEPARATE or CSS_EXISTS. This is
only needed if the report will write the full file. Set to "" or null for other methods.java.lang.IllegalArgumentException - Thrown if an illegal reportType value is passed in.public int getCssType()
public java.lang.String getCssFilename()
public java.io.OutputStream getCssStream()
public void setSpec(int spec)
throws java.lang.IllegalArgumentException
spec - Must be one of the spec final int's from this class: HTML*, NN*, IE*, ...java.lang.IllegalArgumentException - Thrown if an illegal spec value is passed in.public int getSpec()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||