Package net.sf.jasperreports.export
Class SimpleHtmlReportConfiguration
- java.lang.Object
-
- net.sf.jasperreports.export.SimpleCommonExportConfiguration
-
- net.sf.jasperreports.export.SimpleReportExportConfiguration
-
- net.sf.jasperreports.export.SimpleHtmlReportConfiguration
-
- All Implemented Interfaces:
CommonExportConfiguration,HtmlReportConfiguration,ReportExportConfiguration
public class SimpleHtmlReportConfiguration extends SimpleReportExportConfiguration implements HtmlReportConfiguration
- 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.HtmlReportConfiguration
PROPERTY_ACCESSIBLE, PROPERTY_BORDER_COLLAPSE, PROPERTY_CONVERT_SVG_TO_IMAGE, PROPERTY_EMBED_IMAGE, PROPERTY_EMBEDDED_SVG_USE_FONTS, PROPERTY_FORCE_HTML_EMBED_IMAGE, PROPERTY_IGNORE_HYPERLINK, PROPERTY_INCLUDE_ELEMENT_UUID, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, PROPERTY_SIZE_UNIT, PROPERTY_USE_BACKGROUND_IMAGE_TO_ALIGN, PROPERTY_WHITE_PAGE_BACKGROUND, PROPERTY_WRAP_BREAK_WORD
-
Fields inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
PROPERTY_IGNORE_PAGE_MARGINS
-
-
Constructor Summary
Constructors Constructor Description SimpleHtmlReportConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HtmlBorderCollapseEnumgetBorderCollapseValue()Provides the value for theborder-collapseCSS property to be applied to the table generated for the report.HtmlSizeUnitEnumgetSizeUnit()Returns a String value specifying the unit to use when measuring lengths or font size.FloatgetZoomRatio()The zoom ratio used for the export.BooleanisAccessibleHtml()Configuration setting that determines the exporter to produce accessible HTML.BooleanisConvertSvgToImage()BooleanisEmbeddedSvgUseFonts()BooleanisEmbedImage()BooleanisIgnoreHyperlink()BooleanisIgnorePageMargins()Indicates whether page margins should be ignored when the report is exported using a grid-based exporterBooleanisIncludeElementUUID()Determines whether design element UUIDs are included in the HTML output asdata-eluuidattributes oftdelements.BooleanisRemoveEmptySpaceBetweenRows()Returns a boolean value specifying whether the blank lines, that sometimes appear between rows, should be deleted.BooleanisUseBackgroundImageToAlign()BooleanisWhitePageBackground()Returns a boolean value specifying whether the report background should be white.BooleanisWrapBreakWord()Returns a boolean value specifying whether the export engine should use force wrapping by breaking words (CSSword-wrap: break-word).voidsetAccessibleHtml(Boolean accessibleHtml)voidsetBorderCollapse(HtmlBorderCollapseEnum borderCollapse)voidsetConvertSvgToImage(Boolean isConvertSvgToImage)voidsetEmbeddedSvgUseFonts(Boolean isEmbeddedSvgUseFonts)voidsetEmbedImage(Boolean isEmbedImage)voidsetIgnoreHyperlink(Boolean isIgnoreHyperlink)voidsetIgnorePageMargins(Boolean isIgnorePageMargins)voidsetIncludeElementUUID(Boolean includeElementUUID)voidsetRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows)voidsetSizeUnit(HtmlSizeUnitEnum sizeUnit)voidsetUseBackgroundImageToAlign(Boolean isUseBackgroundImageToAlign)voidsetWhitePageBackground(Boolean isWhitePageBackground)voidsetWrapBreakWord(Boolean isWrapBreakWord)voidsetZoomRatio(Float zoomRatio)-
Methods inherited from class net.sf.jasperreports.export.SimpleReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndex
-
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
-
Methods inherited from interface net.sf.jasperreports.export.ReportExportConfiguration
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex
-
-
-
-
Method Detail
-
isRemoveEmptySpaceBetweenRows
public Boolean isRemoveEmptySpaceBetweenRows()
Description copied from interface:HtmlReportConfigurationReturns a boolean value specifying whether the blank lines, that sometimes appear between rows, should be deleted. Sometimes page break occurs before the entire page is filled with data (i.e. having a group with the isStartNewPage attribute set to true). All the remaining empty space could be removed by setting this parameter to true.- Specified by:
isRemoveEmptySpaceBetweenRowsin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
-
setRemoveEmptySpaceBetweenRows
public void setRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows)
-
isWhitePageBackground
public Boolean isWhitePageBackground()
Description copied from interface:HtmlReportConfigurationReturns a boolean value specifying whether the report background should be white. If this parameter is not set, the default background will appear, depending on the selected CSS styles.- Specified by:
isWhitePageBackgroundin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_WHITE_PAGE_BACKGROUND
-
setWhitePageBackground
public void setWhitePageBackground(Boolean isWhitePageBackground)
-
isWrapBreakWord
public Boolean isWrapBreakWord()
Description copied from interface:HtmlReportConfigurationReturns a boolean value specifying whether the export engine should use force wrapping by breaking words (CSSword-wrap: break-word).Note that this CSS property is not currently supported by all browsers. An alternative approach for forcing word breaks in HTML is to save the line breaks at fill time via the
JRTextElement.PROPERTY_SAVE_LINE_BREAKSproperty.- Specified by:
isWrapBreakWordin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_WRAP_BREAK_WORD
-
setWrapBreakWord
public void setWrapBreakWord(Boolean isWrapBreakWord)
-
getSizeUnit
public HtmlSizeUnitEnum getSizeUnit()
Description copied from interface:HtmlReportConfigurationReturns a String value specifying the unit to use when measuring lengths or font size. This can be one of the supported size units from the CSS specifications like "px" for pixels or "pt" for points. The default value is "px", meaning that lengths and font sizes are specified in pixels.- Specified by:
getSizeUnitin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_SIZE_UNIT
-
setSizeUnit
public void setSizeUnit(HtmlSizeUnitEnum sizeUnit)
-
getBorderCollapseValue
public HtmlBorderCollapseEnum getBorderCollapseValue()
Description copied from interface:HtmlReportConfigurationProvides the value for theborder-collapseCSS property to be applied to the table generated for the report.- Specified by:
getBorderCollapseValuein interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_BORDER_COLLAPSE
-
setBorderCollapse
public void setBorderCollapse(HtmlBorderCollapseEnum borderCollapse)
-
isIgnorePageMargins
public Boolean isIgnorePageMargins()
Description copied from interface:HtmlReportConfigurationIndicates whether page margins should be ignored when the report is exported using a grid-based exporterIf set to
true, any page in the document will be exported without taking into account its margins.- Specified by:
isIgnorePageMarginsin interfaceHtmlReportConfiguration- See Also:
ReportExportConfiguration.PROPERTY_IGNORE_PAGE_MARGINS
-
setIgnorePageMargins
public void setIgnorePageMargins(Boolean isIgnorePageMargins)
-
isAccessibleHtml
public Boolean isAccessibleHtml()
Description copied from interface:HtmlReportConfigurationConfiguration setting that determines the exporter to produce accessible HTML.- Specified by:
isAccessibleHtmlin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_ACCESSIBLE
-
setAccessibleHtml
public void setAccessibleHtml(Boolean accessibleHtml)
-
getZoomRatio
public Float getZoomRatio()
Description copied from interface:HtmlReportConfigurationThe zoom ratio used for the export. The default value is 1.- Specified by:
getZoomRatioin interfaceHtmlReportConfiguration
-
setZoomRatio
public void setZoomRatio(Float zoomRatio)
-
isIgnoreHyperlink
public Boolean isIgnoreHyperlink()
- Specified by:
isIgnoreHyperlinkin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_IGNORE_HYPERLINK
-
setIgnoreHyperlink
public void setIgnoreHyperlink(Boolean isIgnoreHyperlink)
-
isEmbedImage
public Boolean isEmbedImage()
- Specified by:
isEmbedImagein interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_EMBED_IMAGE
-
setEmbedImage
public void setEmbedImage(Boolean isEmbedImage)
-
isEmbeddedSvgUseFonts
public Boolean isEmbeddedSvgUseFonts()
- Specified by:
isEmbeddedSvgUseFontsin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_EMBEDDED_SVG_USE_FONTS
-
setEmbeddedSvgUseFonts
public void setEmbeddedSvgUseFonts(Boolean isEmbeddedSvgUseFonts)
-
isConvertSvgToImage
public Boolean isConvertSvgToImage()
- Specified by:
isConvertSvgToImagein interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_CONVERT_SVG_TO_IMAGE
-
setConvertSvgToImage
public void setConvertSvgToImage(Boolean isConvertSvgToImage)
-
isUseBackgroundImageToAlign
public Boolean isUseBackgroundImageToAlign()
- Specified by:
isUseBackgroundImageToAlignin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_USE_BACKGROUND_IMAGE_TO_ALIGN
-
setUseBackgroundImageToAlign
public void setUseBackgroundImageToAlign(Boolean isUseBackgroundImageToAlign)
-
isIncludeElementUUID
public Boolean isIncludeElementUUID()
Description copied from interface:HtmlReportConfigurationDetermines whether design element UUIDs are included in the HTML output asdata-eluuidattributes oftdelements.- Specified by:
isIncludeElementUUIDin interfaceHtmlReportConfiguration- See Also:
HtmlReportConfiguration.PROPERTY_INCLUDE_ELEMENT_UUID,JRIdentifiable.getUUID()
-
setIncludeElementUUID
public void setIncludeElementUUID(Boolean includeElementUUID)
-
-