|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jet.bean.HtmlParameter
public class HtmlParameter
The HtmlParameter
class is used for exporting to HTML. It contains all the
information for exporting report results.
Field Summary | |
---|---|
static int |
FORMAT_DEFAULT
Default image type for exporting. |
static int |
FORMAT_GIF
Exports image as GIF type. |
static int |
FORMAT_JPEG
Exports image as JPEG type. |
static int |
FORMAT_PNG
Exports image as PNG type. |
Constructor Summary | |
---|---|
HtmlParameter()
|
Method Summary | |
---|---|
HtmlParameter |
copy()
Adding the method for MailInformation can clone this object. |
int |
getBrowserType()
Returns the parameter value of BrowserType. |
int |
getExportImageType()
Returns the parameter value of ExportImageType. |
int[] |
getExportPageNumberList()
Returns the export pageNumber list. |
int[][] |
getExportPageNumberRange()
Returns export pageNumber range array. |
boolean |
getisPlsExporter()
Get if it is Hmtl PLS format. |
java.lang.String |
getLastPageURL()
Returns the parameter value of LastPageURL. |
java.util.Properties |
getNLSProperties()
Returns the NLS properties object. |
int |
getOverflowType()
Gets the parameter value of OverflowType. |
int |
getResolution()
Returns the parameter value of resolution. |
java.lang.String |
getTitle()
Returns the parameter value of title. |
java.lang.String |
getURI()
Gets URI parameter. |
java.lang.String |
getUrl()
Returns the parameter value of URL, only used for pipeline mode JRServer interface. |
boolean |
hasHyperlink()
Sets if there are hyperlinks for navigating previous and next pages on the navigation bar of the exported HTML file. |
boolean |
hasPageNumber()
Sets if there is page number information showing the current page number and total page number on the navigation bar of the exported HTML file. |
boolean |
isAbsoluteFontSize()
Returns the parameter value of isAbsoluteFontSize. |
boolean |
isDhtml()
Sets whether to enable the TOC (Table of Contents) when viewing the report in HTML format. |
boolean |
isEmbededCSS()
Sets whether to embed the cascading style sheet (CSS) in the exported HTML files; otherwise, the .css file will be generated individually. |
boolean |
isExportAppletChart()
Returns the parameter value of isExportAppletChart. |
boolean |
IsExportToMultiFiles()
Returns the parameter value of IsExportToMultiFiles. |
boolean |
isForHtmlMail()
Returns the parameter value of isForHtmlMail. |
boolean |
isIncludeDrillDownFile()
Returns the parameter value of isIncludeDrillDownFile. |
boolean |
isNoMargin()
Returns the parameter value of isNoMargin. |
boolean |
isOnlyExportHtmlBody()
Gets if exports html body only. |
boolean |
isSect508Html()
Returns the property value of isSect508Html. |
boolean |
isTableFormatHtml()
Deprecated. the feature was removed from v8 |
boolean |
isUseExtenalCSSValue()
Returns the parameter value of isUseExtenalCSSValue. |
boolean |
isUseHtmlTable()
Returns the parameter value of "isUseHtmlTable". |
boolean |
isUseScope()
Returns the parameter value of "isUseScope". |
boolean |
isWriteCSSInline()
Gets if writes css in line style. |
void |
setBrowserType(int browserType)
Sets browser type. |
void |
setDhtml(boolean isDhtml)
Sets if the HTML result contains TOC or not. |
void |
setEmbededCSS(boolean isEmbededCSS)
Sets the HTML result uses outer CSS or embedded CSS. When IsExportToMultiFiles=false, the value is alway true. |
void |
setExportImageType(int exportImageType)
Sets the image chart type. |
void |
setExportPageNumberList(int[] exportPageNumberList)
Sets the export page number list. |
void |
setExportPageNumberRange(int[][] exportPageNumberRange)
Sets the export page number list. |
void |
setHasHyperlink(boolean hasHyperlink)
Sets if the HTML result contains page navigator link or not. |
void |
setHasPageNumber(boolean hasPageNumber)
Sets if the HTML result contains page number or not. |
void |
setIsAbsoluteFontSize(boolean isAbsoluteFontSize)
Sets the font unit. |
void |
setIsExportAppletChart(boolean isExportChartAsApplet)
Sets if the HTML result uses Applet or image to draw chart. |
void |
setIsExportToMultiFiles(boolean multifile)
Sets if the report will be exported to multiple HTML files or not. |
void |
setIsHtmlMail(boolean isHtmlMail)
Sets if the HTML file is for email or not. |
void |
setIsIncludeDrillDownFile(boolean isIncludeDrillDownFile)
Sets if the HTML result includes drilldown files or not. |
void |
setIsNoMargin(boolean isNoMargin)
Sets if the result file removes margins or not. |
void |
setisPlsExporter(boolean isPLS)
Sets if exports to PLS html or not. |
void |
setIsSect508Html(boolean isSect508Html)
Sets the IsSect508Html properties object to control the html result according to Section508 standard. |
void |
setIsTableFormatHtml(boolean isTableFormatHtml)
Deprecated. the feature was removes from v8 |
void |
setLastPageURL(java.lang.String url)
Sets last page url of the page navigator link, only used for pipeline mode JRServer interface. |
void |
setNLSProperties(java.util.Properties properties)
Sets the NLS properties object to control the navigator button text of the html result. |
void |
setOnlyExportHtmlBody(boolean isOnlyExportHtmlBody)
Sets if exports html body only. |
void |
setOverflowType(int overflowType)
This is to control the text overflow. |
void |
setResolution(int resolution)
Sets resolution. |
void |
setTitle(java.lang.String title)
Sets the content of html title. |
void |
setURI(java.lang.String uri)
Sets URI parameter. |
void |
setUrl(java.lang.String url)
Sets page navigator link url, only used for pipeline mode JRServer interface. |
void |
setUseExtenalCSSValue(boolean isUseExtenalCSSValue)
Sets to use user defined ExtenalCSSValue as HTML CSS name. |
void |
setUseHtmlTable(boolean isUseHtmlTable)
Sets the parameter value of "isUseHtmlTable". |
void |
setUseScope(boolean isUseScope)
Sets the parameter value of "isUseScope". |
void |
setWriteCSSInline(boolean isWriteCSSInline)
Sets if writes css in line style. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int FORMAT_DEFAULT
public static final int FORMAT_GIF
public static final int FORMAT_JPEG
public static final int FORMAT_PNG
Constructor Detail |
---|
public HtmlParameter()
Method Detail |
---|
public void setURI(java.lang.String uri)
uri
- URI valuepublic java.lang.String getURI()
public void setHasHyperlink(boolean hasHyperlink)
hasHyperlink
- "true" with link; "False" otherwise.public boolean hasHyperlink()
public void setHasPageNumber(boolean hasPageNumber)
hasPageNumber
- "true" with page number, "False" otherwise.public boolean hasPageNumber()
public void setDhtml(boolean isDhtml)
isDhtml
- "true" with TOC, "False" otherwise.public boolean isDhtml()
public void setEmbededCSS(boolean isEmbededCSS)
isEmbededCSS
- "true" the cascading style sheet (CSS) will be embedded in the exported HTML files;public boolean isEmbededCSS()
public void setIsExportAppletChart(boolean isExportChartAsApplet)
isExportChartAsApplet
- "true" uses Applet, "False" uses image.public boolean isExportAppletChart()
public void setIsExportToMultiFiles(boolean multifile)
multifile
- If "true", JReport designates a serial number for each HTML page. For example, if you named a 3-page report as "sales", JReport will create three files called sales_1.html, sales_2.html, and sales_3.html.public boolean IsExportToMultiFiles()
public void setIsHtmlMail(boolean isHtmlMail)
isHtmlMail
- If true, the image in the HTML result would be added "cid: + filename + .mail@jinfonet.com"
else nothing would be added.public boolean isForHtmlMail()
public void setIsIncludeDrillDownFile(boolean isIncludeDrillDownFile)
isIncludeDrillDownFile
- "true" generates drilldown file; "false" otherwisepublic boolean isIncludeDrillDownFile()
public void setIsNoMargin(boolean isNoMargin)
isNoMargin
- "true" removes the margins originally set when the report was designed.public boolean isNoMargin()
public void setBrowserType(int browserType)
browserType
- 0 -- IE ; 1 -- NETSCAPEpublic int getBrowserType()
public void setExportImageType(int exportImageType)
exportImageType
- 0 -- default; 1 -- GIF; 2 -- JPEGpublic int getExportImageType()
public void setIsAbsoluteFontSize(boolean isAbsoluteFontSize)
isAbsoluteFontSize
- "true" use pixel as font unitpublic boolean isAbsoluteFontSize()
public void setIsTableFormatHtml(boolean isTableFormatHtml)
public boolean isTableFormatHtml()
public void setOverflowType(int overflowType)
overflowType
- 0 -- visible; 1 -- hidden;public int getOverflowType()
public void setResolution(int resolution)
resolution
- resolution value.public int getResolution()
public void setTitle(java.lang.String title)
content
- of html titlepublic java.lang.String getTitle()
public void setUrl(java.lang.String url)
url
- URL stringpublic java.lang.String getUrl()
public void setLastPageURL(java.lang.String url)
url
- last page urlpublic java.lang.String getLastPageURL()
public void setUseExtenalCSSValue(boolean isUseExtenalCSSValue)
isUseExtenalCSSValue
- "true", use user define ExtenalCSSValue, false otherwisepublic boolean isUseExtenalCSSValue()
public HtmlParameter copy()
public boolean isUseHtmlTable()
public void setUseHtmlTable(boolean isUseHtmlTable)
isUseHtmlTable
- If true, use HTML table element to render DSTableObject and DSCrossTab, else use "div".public boolean isUseScope()
public void setUseScope(boolean isUseScope)
isUseScope
- If true, when using HTML table element to render DSTableObject and DSCrossTab, set the row and column header cell with "scope" value to meet the 508 rules, else don't output the "scope" property.public java.util.Properties getNLSProperties()
public void setNLSProperties(java.util.Properties properties)
properties
- NLS propertiespublic boolean isSect508Html()
public void setIsSect508Html(boolean isSect508Html)
isSect508Html
- true for section508 mode, false is the default modepublic int[] getExportPageNumberList()
public void setExportPageNumberList(int[] exportPageNumberList)
properties
- Array for the export page number listpublic int[][] getExportPageNumberRange()
public void setExportPageNumberRange(int[][] exportPageNumberRange)
properties
- Array for the export page number range arraypublic boolean isOnlyExportHtmlBody()
public void setOnlyExportHtmlBody(boolean isOnlyExportHtmlBody)
boolean
- value specifically export to html body only or notpublic boolean isWriteCSSInline()
public void setWriteCSSInline(boolean isWriteCSSInline)
isWriteCSSInline
- write css in line style or notpublic void setisPlsExporter(boolean isPLS)
is
- PLS html or notpublic boolean getisPlsExporter()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |