HtmlExporter
.public class JRHtmlExporter extends AbstractHtmlExporter<JRHtmlReportConfiguration,JRHtmlExporterConfiguration>
Modifier and Type | Class and Description |
---|---|
protected class |
JRHtmlExporter.ExporterContext
Deprecated.
|
protected static interface |
JRHtmlExporter.StringProvider
Deprecated.
|
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.PageRange
CSS_TEXT_ALIGN_CENTER, CSS_TEXT_ALIGN_JUSTIFY, CSS_TEXT_ALIGN_LEFT, CSS_TEXT_ALIGN_RIGHT, DEFAULT_ZOOM, fontHandler, fontsToProcess, HTML_VERTICAL_ALIGN_BOTTOM, HTML_VERTICAL_ALIGN_MIDDLE, HTML_VERTICAL_ALIGN_TOP, IMAGE_NAME_PREFIX, IMAGE_NAME_PREFIX_LEGTH, imageHandler, JR_BOOKMARK_ANCHOR_PREFIX, JR_PAGE_ANCHOR_PREFIX, resourceHandler
allSelector, crtCompositeConfiguration, crtCompositeItemConfiguration, crtItem, dateFormatCache, EXCEPTION_MESSAGE_KEY_END_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_INVALID_IMAGE_NAME, EXCEPTION_MESSAGE_KEY_INVALID_ZOOM_RATIO, EXCEPTION_MESSAGE_KEY_MIXED_CALLS_NOT_ALLOWED, EXCEPTION_MESSAGE_KEY_OUTPUT_WRITER_ERROR, EXCEPTION_MESSAGE_KEY_PAGE_INDEX_OUT_OF_RANGE, EXCEPTION_MESSAGE_KEY_START_PAGE_INDEX_OUT_OF_RANGE, exporterConfiguration, exporterContext, exporterInput, exporterOutput, filter, fontUtil, itemConfiguration, jasperPrint, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, rendererUtil, styledTextUtil, textValueClasses
Constructor and Description |
---|
JRHtmlExporter()
Deprecated.
|
JRHtmlExporter(JasperReportsContext jasperReportsContext)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
protected Color |
appendBackcolorStyle(JRExporterGridCell gridCell,
StringBuilder styleBuilder)
Deprecated.
|
protected boolean |
appendBorderStyle(JRLineBox box,
StringBuilder styleBuilder)
Deprecated.
|
protected boolean |
appendPaddingStyle(JRLineBox box,
StringBuilder styleBuilder)
Deprecated.
|
protected void |
endHyperlink()
Deprecated.
|
protected void |
ensureOutput()
Deprecated.
|
protected void |
exportFrame(JRPrintFrame frame,
JRExporterGridCell gridCell)
Deprecated.
|
protected void |
exportGenericElement(JRGenericPrintElement element,
JRExporterGridCell gridCell,
int rowHeight)
Deprecated.
|
protected void |
exportGrid(JRGridLayout gridLayout,
boolean whitePageBackground)
Deprecated.
|
protected void |
exportImage(JRPrintImage image,
JRExporterGridCell gridCell)
Deprecated.
|
protected void |
exportLine(JRPrintLine line,
JRExporterGridCell gridCell)
Deprecated.
|
protected void |
exportPage(JRPrintPage page)
Deprecated.
|
protected void |
exportRectangle(JRPrintGraphicElement element,
JRExporterGridCell gridCell)
Deprecated.
|
void |
exportReport()
Deprecated.
Performs the export.
|
protected void |
exportReportToWriter()
Deprecated.
|
protected void |
exportStyledText(JRPrintText printText,
JRStyledText styledText,
String tooltip)
Deprecated.
|
protected void |
exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes,
String text,
String tooltip,
Locale locale,
LineSpacingEnum lineSpacing,
Float lineSpacingSize,
float lineSpacingFactor,
Color backcolor)
Deprecated.
|
protected void |
exportText(JRPrintText text,
JRExporterGridCell gridCell)
Deprecated.
|
protected String |
getCellTag(JRExporterGridCell gridCell)
Deprecated.
|
protected Class<JRHtmlExporterConfiguration> |
getConfigurationInterface()
Deprecated.
|
protected JRPrintElementIndex |
getElementIndex(JRExporterGridCell gridCell)
Deprecated.
|
JasperPrint |
getExportedReport()
Deprecated.
|
String |
getExporterKey()
Deprecated.
|
String |
getExporterPropertiesPrefix()
Deprecated.
Returns the properties prefix for the current exporter.
|
Map<JRExporterParameter,Object> |
getExportParameters()
Deprecated.
|
protected String |
getHyperlinkTarget(JRPrintHyperlink link)
Deprecated.
|
protected String |
getHyperlinkURL(JRPrintHyperlink link)
Deprecated.
|
protected Class<JRHtmlReportConfiguration> |
getItemConfigurationInterface()
Deprecated.
|
protected void |
initExport()
Deprecated.
|
protected void |
initReport()
Deprecated.
|
protected void |
loadPxImage()
Deprecated.
|
protected void |
restoreBackcolor()
Deprecated.
|
protected void |
setBackcolor(Color color)
Deprecated.
|
protected void |
setJasperReportsContext(JasperReportsContext jasperReportsContext)
Deprecated.
|
protected boolean |
startHyperlink(JRPrintHyperlink link)
Deprecated.
|
String |
toSizeUnit(float size)
Deprecated.
|
String |
toSizeUnit(int size)
Deprecated.
Replaced by
toSizeUnit(float) . |
float |
toZoom(float size)
Deprecated.
|
int |
toZoom(int size)
Deprecated.
Replaced by
toZoom(float) . |
protected void |
writeCellEnd(JRExporterGridCell gridCell)
Deprecated.
|
protected void |
writeCellStart(JRExporterGridCell gridCell)
Deprecated.
|
protected void |
writeEmptyCell(JRExporterGridCell cell,
int rowHeight)
Deprecated.
|
protected void |
writeImageAreaCoordinates(int[] coords)
Deprecated.
|
protected void |
writeImageAreaHyperlink(JRPrintHyperlink hyperlink)
Deprecated.
|
protected void |
writeImageMap(String imageMapName,
JRPrintImage image,
List<JRPrintImageAreaHyperlink> imageMapAreas)
Deprecated.
|
addFontFamily, getFontFamily, getFontHandler, getImage, getImage, getImageHandler, getImageName, getImageName, getPrintElementIndex, getResourceHandler, getStyledText, handleFont, isEmbeddedSvgUseFonts, isEmbedImage, resolveFontFamily, setFontHandler, setImageHandler, setResourceHandler
createFilter, defaultParseNumber, ensureInput, ensureJasperReportsContext, getBooleanCellValue, getCurrentConfiguration, getCurrentItemConfiguration, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getExporterContext, getExporterInput, getExporterOutput, getHyperlinkProducer, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getPageRange, getParameter, getParameters, getPropertiesUtil, getRendererUtil, getReportContext, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, insideFrame, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setConfiguration, setConfiguration, setCurrentExporterInputItem, setExporterInput, setExporterOutput, setFrameElementsOffset, setJasperPrint, setOffset, setOffset, setParameter, setParameters, setReportContext
protected static final String HTML_EXPORTER_PROPERTIES_PREFIX
HtmlExporter.HTML_EXPORTER_PROPERTIES_PREFIX
.public static final String PROPERTY_IGNORE_HYPERLINK
HtmlReportConfiguration.PROPERTY_IGNORE_HYPERLINK
.public static final String HTML_EXPORTER_KEY
HtmlExporter.HTML_EXPORTER_KEY
.public static final String PROPERTY_HTML_CLASS
HtmlExporter.PROPERTY_HTML_CLASS
.public static final String PROPERTY_HTML_ID
HtmlExporter.PROPERTY_HTML_ID
.public static final String PROPERTY_ACCESSIBLE
HtmlReportConfiguration.PROPERTY_ACCESSIBLE
.protected Writer writer
protected RenderersCache renderersCache
protected int reportIndex
protected int pageIndex
protected JRHtmlExporter.StringProvider emptyCellStringProvider
protected JRHyperlinkTargetProducerFactory targetProducerFactory
protected boolean hyperlinkStarted
protected int thDepth
protected ExporterNature nature
public JRHtmlExporter()
JRHtmlExporter(JasperReportsContext)
public JRHtmlExporter(JasperReportsContext jasperReportsContext)
protected Class<JRHtmlExporterConfiguration> getConfigurationInterface()
protected Class<JRHtmlReportConfiguration> getItemConfigurationInterface()
protected void ensureOutput()
protected void setJasperReportsContext(JasperReportsContext jasperReportsContext)
public void exportReport() throws JRException
Exporter
exportReport
in interface Exporter<ExporterInput,JRHtmlReportConfiguration,JRHtmlExporterConfiguration,HtmlExporterOutput>
exportReport
in class JRAbstractExporter<JRHtmlReportConfiguration,JRHtmlExporterConfiguration,HtmlExporterOutput,JRHtmlExporterContext>
JRException
protected void initExport()
protected void initReport()
protected void exportReportToWriter() throws JRException, IOException
JRException
IOException
protected void exportPage(JRPrintPage page) throws JRException, IOException
JRException
IOException
protected void exportGrid(JRGridLayout gridLayout, boolean whitePageBackground) throws IOException, JRException
IOException
JRException
protected void writeEmptyCell(JRExporterGridCell cell, int rowHeight) throws IOException
IOException
protected void exportLine(JRPrintLine line, JRExporterGridCell gridCell) throws IOException
IOException
protected void writeCellStart(JRExporterGridCell gridCell) throws IOException
IOException
protected void writeCellEnd(JRExporterGridCell gridCell) throws IOException
IOException
protected String getCellTag(JRExporterGridCell gridCell)
protected void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell gridCell) throws IOException
IOException
protected void exportStyledText(JRPrintText printText, JRStyledText styledText, String tooltip) throws IOException
IOException
protected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, String tooltip, Locale locale, LineSpacingEnum lineSpacing, Float lineSpacingSize, float lineSpacingFactor, Color backcolor) throws IOException
IOException
protected void exportText(JRPrintText text, JRExporterGridCell gridCell) throws IOException
IOException
protected boolean startHyperlink(JRPrintHyperlink link) throws IOException
IOException
protected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink() throws IOException
IOException
protected boolean appendBorderStyle(JRLineBox box, StringBuilder styleBuilder)
protected boolean appendPaddingStyle(JRLineBox box, StringBuilder styleBuilder)
protected Color appendBackcolorStyle(JRExporterGridCell gridCell, StringBuilder styleBuilder)
protected void exportImage(JRPrintImage image, JRExporterGridCell gridCell) throws JRException, IOException
JRException
IOException
protected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell)
protected void writeImageMap(String imageMapName, JRPrintImage image, List<JRPrintImageAreaHyperlink> imageMapAreas) throws IOException
IOException
protected void writeImageAreaCoordinates(int[] coords) throws IOException
IOException
protected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException
IOException
protected void loadPxImage() throws JRException
JRException
protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell) throws IOException, JRException
IOException
JRException
protected void setBackcolor(Color color)
protected void restoreBackcolor()
protected void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell gridCell, int rowHeight) throws IOException
IOException
public Map<JRExporterParameter,Object> getExportParameters()
public String getExporterPropertiesPrefix()
JRAbstractExporter
getExporterPropertiesPrefix
in class JRAbstractExporter<JRHtmlReportConfiguration,JRHtmlExporterConfiguration,HtmlExporterOutput,JRHtmlExporterContext>
public String getExporterKey()
public JasperPrint getExportedReport()
public String toSizeUnit(float size)
public String toSizeUnit(int size)
toSizeUnit(float)
.public float toZoom(float size)
public int toZoom(int size)
toZoom(float)
.Copyright © 2016. All rights reserved.