net.sf.jasperreports.engine.export.ooxml
public class JRXlsxExporter extends JRXlsAbstractExporter
Modifier and Type | Class and Description |
---|---|
protected class |
JRXlsxExporter.ExporterContext |
JRXlsAbstractExporter.TextAlignHolder
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
currentSheetName, defaultFont, fontMap, isAutoDetectCellType, isCollapseRowSpan, isDetectCellType, isFontSizeFixEnabled, isIgnoreCellBackground, isIgnoreCellBorder, isIgnoreGraphics, isIgnorePageMargins, isImageBorderFixEnabled, isOnePagePerSheet, isRemoveEmptySpaceBetweenColumns, isRemoveEmptySpaceBetweenRows, isWhitePageBackground, loadedFonts, maxRowsPerSheet, pageIndex, reportIndex, sheetIndex, sheetNames, sheetNamesMap, XLS_EXPORTER_PROPERTIES_PREFIX
classLoader, classLoaderSet, dateFormatCache, endPageIndex, fileResolver, fileResolverSet, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_CELL_FORMULA, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex, urlHandlerFactory, urlHandlerFactorySet
Constructor and Description |
---|
JRXlsxExporter() |
Modifier and Type | Method and Description |
---|---|
protected void |
addBlankCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
addOccupiedCell(OccupiedGridCell occupiedGridCell,
int colIndex,
int rowIndex) |
protected void |
closeSheet() |
protected void |
closeWorkbook(java.io.OutputStream os) |
protected void |
createSheet(java.lang.String name) |
protected void |
exportFrame(JRPrintFrame frame,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
exportGenericElement(JRGenericPrintElement element,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
int emptyCols) |
protected void |
exportImage(JRPrintImage image,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
int emptyCols) |
protected void |
exportLine(JRPrintLine line,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
exportRectangle(JRPrintGraphicElement rectangle,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
exportStyledText(JRStyle style,
JRStyledText styledText,
java.util.Locale locale) |
void |
exportText(JRPrintText text,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected JRPrintElementIndex |
getElementIndex(JRExporterGridCell gridCell) |
protected java.lang.String |
getExporterKey() |
protected java.lang.String |
getExporterPropertiesPrefix() |
protected java.lang.String |
getHyperlinkTarget(JRPrintHyperlink link) |
protected java.lang.String |
getHyperlinkURL(JRPrintHyperlink link) |
static JRPrintImage |
getImage(java.util.List jasperPrintList,
JRPrintElementIndex imageIndex) |
static JRPrintImage |
getImage(java.util.List jasperPrintList,
java.lang.String imageName) |
protected java.lang.String |
getImagePath(JRRenderable renderer,
boolean isLazy,
JRExporterGridCell gridCell) |
protected ExporterNature |
getNature() |
static JRPrintElementIndex |
getPrintElementIndex(java.lang.String imageName)
protected void writeImageMap(String imageMapName, JRPrintHyperlink mainHyperlink, List imageMapAreas) throws IOException
{
writer.write("\n");
}
protected void writeImageAreaCoordinates(JRPrintImageArea area) throws IOException
{
int[] coords = area.getCoordinates();
if (coords != null && coords.length > 0)
{
StringBuffer coordsEnum = new StringBuffer(coords.length * 4);
coordsEnum.append(coords[0]);
for (int i = 1; i < coords.length; i++)
{
coordsEnum.append(',');
coordsEnum.append(coords[i]);
}
writer.write(" coords=\"" + coordsEnum + "\"");
}
}
protected void writeImageAreaHyperlink(JRPrintHyperlink hyperlink) throws IOException
{
String href = getHyperlinkURL(hyperlink);
if (href == null)
{
writer.write(" nohref=\"nohref\"");
}
else
{
writer.write(" href=\"" + href + "\"");
String target = getHyperlinkTarget(hyperlink);
if (target != null)
{
writer.write(" target=\"");
writer.write(target);
writer.write("\"");
}
}
if (hyperlink.getHyperlinkTooltip() != null)
{
writer.write(" title=\"");
writer.write(JRStringUtil.xmlEncode(hyperlink.getHyperlinkTooltip()));
writer.write("\"");
}
}
/**
|
protected void |
openWorkbook(java.io.OutputStream os) |
protected void |
removeColumn(int col) |
protected void |
restoreBackcolor() |
protected void |
setBackcolor(java.awt.Color color) |
protected void |
setBackground() |
protected void |
setCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
setColumnWidth(int col,
int width) |
protected void |
setParameters() |
protected void |
setRowHeight(int rowIndex,
int rowHeight) |
calculateHeightForDinAN, calculateHeightForDinBN, calculateHeightForDinCN, calculateWidthForDinAN, calculateWidthForDinBN, calculateWidthForDinCN, exportPage, exportReport, exportReportToStream, getDefaultFont, getImageBorderCorrection, getStyledText, getTextAlignHolder, removeEmptyColumns, setColumnWidths
createFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getStringArrayParameter, getStringParameter, getStringParameterOrDefault, getStyledText, getTextFormatFactoryClass, getTextLocale, getTextTimeZone, getTextValue, getTextValueString, reset, resetClassLoader, resetExportContext, restoreElementOffsets, setClassLoader, setExportContext, setFrameElementsOffset, setHyperlinkProducerFactory, setInput, setJasperPrint, setOffset, setOffset, setOutput, setPageRange, setParameter, setParameters
public static final java.lang.String XLSX_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String)
.protected static final java.lang.String XLSX_EXPORTER_PROPERTIES_PREFIX
protected static final java.lang.String JR_PAGE_ANCHOR_PREFIX
public static final java.lang.String IMAGE_NAME_PREFIX
protected static final int IMAGE_NAME_PREFIX_LEGTH
protected XlsxZip xlsxZip
protected XlsxWorkbookHelper wbHelper
protected XlsxRelsHelper relsHelper
protected XlsxContentTypesHelper ctHelper
protected XlsxSheetHelper sheetHelper
protected XlsxSheetRelsHelper sheetRelsHelper
protected XlsxDrawingHelper drawingHelper
protected XlsxDrawingRelsHelper drawingRelsHelper
protected XlsxStyleHelper styleHelper
protected XlsxCellHelper cellHelper
protected JRExportProgressMonitor progressMonitor
protected java.util.Map rendererToImagePathMap
protected java.util.Map imageMaps
protected java.util.List imagesToProcess
protected int tableIndex
protected boolean startPage
protected boolean isWrapBreakWord
protected java.util.LinkedList backcolorStack
protected java.awt.Color backcolor
protected ExporterNature nature
protected void setParameters()
setParameters
in class JRXlsAbstractExporter
public static JRPrintImage getImage(java.util.List jasperPrintList, java.lang.String imageName)
public static JRPrintImage getImage(java.util.List jasperPrintList, JRPrintElementIndex imageIndex)
protected void exportStyledText(JRStyle style, JRStyledText styledText, java.util.Locale locale)
protected java.lang.String getImagePath(JRRenderable renderer, boolean isLazy, JRExporterGridCell gridCell)
protected JRPrintElementIndex getElementIndex(JRExporterGridCell gridCell)
public static JRPrintElementIndex getPrintElementIndex(java.lang.String imageName)
protected void setBackcolor(java.awt.Color color)
protected void restoreBackcolor()
protected java.lang.String getHyperlinkTarget(JRPrintHyperlink link)
protected java.lang.String getHyperlinkURL(JRPrintHyperlink link)
protected java.lang.String getExporterPropertiesPrefix()
protected void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
addBlankCell
in class JRXlsAbstractExporter
JRException
protected void closeWorkbook(java.io.OutputStream os) throws JRException
closeWorkbook
in class JRXlsAbstractExporter
JRException
protected void createSheet(java.lang.String name)
createSheet
in class JRXlsAbstractExporter
protected void closeSheet()
protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportFrame
in class JRXlsAbstractExporter
JRException
protected void exportImage(JRPrintImage image, JRExporterGridCell gridCell, int colIndex, int rowIndex, int emptyCols) throws JRException
exportImage
in class JRXlsAbstractExporter
JRException
protected void exportLine(JRPrintLine line, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportLine
in class JRXlsAbstractExporter
JRException
protected void exportRectangle(JRPrintGraphicElement rectangle, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportRectangle
in class JRXlsAbstractExporter
JRException
public void exportText(JRPrintText text, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportText
in class JRXlsAbstractExporter
JRException
protected void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex, int emptyCols) throws JRException
exportGenericElement
in class JRXlsAbstractExporter
JRException
protected ExporterNature getNature()
getNature
in class JRXlsAbstractExporter
protected void openWorkbook(java.io.OutputStream os) throws JRException
openWorkbook
in class JRXlsAbstractExporter
JRException
protected void removeColumn(int col)
removeColumn
in class JRXlsAbstractExporter
protected void setBackground()
setBackground
in class JRXlsAbstractExporter
protected void setCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
setCell
in class JRXlsAbstractExporter
protected void addOccupiedCell(OccupiedGridCell occupiedGridCell, int colIndex, int rowIndex)
addOccupiedCell
in class JRXlsAbstractExporter
protected void setColumnWidth(int col, int width)
setColumnWidth
in class JRXlsAbstractExporter
protected void setRowHeight(int rowIndex, int rowHeight) throws JRException
setRowHeight
in class JRXlsAbstractExporter
JRException
protected java.lang.String getExporterKey()
getExporterKey
in class JRAbstractExporter
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com