public class SimpleHtmlReportConfiguration extends SimpleReportExportConfiguration implements HtmlReportConfiguration
PROPERTY_ACCESSIBLE, PROPERTY_BORDER_COLLAPSE, PROPERTY_EMBED_IMAGE, PROPERTY_EMBEDDED_SVG_USE_FONTS, PROPERTY_IGNORE_HYPERLINK, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, PROPERTY_SIZE_UNIT, PROPERTY_WHITE_PAGE_BACKGROUND, PROPERTY_WRAP_BREAK_WORD
PROPERTY_IGNORE_PAGE_MARGINS
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
Constructor and Description |
---|
SimpleHtmlReportConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getBorderCollapse()
Provides the value for the
border-collapse CSS property to be applied
to the table generated for the report. |
HtmlSizeUnitEnum |
getSizeUnit()
Returns a String value specifying the unit to use when measuring lengths or font size.
|
Float |
getZoomRatio()
The zoom ratio used for the export.
|
Boolean |
isAccessibleHtml()
Configuration setting that determines the exporter to produce accessible HTML.
|
Boolean |
isEmbeddedSvgUseFonts() |
Boolean |
isEmbedImage() |
Boolean |
isIgnoreHyperlink() |
Boolean |
isIgnorePageMargins()
Indicates whether page margins should be ignored when the report is exported using a grid-based exporter
|
Boolean |
isRemoveEmptySpaceBetweenRows()
Returns a boolean value specifying whether the blank lines, that sometimes appear between rows, should be deleted.
|
Boolean |
isWhitePageBackground()
Returns a boolean value specifying whether the report background should be white.
|
Boolean |
isWrapBreakWord()
Returns a boolean value specifying whether the export engine should use force wrapping by breaking words (CSS
word-wrap: break-word ). |
void |
setAccessibleHtml(Boolean accessibleHtml) |
void |
setBorderCollapse(String borderCollapse) |
void |
setEmbeddedSvgUseFonts(Boolean isEmbeddedSvgUseFonts) |
void |
setEmbedImage(Boolean isEmbedImage) |
void |
setIgnoreHyperlink(Boolean isIgnoreHyperlink) |
void |
setIgnorePageMargins(Boolean isIgnorePageMargins) |
void |
setRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows) |
void |
setSizeUnit(HtmlSizeUnitEnum sizeUnit) |
void |
setWhitePageBackground(Boolean isWhitePageBackground) |
void |
setWrapBreakWord(Boolean isWrapBreakWord) |
void |
setZoomRatio(Float zoomRatio) |
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndex
isOverrideHints, setOverrideHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex
isOverrideHints
public Boolean isRemoveEmptySpaceBetweenRows()
HtmlReportConfiguration
isRemoveEmptySpaceBetweenRows
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
public void setRemoveEmptySpaceBetweenRows(Boolean isRemoveEmptySpaceBetweenRows)
public Boolean isWhitePageBackground()
HtmlReportConfiguration
isWhitePageBackground
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_WHITE_PAGE_BACKGROUND
public void setWhitePageBackground(Boolean isWhitePageBackground)
public Boolean isWrapBreakWord()
HtmlReportConfiguration
word-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_BREAKS
property.
isWrapBreakWord
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_WRAP_BREAK_WORD
public void setWrapBreakWord(Boolean isWrapBreakWord)
public HtmlSizeUnitEnum getSizeUnit()
HtmlReportConfiguration
getSizeUnit
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_SIZE_UNIT
public void setSizeUnit(HtmlSizeUnitEnum sizeUnit)
public String getBorderCollapse()
HtmlReportConfiguration
border-collapse
CSS property to be applied
to the table generated for the report.getBorderCollapse
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_BORDER_COLLAPSE
public void setBorderCollapse(String borderCollapse)
public Boolean isIgnorePageMargins()
HtmlReportConfiguration
If set to true
, any page in the document will be exported without taking into account its margins.
isIgnorePageMargins
in interface HtmlReportConfiguration
ReportExportConfiguration.PROPERTY_IGNORE_PAGE_MARGINS
public void setIgnorePageMargins(Boolean isIgnorePageMargins)
public Boolean isAccessibleHtml()
HtmlReportConfiguration
isAccessibleHtml
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_ACCESSIBLE
public void setAccessibleHtml(Boolean accessibleHtml)
public Float getZoomRatio()
HtmlReportConfiguration
getZoomRatio
in interface HtmlReportConfiguration
public void setZoomRatio(Float zoomRatio)
public Boolean isIgnoreHyperlink()
isIgnoreHyperlink
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_IGNORE_HYPERLINK
public void setIgnoreHyperlink(Boolean isIgnoreHyperlink)
public Boolean isEmbedImage()
isEmbedImage
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_EMBED_IMAGE
public void setEmbedImage(Boolean isEmbedImage)
public Boolean isEmbeddedSvgUseFonts()
isEmbeddedSvgUseFonts
in interface HtmlReportConfiguration
HtmlReportConfiguration.PROPERTY_EMBEDDED_SVG_USE_FONTS
public void setEmbeddedSvgUseFonts(Boolean isEmbeddedSvgUseFonts)
Copyright © 2016. All rights reserved.