public class JRHtmlExporter extends AbstractHtmlExporter
| Modifier and Type | Class and Description |
|---|---|
protected class |
JRHtmlExporter.ExporterContext |
protected static interface |
JRHtmlExporter.StringProvider |
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolverfontHandler, imageHandler, resourceHandlerallSelector, dateFormatCache, endPageIndex, filter, fontMap, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, jasperReportsContext, noBackcolorSelector, noneSelector, numberFormatCache, parameters, propertiesUtil, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, styledTextUtil| Constructor and Description |
|---|
JRHtmlExporter() |
JRHtmlExporter(JasperReportsContext jasperReportsContext) |
getFontHandler, getImageHandler, getResourceHandler, setFontHandler, setImageHandler, setResourceHandlercreateFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCurrentJasperPrint, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getJasperReportsContext, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getPropertiesUtil, getReportContext, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFontMap, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setJasperReportsContext, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters, setReportContextpublic static final String PROPERTY_IGNORE_HYPERLINK
public static final String HTML_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).public static final String PROPERTY_HTML_CLASS
public static final String PROPERTY_HTML_ID
public static final String PROPERTY_ACCESSIBLE
protected static final String JR_PAGE_ANCHOR_PREFIX
protected static final float DEFAULT_ZOOM
protected static final String CSS_TEXT_ALIGN_LEFT
protected static final String CSS_TEXT_ALIGN_RIGHT
protected static final String CSS_TEXT_ALIGN_CENTER
protected static final String CSS_TEXT_ALIGN_JUSTIFY
protected static final String HTML_VERTICAL_ALIGN_TOP
protected static final String HTML_VERTICAL_ALIGN_MIDDLE
protected static final String HTML_VERTICAL_ALIGN_BOTTOM
public static final String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
protected Writer writer
protected JRExportProgressMonitor progressMonitor
protected int reportIndex
protected int pageIndex
protected boolean isRemoveEmptySpace
protected boolean isWhitePageBackground
protected String encoding
protected String sizeUnit
protected float zoom
protected boolean isUsingImagesToAlign
protected boolean isWrapBreakWord
protected boolean isIgnorePageMargins
protected boolean accessibleHtml
protected boolean flushOutput
protected String htmlHeader
protected String betweenPagesHtml
protected String htmlFooter
protected JRHtmlExporter.StringProvider emptyCellStringProvider
protected JRHyperlinkTargetProducerFactory targetProducerFactory
protected boolean hyperlinkStarted
protected int thDepth
protected ExporterNature nature
protected JRHtmlExporterContext exporterContext
public JRHtmlExporter()
JRHtmlExporter(JasperReportsContext)public JRHtmlExporter(JasperReportsContext jasperReportsContext)
public void exportReport()
throws JRException
JRExporterexportReport in interface JRExporterexportReport in class JRAbstractExporterJRExceptionpublic static JRPrintImage getImage(List<JasperPrint> jasperPrintList, String imageName)
public static JRPrintImage getImage(List<JasperPrint> jasperPrintList, JRPrintElementIndex imageIndex)
protected void exportReportToWriter()
throws JRException,
IOException
JRExceptionIOExceptionprotected void exportPage(JRPrintPage page) throws JRException, IOException
JRExceptionIOExceptionprotected void exportGrid(JRGridLayout gridLayout, boolean whitePageBackground) throws IOException, JRException
IOExceptionJRExceptionprotected void writeEmptyCell(JRExporterGridCell cell, int rowHeight) throws IOException
IOExceptionprotected void exportLine(JRPrintLine line, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected void writeCellStart(JRExporterGridCell gridCell) throws IOException
IOExceptionprotected void writeCellEnd(JRExporterGridCell gridCell) throws IOException
IOExceptionprotected String getCellTag(JRExporterGridCell gridCell)
protected void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected void exportStyledText(JRPrintText printText, JRStyledText styledText, String tooltip) throws IOException
IOExceptionprotected void exportStyledTextRun(Map<AttributedCharacterIterator.Attribute,Object> attributes, String text, String tooltip, Locale locale, LineSpacingEnum lineSpacing, Float lineSpacingSize, float lineSpacingFactor, Color backcolor) throws IOException
IOExceptionprotected void exportText(JRPrintText text, JRExporterGridCell gridCell) throws IOException
IOExceptionprotected boolean startHyperlink(JRPrintHyperlink link) throws IOException
IOExceptionprotected String getHyperlinkTarget(JRPrintHyperlink link)
protected String getHyperlinkURL(JRPrintHyperlink link)
protected void endHyperlink()
throws IOException
IOExceptionprotected boolean appendBorderStyle(JRLineBox box, StringBuffer styleBuffer)
protected boolean appendPaddingStyle(JRLineBox box, StringBuffer styleBuffer)
protected Color appendBackcolorStyle(JRExporterGridCell gridCell, StringBuffer styleBuffer)
protected void exportImage(JRPrintImage image, JRExporterGridCell gridCell) throws JRException, IOException
JRExceptionIOExceptionprotected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell)
protected void writeImageMap(String imageMapName, JRPrintImage image, List<JRPrintImageAreaHyperlink> imageMapAreas) throws IOException
IOExceptionprotected void writeImageAreaCoordinates(int[] coords)
throws IOException
IOExceptionprotected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException
IOExceptionprotected void loadPxImage()
throws JRException
JRExceptionpublic static String getImageName(JRPrintElementIndex printElementIndex)
public static JRPrintElementIndex getPrintElementIndex(String imageName)
protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell) throws IOException, JRException
IOExceptionJRExceptionprotected void setBackcolor(Color color)
protected void restoreBackcolor()
protected void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell gridCell, int rowHeight) throws IOException
IOExceptionpublic Map<JRExporterParameter,Object> getExportParameters()
public String getExportPropertiesPrefix()
public String getExporterKey()
getExporterKey in class JRAbstractExporterpublic JasperPrint getExportedReport()
public String toSizeUnit(int size)
public int toZoom(int size)
protected JRStyledText getStyledText(JRPrintText textElement, boolean setBackcolor)
getStyledText in class JRAbstractExporterCopyright © 2014. All rights reserved.