net.sf.jasperreports.engine.export
public class JRXlsExporter extends JRXlsAbstractExporter
Modifier and Type | Class and Description |
---|---|
protected static class |
JRXlsExporter.BoxStyle |
protected class |
JRXlsExporter.ExporterContext |
protected static class |
JRXlsExporter.StyleInfo |
JRXlsAbstractExporter.TextAlignHolder
JRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver
Modifier and Type | Field and Description |
---|---|
protected java.util.Map |
anchorLinks |
protected java.util.Map |
anchorNames |
protected short |
backgroundMode |
protected short |
blackIndex |
protected HSSFCell |
cell |
protected CreationHelper |
createHelper |
protected HSSFDataFormat |
dataFormat |
protected HSSFCellStyle |
emptyCellStyle |
protected JRXlsExporterContext |
exporterContext |
protected java.util.Map |
formatPatternsMap |
protected java.util.Map |
loadedCellStyles |
protected ExporterNature |
nature |
protected java.util.Map |
pageLinks |
protected java.lang.String |
password |
protected HSSFPatriarch |
patriarch |
protected HSSFRow |
row |
protected HSSFSheet |
sheet |
protected short |
whiteIndex |
protected HSSFWorkbook |
workbook |
static java.lang.String |
XLS_EXPORTER_KEY
The exporter key, as used in
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String) . |
currentSheetName, defaultFont, fontMap, isAutoDetectCellType, isCollapseRowSpan, isDetectCellType, isFontSizeFixEnabled, isIgnoreCellBackground, isIgnoreCellBorder, isIgnoreGraphics, isIgnorePageMargins, isImageBorderFixEnabled, isOnePagePerSheet, isRemoveEmptySpaceBetweenColumns, isRemoveEmptySpaceBetweenRows, isWhitePageBackground, loadedFonts, maxRowsPerSheet, pageIndex, progressMonitor, 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 |
---|
JRXlsExporter() |
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 |
closeWorkbook(java.io.OutputStream os) |
protected void |
createMergeRegion(JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
HSSFCellStyle cellStyle) |
protected void |
createSheet(java.lang.String name) |
protected void |
createTextCell(JRPrintText textElement,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
JRStyledText styledText,
JRXlsExporter.StyleInfo baseStyle,
short forecolor) |
protected void |
endCreateCell(HSSFCellStyle cellStyle) |
protected void |
exportFrame(JRPrintFrame frame,
JRExporterGridCell gridCell,
int x,
int y) |
protected void |
exportGenericElement(JRGenericPrintElement element,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
int emptyCols) |
protected void |
exportImage(JRPrintImage element,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
int emptyCols) |
protected void |
exportLine(JRPrintLine line,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
exportRectangle(JRPrintGraphicElement element,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
void |
exportText(JRPrintText textElement,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected static short |
getBorderStyle(JRPen pen) |
protected java.lang.String |
getExporterKey() |
protected HSSFCellStyle |
getLoadedCellStyle(JRXlsExporter.StyleInfo style) |
protected HSSFCellStyle |
getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
JRExporterGridCell gridCell) |
protected HSSFCellStyle |
getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
JRXlsExporter.BoxStyle box) |
protected HSSFFont |
getLoadedFont(JRFont font,
short forecolor,
java.util.Map attributes,
java.util.Locale locale) |
protected ExporterNature |
getNature() |
protected static HSSFColor |
getNearestColor(java.awt.Color awtColor) |
protected HSSFRichTextString |
getRichTextString(JRStyledText styledText,
short forecolor,
JRFont defaultFont,
java.util.Locale locale) |
protected HSSFCellStyle |
initCreateCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
JRXlsExporter.StyleInfo baseStyle) |
protected void |
openWorkbook(java.io.OutputStream os) |
protected void |
removeColumn(int colIndex) |
protected void |
setBackground() |
protected void |
setCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
setColumnWidth(int col,
int width) |
protected void |
setHyperlinkCell(JRPrintHyperlink hyperlink) |
protected void |
setParameters() |
protected void |
setRichTextStringCellValue(JRStyledText styledText,
short forecolor,
JRFont defaultFont,
java.util.Locale locale) |
protected void |
setRowHeight(int rowIndex,
int lastRowHeight) |
protected void |
setStringCellValue(java.lang.String textStr) |
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 XLS_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String)
.protected java.util.Map loadedCellStyles
protected java.util.Map anchorLinks
protected java.util.Map pageLinks
protected java.util.Map anchorNames
protected HSSFWorkbook workbook
protected HSSFSheet sheet
protected HSSFRow row
protected HSSFCell cell
protected HSSFCellStyle emptyCellStyle
protected CreationHelper createHelper
protected short whiteIndex
protected short blackIndex
protected short backgroundMode
protected HSSFDataFormat dataFormat
protected java.util.Map formatPatternsMap
protected ExporterNature nature
protected HSSFPatriarch patriarch
protected java.lang.String password
protected JRXlsExporterContext exporterContext
protected void setParameters()
setParameters
in class JRXlsAbstractExporter
protected void setBackground()
setBackground
in class JRXlsAbstractExporter
protected void openWorkbook(java.io.OutputStream os)
openWorkbook
in class JRXlsAbstractExporter
protected void createSheet(java.lang.String name)
createSheet
in class JRXlsAbstractExporter
protected void closeWorkbook(java.io.OutputStream os) throws JRException
closeWorkbook
in class JRXlsAbstractExporter
JRException
protected void setColumnWidth(int col, int width)
setColumnWidth
in class JRXlsAbstractExporter
protected void setRowHeight(int rowIndex, int lastRowHeight)
setRowHeight
in class JRXlsAbstractExporter
protected void setCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
setCell
in class JRXlsAbstractExporter
protected void removeColumn(int colIndex)
removeColumn
in class JRXlsAbstractExporter
protected void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
addBlankCell
in class JRXlsAbstractExporter
protected void addOccupiedCell(OccupiedGridCell occupiedGridCell, int colIndex, int rowIndex)
addOccupiedCell
in class JRXlsAbstractExporter
protected void exportLine(JRPrintLine line, JRExporterGridCell gridCell, int colIndex, int rowIndex)
exportLine
in class JRXlsAbstractExporter
protected void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex)
exportRectangle
in class JRXlsAbstractExporter
public void exportText(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportText
in class JRXlsAbstractExporter
JRException
protected void createTextCell(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex, JRStyledText styledText, JRXlsExporter.StyleInfo baseStyle, short forecolor) throws JRException
JRException
protected HSSFCellStyle initCreateCell(JRExporterGridCell gridCell, int colIndex, int rowIndex, JRXlsExporter.StyleInfo baseStyle)
protected void endCreateCell(HSSFCellStyle cellStyle)
protected final void setStringCellValue(java.lang.String textStr)
protected final void setRichTextStringCellValue(JRStyledText styledText, short forecolor, JRFont defaultFont, java.util.Locale locale)
protected HSSFRichTextString getRichTextString(JRStyledText styledText, short forecolor, JRFont defaultFont, java.util.Locale locale)
protected void createMergeRegion(JRExporterGridCell gridCell, int colIndex, int rowIndex, HSSFCellStyle cellStyle)
protected static HSSFColor getNearestColor(java.awt.Color awtColor)
protected HSSFFont getLoadedFont(JRFont font, short forecolor, java.util.Map attributes, java.util.Locale locale)
protected HSSFCellStyle getLoadedCellStyle(JRXlsExporter.StyleInfo style)
protected HSSFCellStyle getLoadedCellStyle(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRExporterGridCell gridCell)
protected HSSFCellStyle getLoadedCellStyle(short mode, short backcolor, short horizontalAlignment, short verticalAlignment, short rotation, HSSFFont font, JRXlsExporter.BoxStyle box)
protected static short getBorderStyle(JRPen pen)
protected void exportImage(JRPrintImage element, JRExporterGridCell gridCell, int colIndex, int rowIndex, int emptyCols) throws JRException
exportImage
in class JRXlsAbstractExporter
JRException
protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell, int x, int y)
exportFrame
in class JRXlsAbstractExporter
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 setHyperlinkCell(JRPrintHyperlink hyperlink)
protected java.lang.String getExporterKey()
getExporterKey
in class JRAbstractExporter
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com