public class AbstractXlsReportConfiguration extends SimpleReportExportConfiguration implements XlsReportConfiguration
PROPERTY_CELL_HIDDEN, PROPERTY_CELL_LOCKED, PROPERTY_COLLAPSE_ROW_SPAN, PROPERTY_COLUMN_WIDTH_RATIO, PROPERTY_DETECT_CELL_TYPE, PROPERTY_FIRST_PAGE_NUMBER, PROPERTY_FIT_HEIGHT, PROPERTY_FIT_WIDTH, PROPERTY_FONT_SIZE_FIX_ENABLED, PROPERTY_FREEZE_COLUMN, PROPERTY_FREEZE_ROW, PROPERTY_IGNORE_ANCHORS, PROPERTY_IGNORE_CELL_BACKGROUND, PROPERTY_IGNORE_CELL_BORDER, PROPERTY_IGNORE_GRAPHICS, PROPERTY_IGNORE_HYPERLINK, PROPERTY_IMAGE_ANCHOR_TYPE, PROPERTY_IMAGE_BORDER_FIX_ENABLED, PROPERTY_MAXIMUM_ROWS_PER_SHEET, PROPERTY_ONE_PAGE_PER_SHEET, PROPERTY_PAGE_SCALE, PROPERTY_PASSWORD, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS, PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS, 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_SHEET_NAMES_PREFIX, PROPERTY_SHOW_GRIDLINES, PROPERTY_USE_TIMEZONE, PROPERTY_WHITE_PAGE_BACKGROUND, PROPERTY_WRAP_TEXTPROPERTY_IGNORE_PAGE_MARGINSPROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS| Constructor and Description |
|---|
AbstractXlsReportConfiguration() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.Float |
getColumnWidthRatio()
Setting used to adjust all column widths in a document or sheet with the same width ratio, in order to get column width
values suitable for Excel output.
|
java.lang.Integer |
getFirstPageNumber()
Setting that specifies the first page number in the page setup dialog.
|
java.lang.Integer |
getFitHeight()
This setting indicates the number of pages height to fit the sheet in.
|
java.lang.Integer |
getFitWidth()
This setting indicates the number of pages wide to fit the sheet in.
|
java.util.Map<java.lang.String,java.lang.String> |
getFormatPatternsMap()
This export configuration setting should be used when converting java format patterns to equivalent proprietary
format patterns.
|
ImageAnchorTypeEnum |
getImageAnchorType()
Specifies the image anchor type.
|
java.lang.Integer |
getMaxRowsPerSheet()
Returns an integer value specifying the maximum number of rows allowed to be shown in a sheet.
|
java.lang.Integer |
getPageScale()
This setting is used to adjust the page content to a given percent of the normal size in the print preview pane.
|
java.lang.String |
getPassword()
Returns a String value representing the password in case of password protected documents.
|
RunDirectionEnum |
getSheetDirection()
This setting indicates if the sheet is left-to-right or right-to-left oriented.
|
java.lang.String |
getSheetFooterCenter()
This property stores the text content of the sheet footer's center.
|
java.lang.String |
getSheetFooterLeft()
This property stores the text content of the sheet footer's left side.
|
java.lang.String |
getSheetFooterRight()
This property stores the text content of the sheet footer's right side.
|
java.lang.String |
getSheetHeaderCenter()
This property stores the text content of the sheet header's center.
|
java.lang.String |
getSheetHeaderLeft()
This property stores the text content of the sheet header's left side.
|
java.lang.String |
getSheetHeaderRight()
This property stores the text content of the sheet header's right side.
|
java.lang.String[] |
getSheetNames()
Returns an array of strings representing custom sheet names.
|
java.lang.Boolean |
isCellHidden()
This flag indicates whether the cell content is hidden.
|
java.lang.Boolean |
isCellLocked()
This flag indicates whether the cell is locked.
|
java.lang.Boolean |
isCollapseRowSpan()
Flag for collapsing row span and avoid merging cells across rows.
|
java.lang.Boolean |
isDetectCellType()
Flag used to indicate whether the exporter should take into consideration the type of the
original text field expressions and set the cell types and values accordingly.
|
java.lang.Boolean |
isFontSizeFixEnabled()
Flag for decreasing font size so that texts fit into the specified cell height.
|
java.lang.Boolean |
isIgnoreAnchors()
Flag that indicates whether local anchors should be ignored when elements are exported to Excel.
|
java.lang.Boolean |
isIgnoreCellBackground()
Flag for ignoring the cell background color.
|
java.lang.Boolean |
isIgnoreCellBorder()
Flag for ignoring the cell border.
|
java.lang.Boolean |
isIgnoreGraphics()
Flag for ignoring graphic elements and exporting text elements only.
|
java.lang.Boolean |
isIgnoreHyperlink() |
java.lang.Boolean |
isIgnorePageMargins()
Indicates whether page margins should be ignored when the report is exported using a grid-based exporter
If set to
true, any page in the document will be exported without taking into account its margins. |
java.lang.Boolean |
isImageBorderFixEnabled()
Flag for forcing the minimum image padding to 1 pixel, to avoid situations where the image hides the cell border.
|
java.lang.Boolean |
isOnePagePerSheet()
Returns a boolean value specifying whether each report page should be written in a different XLS sheet.
|
java.lang.Boolean |
isRemoveEmptySpaceBetweenColumns()
Returns a boolean value specifying whether the empty spaces that could appear between columns should be removed or not.
|
java.lang.Boolean |
isRemoveEmptySpaceBetweenRows()
Returns a boolean value specifying whether the empty spaces that could appear between rows should be removed or not.
|
java.lang.Boolean |
isShowGridLines()
Flag that specifies if the gridlines in a given sheet are shown.
|
java.lang.Boolean |
isUseTimeZone()
Flag that determines whether date values are to be translated to the timezone
that was used to fill the report.
|
java.lang.Boolean |
isWhitePageBackground()
Returns a boolean value specifying whether the page background should be white or the default XLS background color.
|
java.lang.Boolean |
isWrapText()
This flag indicates whether text wrapping is allowed in a given cell.
|
void |
setCellHidden(java.lang.Boolean isCellHidden) |
void |
setCellLocked(java.lang.Boolean isCellLocked) |
void |
setCollapseRowSpan(java.lang.Boolean isCollapseRowSpan) |
void |
setColumnWidthRatio(java.lang.Float columnWidthRatio) |
void |
setDetectCellType(java.lang.Boolean isDetectCellType) |
void |
setFirstPageNumber(java.lang.Integer firstPageNumber) |
void |
setFitHeight(java.lang.Integer fitHeight) |
void |
setFitWidth(java.lang.Integer fitWidth) |
void |
setFontSizeFixEnabled(java.lang.Boolean isFontSizeFixEnabled) |
void |
setFormatPatternsMap(java.util.Map<java.lang.String,java.lang.String> formatPatternsMap) |
void |
setIgnoreAnchors(java.lang.Boolean isIgnoreAnchors) |
void |
setIgnoreCellBackground(java.lang.Boolean isIgnoreCellBackground) |
void |
setIgnoreCellBorder(java.lang.Boolean isIgnoreCellBorder) |
void |
setIgnoreGraphics(java.lang.Boolean isIgnoreGraphics) |
void |
setIgnoreHyperlink(java.lang.Boolean isIgnoreHyperlink) |
void |
setIgnorePageMargins(java.lang.Boolean isIgnorePageMargins) |
void |
setImageAnchorType(ImageAnchorTypeEnum imageAnchorType) |
void |
setImageBorderFixEnabled(java.lang.Boolean isImageBorderFixEnabled) |
void |
setMaxRowsPerSheet(java.lang.Integer maxRowsPerSheet) |
void |
setOnePagePerSheet(java.lang.Boolean isOnePagePerSheet) |
void |
setPageScale(java.lang.Integer pageScale) |
void |
setPassword(java.lang.String password) |
void |
setRemoveEmptySpaceBetweenColumns(java.lang.Boolean isRemoveEmptySpaceBetweenColumns) |
void |
setRemoveEmptySpaceBetweenRows(java.lang.Boolean isRemoveEmptySpaceBetweenRows) |
void |
setSheetDirection(RunDirectionEnum sheetDirection) |
void |
setSheetFooterCenter(java.lang.String sheetFooterCenter) |
void |
setSheetFooterLeft(java.lang.String sheetFooterLeft) |
void |
setSheetFooterRight(java.lang.String sheetFooterRight) |
void |
setSheetHeaderCenter(java.lang.String sheetHeaderCenter) |
void |
setSheetHeaderLeft(java.lang.String sheetHeaderLeft) |
void |
setSheetHeaderRight(java.lang.String sheetHeaderRight) |
void |
setSheetNames(java.lang.String[] sheetNames) |
void |
setShowGridLines(java.lang.Boolean isShowGridLines) |
void |
setUseTimeZone(java.lang.Boolean isUseTimeZone) |
void |
setWhitePageBackground(java.lang.Boolean isWhitePageBackground) |
void |
setWrapText(java.lang.Boolean isWrapText) |
getEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndex, setEndPageIndex, setExporterFilter, setHyperlinkProducerFactory, setOffsetX, setOffsetY, setPageIndex, setProgressMonitor, setStartPageIndexisOverrideHints, setOverrideHintsclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetEndPageIndex, getExporterFilter, getHyperlinkProducerFactory, getOffsetX, getOffsetY, getPageIndex, getProgressMonitor, getStartPageIndexisOverrideHintspublic java.lang.Boolean isOnePagePerSheet()
XlsReportConfigurationisOnePagePerSheet in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_ONE_PAGE_PER_SHEETpublic void setOnePagePerSheet(java.lang.Boolean isOnePagePerSheet)
public java.lang.Boolean isRemoveEmptySpaceBetweenColumns()
XlsReportConfigurationisRemoveEmptySpaceBetweenColumns in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNSpublic void setRemoveEmptySpaceBetweenColumns(java.lang.Boolean isRemoveEmptySpaceBetweenColumns)
public java.lang.Boolean isRemoveEmptySpaceBetweenRows()
XlsReportConfigurationisRemoveEmptySpaceBetweenRows in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWSpublic void setRemoveEmptySpaceBetweenRows(java.lang.Boolean isRemoveEmptySpaceBetweenRows)
public java.lang.Boolean isWhitePageBackground()
XlsReportConfigurationisWhitePageBackground in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_WHITE_PAGE_BACKGROUNDpublic void setWhitePageBackground(java.lang.Boolean isWhitePageBackground)
public java.lang.Boolean isDetectCellType()
XlsReportConfiguration
Text fields having numerical or date expressions save type and formatting (format pattern, locale and time zone)
information in the JasperPrint/JRPrintText
object created by the report fill process.
When this flag is set, the exporter will parse back the String value of numerical/date texts.
Numerical/date cells will be created and the original pattern of the text will be included
as part of the cell style.
Note that this mechanism would not work when the text field overflows and splits on two pages/columns. Also, it is required that the text field expression has a numerical or date type set.
This flag is off by default to ensure backwards compatibility.
isDetectCellType in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_DETECT_CELL_TYPEpublic void setDetectCellType(java.lang.Boolean isDetectCellType)
public java.lang.Boolean isFontSizeFixEnabled()
XlsReportConfigurationisFontSizeFixEnabled in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_FONT_SIZE_FIX_ENABLEDpublic void setFontSizeFixEnabled(java.lang.Boolean isFontSizeFixEnabled)
public java.lang.Boolean isImageBorderFixEnabled()
XlsReportConfigurationisImageBorderFixEnabled in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IMAGE_BORDER_FIX_ENABLEDpublic void setImageBorderFixEnabled(java.lang.Boolean isImageBorderFixEnabled)
public java.lang.Boolean isIgnoreGraphics()
XlsReportConfigurationisIgnoreGraphics in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IGNORE_GRAPHICSpublic void setIgnoreGraphics(java.lang.Boolean isIgnoreGraphics)
public java.lang.Boolean isCollapseRowSpan()
XlsReportConfigurationisCollapseRowSpan in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_COLLAPSE_ROW_SPANpublic void setCollapseRowSpan(java.lang.Boolean isCollapseRowSpan)
public java.lang.Boolean isIgnoreCellBorder()
XlsReportConfigurationisIgnoreCellBorder in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IGNORE_CELL_BORDERpublic void setIgnoreCellBorder(java.lang.Boolean isIgnoreCellBorder)
public java.lang.Boolean isIgnoreCellBackground()
XlsReportConfigurationisIgnoreCellBackground in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IGNORE_CELL_BACKGROUNDpublic void setIgnoreCellBackground(java.lang.Boolean isIgnoreCellBackground)
public java.lang.Boolean isWrapText()
XlsReportConfigurationisWrapText in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_WRAP_TEXTpublic void setWrapText(java.lang.Boolean isWrapText)
public java.lang.Boolean isCellLocked()
XlsReportConfigurationisCellLocked in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_CELL_LOCKEDpublic void setCellLocked(java.lang.Boolean isCellLocked)
public java.lang.Boolean isCellHidden()
XlsReportConfigurationisCellHidden in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_CELL_HIDDENpublic void setCellHidden(java.lang.Boolean isCellHidden)
public java.lang.Integer getMaxRowsPerSheet()
XlsReportConfigurationgetMaxRowsPerSheet in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_MAXIMUM_ROWS_PER_SHEETpublic void setMaxRowsPerSheet(java.lang.Integer maxRowsPerSheet)
public java.lang.Boolean isIgnorePageMargins()
XlsReportConfiguration
If set to true, any page in the document will be exported without taking into account its margins.
isIgnorePageMargins in interface XlsReportConfigurationReportExportConfiguration.PROPERTY_IGNORE_PAGE_MARGINSpublic void setIgnorePageMargins(java.lang.Boolean isIgnorePageMargins)
public java.lang.String getSheetHeaderLeft()
XlsReportConfigurationgetSheetHeaderLeft in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_HEADER_LEFTpublic void setSheetHeaderLeft(java.lang.String sheetHeaderLeft)
public java.lang.String getSheetHeaderCenter()
XlsReportConfigurationgetSheetHeaderCenter in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_HEADER_CENTERpublic void setSheetHeaderCenter(java.lang.String sheetHeaderCenter)
public java.lang.String getSheetHeaderRight()
XlsReportConfigurationgetSheetHeaderRight in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_HEADER_RIGHTpublic void setSheetHeaderRight(java.lang.String sheetHeaderRight)
public java.lang.String getSheetFooterLeft()
XlsReportConfigurationgetSheetFooterLeft in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_FOOTER_LEFTpublic void setSheetFooterLeft(java.lang.String sheetFooterLeft)
public java.lang.String getSheetFooterCenter()
XlsReportConfigurationgetSheetFooterCenter in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_FOOTER_CENTERpublic void setSheetFooterCenter(java.lang.String sheetFooterCenter)
public java.lang.String getSheetFooterRight()
XlsReportConfigurationgetSheetFooterRight in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_FOOTER_RIGHTpublic void setSheetFooterRight(java.lang.String sheetFooterRight)
public java.lang.String getPassword()
XlsReportConfigurationgetPassword in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_PASSWORDpublic void setPassword(java.lang.String password)
public java.lang.String[] getSheetNames()
XlsReportConfigurationgetSheetNames in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_NAMES_PREFIXpublic void setSheetNames(java.lang.String[] sheetNames)
public java.util.Map<java.lang.String,java.lang.String> getFormatPatternsMap()
XlsReportConfigurationgetFormatPatternsMap in interface XlsReportConfigurationHSSFDataFormat,
NumberFormatpublic void setFormatPatternsMap(java.util.Map<java.lang.String,java.lang.String> formatPatternsMap)
public java.lang.Boolean isIgnoreHyperlink()
isIgnoreHyperlink in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IGNORE_HYPERLINKpublic void setIgnoreHyperlink(java.lang.Boolean isIgnoreHyperlink)
public java.lang.Boolean isIgnoreAnchors()
XlsReportConfigurationisIgnoreAnchors in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IGNORE_ANCHORSpublic void setIgnoreAnchors(java.lang.Boolean isIgnoreAnchors)
public java.lang.Integer getFitWidth()
XlsReportConfigurationgetFitWidth in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_FIT_WIDTHpublic void setFitWidth(java.lang.Integer fitWidth)
public java.lang.Integer getFitHeight()
XlsReportConfigurationgetFitHeight in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_FIT_WIDTHpublic void setFitHeight(java.lang.Integer fitHeight)
public java.lang.Integer getPageScale()
XlsReportConfigurationXlsReportConfiguration.getFitWidth() and XlsReportConfiguration.getFitHeight() settings.getPageScale in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_PAGE_SCALEpublic void setPageScale(java.lang.Integer pageScale)
public RunDirectionEnum getSheetDirection()
XlsReportConfigurationgetSheetDirection in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHEET_DIRECTIONpublic void setSheetDirection(RunDirectionEnum sheetDirection)
public java.lang.Float getColumnWidthRatio()
XlsReportConfigurationgetColumnWidthRatio in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_COLUMN_WIDTH_RATIOpublic void setColumnWidthRatio(java.lang.Float columnWidthRatio)
public java.lang.Boolean isUseTimeZone()
XlsReportConfiguration
By default, date values are exported to Excel using the default timezone of the system.
Setting this to true instructs the exporter to use he report fill
timezone to export date values.
This only has effect when XlsReportConfiguration.isDetectCellType() is set.
isUseTimeZone in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_USE_TIMEZONEpublic void setUseTimeZone(java.lang.Boolean isUseTimeZone)
public java.lang.Integer getFirstPageNumber()
XlsReportConfigurationgetFirstPageNumber in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_FIRST_PAGE_NUMBERpublic void setFirstPageNumber(java.lang.Integer firstPageNumber)
public java.lang.Boolean isShowGridLines()
XlsReportConfigurationisShowGridLines in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_SHOW_GRIDLINESpublic void setShowGridLines(java.lang.Boolean isShowGridLines)
public ImageAnchorTypeEnum getImageAnchorType()
XlsReportConfigurationgetImageAnchorType in interface XlsReportConfigurationXlsReportConfiguration.PROPERTY_IMAGE_ANCHOR_TYPEpublic void setImageAnchorType(ImageAnchorTypeEnum imageAnchorType)
© 2001-2010 Jaspersoft Corporation www.jaspersoft.com