Package net.sf.jasperreports.export
Class SimpleHtmlExporterConfiguration
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleCommonExportConfiguration
-
- net.sf.jasperreports.export.SimpleExporterConfiguration
-
- net.sf.jasperreports.export.SimpleHtmlExporterConfiguration
-
- All Implemented Interfaces:
CommonExportConfiguration
,ExporterConfiguration
,HtmlExporterConfiguration
public class SimpleHtmlExporterConfiguration extends SimpleExporterConfiguration implements HtmlExporterConfiguration
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
-
-
Field Summary
-
Fields inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
-
Fields inherited from interface net.sf.jasperreports.export.HtmlExporterConfiguration
PROPERTY_BETWEEN_PAGES_HTML, PROPERTY_FLUSH_OUTPUT, PROPERTY_HTML_FOOTER, PROPERTY_HTML_HEADER
-
-
Constructor Summary
Constructors Constructor Description SimpleHtmlExporterConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getBetweenPagesHtml()
Returns a string representing HTML code that will be inserted between pages of the generated report.String
getHtmlFooter()
Returns a string representing HTML code that will be inserted after the generated report.String
getHtmlHeader()
Returns a string representing HTML code that will be inserted in front of the generated report.Boolean
isFlushOutput()
A flag that determines whether the HTML exporter should flush the output stream after writing the HTML content to it.void
setBetweenPagesHtml(String betweenPagesHtml)
void
setFlushOutput(Boolean flushOutput)
void
setHtmlFooter(String htmlFooter)
void
setHtmlHeader(String htmlHeader)
-
Methods inherited from class net.sf.jasperreports.export.SimpleCommonExportConfiguration
isOverrideHints, setOverrideHints
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.jasperreports.export.CommonExportConfiguration
isOverrideHints
-
-
-
-
Method Detail
-
getHtmlHeader
public String getHtmlHeader()
Description copied from interface:HtmlExporterConfiguration
Returns a string representing HTML code that will be inserted in front of the generated report. The JasperReports engine places a piece of HTML code at the top of the page but users can define their own headers and stylesheet links.- Specified by:
getHtmlHeader
in interfaceHtmlExporterConfiguration
-
setHtmlHeader
public void setHtmlHeader(String htmlHeader)
-
getBetweenPagesHtml
public String getBetweenPagesHtml()
Description copied from interface:HtmlExporterConfiguration
Returns a string representing HTML code that will be inserted between pages of the generated report. By default, JasperReports separates pages by two empty lines, but this behavior can be overridden by this parameter.- Specified by:
getBetweenPagesHtml
in interfaceHtmlExporterConfiguration
-
setBetweenPagesHtml
public void setBetweenPagesHtml(String betweenPagesHtml)
-
getHtmlFooter
public String getHtmlFooter()
Description copied from interface:HtmlExporterConfiguration
Returns a string representing HTML code that will be inserted after the generated report. By default, JasperReports closes the usual HTML tags that were opened inHtmlExporterConfiguration.getHtmlHeader()
. If a custom HTML header was provided usingHtmlExporterConfiguration.getHtmlHeader()
, it is recommended that a value for this setting is provided too, in order to ensure proper construction of HTML page.- Specified by:
getHtmlFooter
in interfaceHtmlExporterConfiguration
-
setHtmlFooter
public void setHtmlFooter(String htmlFooter)
-
isFlushOutput
public Boolean isFlushOutput()
Description copied from interface:HtmlExporterConfiguration
A flag that determines whether the HTML exporter should flush the output stream after writing the HTML content to it.- Specified by:
isFlushOutput
in interfaceHtmlExporterConfiguration
- See Also:
HtmlExporterConfiguration.PROPERTY_FLUSH_OUTPUT
-
setFlushOutput
public void setFlushOutput(Boolean flushOutput)
-
-