public class JRXlsExporter extends JRXlsAbstractExporter
| Modifier and Type | Class and Description |
|---|---|
protected class |
JRXlsExporter.ExporterContext |
JRXlsAbstractExporter.TextAlignHolderJRAbstractExporter.BaseExporterContext, JRAbstractExporter.ParameterOverriddenResolver, JRAbstractExporter.ParameterOverrideResolver, JRAbstractExporter.ParameterResolver| Modifier and Type | Field and Description |
|---|---|
protected java.util.Map<java.lang.String,java.util.List<Hyperlink>> |
anchorLinks |
protected java.util.Map<java.lang.String,HSSFName> |
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<net.sf.jasperreports.engine.export.StyleInfo,HSSFCellStyle> |
loadedCellStyles |
protected ExporterNature |
nature |
protected java.util.Map<java.lang.Integer,java.util.List<Hyperlink>> |
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). |
autoFilterEnd, autoFilterStart, cellHidden, cellLocked, columnWidthRatio, createCustomPalette, defaultFont, fontMap, formatPatternsMap, gridColumnFreezeIndex, gridRowFreezeIndex, isCollapseRowSpan, isDetectCellType, isFontSizeFixEnabled, isFreezeColumnEdge, isFreezeRowEdge, isIgnoreCellBackground, isIgnoreCellBorder, isIgnoreGraphics, isIgnorePageMargins, isImageBorderFixEnabled, isOnePagePerSheet, isRemoveEmptySpaceBetweenColumns, isRemoveEmptySpaceBetweenRows, isWhitePageBackground, loadedFonts, MAX_COLUMN_INDEX, MAX_ROW_INDEX, maxColumnFreezeIndex, maxRowFreezeIndex, maxRowsPerSheet, pageIndex, progressMonitor, PROPERTY_AUTO_FILTER, PROPERTY_AUTO_FIT_COLUMN, PROPERTY_AUTO_FIT_ROW, PROPERTY_CELL_FORMULA, PROPERTY_CELL_HIDDEN, PROPERTY_CELL_LOCKED, PROPERTY_CELL_PATTERN, PROPERTY_COLUMN_WIDTH, PROPERTY_COLUMN_WIDTH_RATIO, PROPERTY_FIT_HEIGHT, PROPERTY_FIT_WIDTH, PROPERTY_FREEZE_COLUMN, PROPERTY_FREEZE_COLUMN_EDGE, PROPERTY_FREEZE_ROW, PROPERTY_FREEZE_ROW_EDGE, PROPERTY_ROW_OUTLINE_LEVEL_PREFIX, PROPERTY_SHEET_DIRECTION, PROPERTY_SHEET_FOOTER_CENTER, PROPERTY_SHEET_FOOTER_LEFT, PROPERTY_SHEET_FOOTER_RIGHT, PROPERTY_SHEET_HEADER_CENTER, PROPERTY_SHEET_HEADER_LEFT, PROPERTY_SHEET_HEADER_RIGHT, PROPERTY_WRAP_TEXT, reportIndex, sheetDirection, sheetFooterCenter, sheetFooterLeft, sheetFooterRight, sheetHeaderCenter, sheetHeaderLeft, sheetHeaderRight, sheetIndex, sheetNames, sheetNamesIndex, sheetNamesMap, wrapText, XLS_EXPORTER_PROPERTIES_PREFIXdateFormatCache, endPageIndex, filter, globalOffsetX, globalOffsetY, hyperlinkProducerFactory, isModeBatch, jasperPrint, jasperPrintList, numberFormatCache, parameters, PROPERTY_DEFAULT_FILTER_FACTORY, PROPERTY_SUFFIX_DEFAULT_FILTER_FACTORY, startPageIndex| 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,
net.sf.jasperreports.engine.export.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,
int yCutsRow,
JRGridLayout layout) |
void |
exportImage(JRPrintImage element,
JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
int emptyCols,
int yCutsRow,
JRGridLayout layout) |
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 double |
getColumnRelativePosition(JRGridLayout layout,
int col,
int offset) |
protected java.lang.String |
getExporterKey() |
protected HSSFCellStyle |
getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
net.sf.jasperreports.engine.export.BoxStyle box) |
protected HSSFCellStyle |
getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
net.sf.jasperreports.engine.export.BoxStyle box,
boolean isCellLocked,
boolean isCellHidden) |
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,
JRExporterGridCell gridCell,
boolean isCellLocked,
boolean isCellHidden) |
protected HSSFCellStyle |
getLoadedCellStyle(net.sf.jasperreports.engine.export.StyleInfo style) |
protected HSSFFont |
getLoadedFont(JRFont font,
short forecolor,
java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> 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 double |
getRowRelativePosition(JRGridLayout layout,
int row,
int offset) |
protected static HSSFColor |
getWorkbookColor(java.awt.Color awtColor) |
protected HSSFCellStyle |
initCreateCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex,
net.sf.jasperreports.engine.export.StyleInfo baseStyle) |
protected void |
openWorkbook(java.io.OutputStream os) |
protected void |
removeColumn(int colIndex) |
protected void |
setAutoFilter(java.lang.String autoFilterRange) |
protected void |
setBackground() |
protected void |
setCell(JRExporterGridCell gridCell,
int colIndex,
int rowIndex) |
protected void |
setColumnWidth(int col,
int width,
boolean autoFit) |
protected void |
setFreezePane(int rowIndex,
int colIndex,
boolean isRowEdge,
boolean isColumnEdge)
Creates a freeze pane for the current sheet.
|
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,
Cut yCut,
XlsRowLevelInfo levelInfo) |
protected void |
setRowLevels(XlsRowLevelInfo levelInfo,
java.lang.String level) |
protected void |
setSheetName(java.lang.String sheetName) |
protected void |
setStringCellValue(java.lang.String textStr) |
protected void |
updateColumn(int col,
boolean autoFit) |
calculateHeightForDinAN, calculateHeightForDinBN, calculateHeightForDinCN, calculateWidthForDinAN, calculateWidthForDinBN, calculateWidthForDinCN, exportPage, exportReport, exportReportToStream, getColumnIndex, getColumnName, getConvertedPattern, getDefaultFont, getFormula, getImageBorderCorrection, getStyledText, getTextAlignHolder, isCellHidden, isCellLocked, isWrapText, mergeAndSetRowLevels, resetAutoFilters, setColumnWidths, setExporterHints, setFreezePane, setSheetNames, updateColumnscreateFilter, defaultParseNumber, getBooleanCellValue, getBooleanParameter, getCharacterParameter, getCustomHandler, getDateCellValue, getDateFormat, getFloatParameter, getHyperlinkProducer, getIntegerParameter, getLocale, getNumberCellValue, getNumberFormat, getOffsetX, getOffsetY, getParameter, getParameterResolver, getParameters, getReportContext, 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, setReportContextpublic static final java.lang.String XLS_EXPORTER_KEY
GenericElementHandlerEnviroment.getHandler(net.sf.jasperreports.engine.JRGenericElementType, String).protected java.util.Map<net.sf.jasperreports.engine.export.StyleInfo,HSSFCellStyle> loadedCellStyles
protected java.util.Map<java.lang.String,java.util.List<Hyperlink>> anchorLinks
protected java.util.Map<java.lang.Integer,java.util.List<Hyperlink>> pageLinks
protected java.util.Map<java.lang.String,HSSFName> 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 ExporterNature nature
protected HSSFPatriarch patriarch
protected java.lang.String password
protected JRXlsExporterContext exporterContext
protected void setParameters()
setParameters in class JRXlsAbstractExporterprotected void setBackground()
setBackground in class JRXlsAbstractExporterprotected void openWorkbook(java.io.OutputStream os)
openWorkbook in class JRXlsAbstractExporterprotected void createSheet(java.lang.String name)
createSheet in class JRXlsAbstractExporterprotected void closeWorkbook(java.io.OutputStream os)
throws JRException
closeWorkbook in class JRXlsAbstractExporterJRExceptionprotected void setColumnWidth(int col,
int width,
boolean autoFit)
setColumnWidth in class JRXlsAbstractExporterprotected void updateColumn(int col,
boolean autoFit)
updateColumn in class JRXlsAbstractExporterprotected void setRowHeight(int rowIndex,
int lastRowHeight,
Cut yCut,
XlsRowLevelInfo levelInfo)
setRowHeight in class JRXlsAbstractExporterprotected void setCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
setCell in class JRXlsAbstractExporterprotected void removeColumn(int colIndex)
removeColumn in class JRXlsAbstractExporterprotected void addBlankCell(JRExporterGridCell gridCell, int colIndex, int rowIndex)
addBlankCell in class JRXlsAbstractExporterprotected void addOccupiedCell(OccupiedGridCell occupiedGridCell, int colIndex, int rowIndex)
addOccupiedCell in class JRXlsAbstractExporterprotected void exportLine(JRPrintLine line, JRExporterGridCell gridCell, int colIndex, int rowIndex)
exportLine in class JRXlsAbstractExporterprotected void exportRectangle(JRPrintGraphicElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex)
exportRectangle in class JRXlsAbstractExporterpublic void exportText(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex) throws JRException
exportText in class JRXlsAbstractExporterJRExceptionprotected void createTextCell(JRPrintText textElement, JRExporterGridCell gridCell, int colIndex, int rowIndex, JRStyledText styledText, net.sf.jasperreports.engine.export.StyleInfo baseStyle, short forecolor) throws JRException
JRExceptionprotected HSSFCellStyle initCreateCell(JRExporterGridCell gridCell, int colIndex, int rowIndex, net.sf.jasperreports.engine.export.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 getWorkbookColor(java.awt.Color awtColor)
protected static HSSFColor getNearestColor(java.awt.Color awtColor)
protected HSSFFont getLoadedFont(JRFont font, short forecolor, java.util.Map<java.text.AttributedCharacterIterator.Attribute,java.lang.Object> attributes, java.util.Locale locale)
protected HSSFCellStyle getLoadedCellStyle(net.sf.jasperreports.engine.export.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,
JRExporterGridCell gridCell,
boolean isCellLocked,
boolean isCellHidden)
protected HSSFCellStyle getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
net.sf.jasperreports.engine.export.BoxStyle box)
protected HSSFCellStyle getLoadedCellStyle(short mode,
short backcolor,
short horizontalAlignment,
short verticalAlignment,
short rotation,
HSSFFont font,
net.sf.jasperreports.engine.export.BoxStyle box,
boolean isCellLocked,
boolean isCellHidden)
protected static short getBorderStyle(JRPen pen)
public void exportImage(JRPrintImage element, JRExporterGridCell gridCell, int colIndex, int rowIndex, int emptyCols, int yCutsRow, JRGridLayout layout) throws JRException
exportImage in class JRXlsAbstractExporterJRExceptionprotected double getColumnRelativePosition(JRGridLayout layout, int col, int offset)
protected double getRowRelativePosition(JRGridLayout layout, int row, int offset)
protected void exportFrame(JRPrintFrame frame, JRExporterGridCell gridCell, int x, int y)
exportFrame in class JRXlsAbstractExporterprotected void exportGenericElement(JRGenericPrintElement element, JRExporterGridCell gridCell, int colIndex, int rowIndex, int emptyCols, int yCutsRow, JRGridLayout layout) throws JRException
exportGenericElement in class JRXlsAbstractExporterJRExceptionprotected ExporterNature getNature()
getNature in class JRXlsAbstractExporterprotected void setHyperlinkCell(JRPrintHyperlink hyperlink)
protected java.lang.String getExporterKey()
getExporterKey in class JRAbstractExporterprotected void setFreezePane(int rowIndex,
int colIndex,
boolean isRowEdge,
boolean isColumnEdge)
setFreezePane in class JRXlsAbstractExporterrowIndex - the freeze 0-based row indexcolIndex - the freeze 0-based column indexisRowEdge - specifies if the freeze row index is set at element levelisColumnEdge - specifies if the freeze column index is set at element levelprotected void setSheetName(java.lang.String sheetName)
setSheetName in class JRXlsAbstractExporterprotected void setAutoFilter(java.lang.String autoFilterRange)
setAutoFilter in class JRXlsAbstractExporterprotected void setRowLevels(XlsRowLevelInfo levelInfo, java.lang.String level)
setRowLevels in class JRXlsAbstractExporter© 2001-2010 Jaspersoft Corporation www.jaspersoft.com