public class AbstractXlsExporterConfiguration extends SimpleExporterConfiguration implements XlsExporterConfiguration
PROPERTY_CREATE_CUSTOM_PALETTE, PROPERTY_WORKBOOK_TEMPLATE, PROPERTY_WORKBOOK_TEMPLATE_KEEP_SHEETS
PROPERTY_EXPORT_CONFIGURATION_OVERRIDE_REPORT_HINTS
Constructor and Description |
---|
AbstractXlsExporterConfiguration() |
Modifier and Type | Method and Description |
---|---|
String |
getWorkbookTemplate()
Setting that specifies the location of an existing workbook template.
|
Boolean |
isCreateCustomPalette()
Returns a boolean value specifying whether the standard color palette should be customized
so that the XLS result uses the original report colors.
|
Boolean |
isKeepWorkbookTemplateSheets()
Flag that specifies whether to keep the sheets of the existing template into generated document.
|
void |
setCreateCustomPalette(Boolean isCreateCustomPalette) |
void |
setKeepWorkbookTemplateSheets(Boolean isKeepWorkbookTemplateSheets) |
void |
setWorkbookTemplate(String workbookTemplate) |
isOverrideHints, setOverrideHints
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
isOverrideHints
public Boolean isCreateCustomPalette()
XlsExporterConfiguration
net.sf.jasperreports.export.xls.create.custom.palette
property.
The colors used in the result XLS are determined in the following manner:
isCreateCustomPalette
in interface XlsExporterConfiguration
XlsExporterConfiguration.PROPERTY_CREATE_CUSTOM_PALETTE
public void setCreateCustomPalette(Boolean isCreateCustomPalette)
public String getWorkbookTemplate()
XlsExporterConfiguration
This setting is used in Excel exporters based either on Apache POI APIs (JRXlsExporter
) or on JExcelApi library
(JExcelApiExporter
). There's no similar property for the JRXlsxExporter
.
getWorkbookTemplate
in interface XlsExporterConfiguration
XlsExporterConfiguration.PROPERTY_WORKBOOK_TEMPLATE
public void setWorkbookTemplate(String workbookTemplate)
public Boolean isKeepWorkbookTemplateSheets()
XlsExporterConfiguration
This setting is used in conjunction with XlsExporterConfiguration.getWorkbookTemplate()
.
isKeepWorkbookTemplateSheets
in interface XlsExporterConfiguration
XlsExporterConfiguration.PROPERTY_WORKBOOK_TEMPLATE_KEEP_SHEETS
public void setKeepWorkbookTemplateSheets(Boolean isKeepWorkbookTemplateSheets)
Copyright © 2017. All rights reserved.