|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jasperreports.engine.JRExporterParameter
net.sf.jasperreports.engine.export.JRXlsAbstractExporterParameter
public class JRXlsAbstractExporterParameter
Contains parameters useful for export in XLS format.
The XLS exporter can send data to an output stream or file on disk. The engine looks among the export parameters in order to find the selected output type in this order: OUTPUT_STREAM, OUTPUT_FILE, OUTPUT_FILE_NAME.
Field Summary | |
---|---|
static JRExporterParameter |
CREATE_CUSTOM_PALETTE
A boolean value specifying whether the standard color palette should be customized so that the XLS result uses the original report colors. |
static JRExporterParameter |
FORMAT_PATTERNS_MAP
This export parameter should be used when converting java format patterns to equivalent proprietary format patterns. |
static JRXlsAbstractExporterParameter |
IS_COLLAPSE_ROW_SPAN
Flag for collapsing row span and avoid merging cells across rows. |
static JRXlsAbstractExporterParameter |
IS_DETECT_CELL_TYPE
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. |
static JRXlsAbstractExporterParameter |
IS_FONT_SIZE_FIX_ENABLED
Flag for decreasing font size so that texts fit into the specified cell height. |
static JRXlsAbstractExporterParameter |
IS_IGNORE_CELL_BACKGROUND
Flag for ignoring the cell background color. |
static JRXlsAbstractExporterParameter |
IS_IGNORE_CELL_BORDER
Flag for ignoring the cell border. |
static JRXlsAbstractExporterParameter |
IS_IGNORE_GRAPHICS
Flag for ignoring graphic elements and exporting text elements only. |
static JRXlsAbstractExporterParameter |
IS_IMAGE_BORDER_FIX_ENABLED
Flag for forcing the minimum image padding to 1 pixel, to avoid situations where the image hides the cell border. |
static JRXlsAbstractExporterParameter |
IS_ONE_PAGE_PER_SHEET
A boolean value specifying whether each report page should be written in a different XLS sheet |
static JRXlsAbstractExporterParameter |
IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
A boolean value specifying whether the empty spaces that could appear between columns should be removed or not. |
static JRXlsAbstractExporterParameter |
IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
A boolean value specifying whether the empty spaces that could appear between rows should be removed or not. |
static JRXlsAbstractExporterParameter |
IS_WHITE_PAGE_BACKGROUND
A boolean value specifying whether the page background should be white or the default XLS background color. |
static JRExporterParameter |
MAXIMUM_ROWS_PER_SHEET
An integer value specifying the maximum number of rows allowed to be shown in a sheet. |
static JRXlsAbstractExporterParameter |
PASSWORD
A String value representing the password in case of password protected documents |
static java.lang.String |
PROPERTY_COLLAPSE_ROW_SPAN
Property whose value is used as default state of the IS_COLLAPSE_ROW_SPAN export flag. |
static java.lang.String |
PROPERTY_CREATE_CUSTOM_PALETTE
Property whose value is used as default state of the CREATE_CUSTOM_PALETTE export flag. |
static java.lang.String |
PROPERTY_DETECT_CELL_TYPE
Property whose value is used as default state of the IS_DETECT_CELL_TYPE export flag. |
static java.lang.String |
PROPERTY_FONT_SIZE_FIX_ENABLED
Property whose value is used as default state of the IS_FONT_SIZE_FIX_ENABLED export flag. |
static java.lang.String |
PROPERTY_IGNORE_CELL_BACKGROUND
Property whose value is used as default state of the IS_IGNORE_CELL_BACKGROUND export flag. |
static java.lang.String |
PROPERTY_IGNORE_CELL_BORDER
Property whose value is used as default state of the IS_IGNORE_CELL_BORDER export flag. |
static java.lang.String |
PROPERTY_IGNORE_GRAPHICS
Property whose value is used as default state of the IS_IGNORE_GRAPHICS export flag. |
static java.lang.String |
PROPERTY_IMAGE_BORDER_FIX_ENABLED
Property whose value is used as default state of the IS_IMAGE_BORDER_FIX_ENABLED export flag. |
static java.lang.String |
PROPERTY_MAXIMUM_ROWS_PER_SHEET
Property whose value is used as default of the MAXIMUM_ROWS_PER_SHEET export parameter. |
static java.lang.String |
PROPERTY_ONE_PAGE_PER_SHEET
Property whose value is used as default state of the IS_ONE_PAGE_PER_SHEET export flag. |
static java.lang.String |
PROPERTY_PASSWORD
Property whose value is used as default value of the PASSWORD export parameter. |
static java.lang.String |
PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
Property whose value is used as default state of the IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS export flag. |
static java.lang.String |
PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
Property whose value is used as default state of the IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS export flag. |
static java.lang.String |
PROPERTY_SHEET_NAME
Property used to set the name of the sheet containing a given element. |
static java.lang.String |
PROPERTY_SHEET_NAMES_PREFIX
Property prefix used in order to identify a set of properties holding sheet names, very useful when indicating sheet names in the jrxml template is required. |
static java.lang.String |
PROPERTY_WHITE_PAGE_BACKGROUND
Property whose value is used as default state of the IS_WHITE_PAGE_BACKGROUND export flag. |
static JRXlsAbstractExporterParameter |
SHEET_NAMES
An array of strings representing custom sheet names. |
Constructor Summary | |
---|---|
protected |
JRXlsAbstractExporterParameter(java.lang.String name)
|
Method Summary |
---|
Methods inherited from class net.sf.jasperreports.engine.JRExporterParameter |
---|
toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final JRXlsAbstractExporterParameter IS_ONE_PAGE_PER_SHEET
public static final java.lang.String PROPERTY_ONE_PAGE_PER_SHEET
IS_ONE_PAGE_PER_SHEET
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
public static final java.lang.String PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
public static final java.lang.String PROPERTY_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
IS_REMOVE_EMPTY_SPACE_BETWEEN_COLUMNS
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_WHITE_PAGE_BACKGROUND
public static final java.lang.String PROPERTY_WHITE_PAGE_BACKGROUND
IS_WHITE_PAGE_BACKGROUND
export flag.
This property is set by default (true
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_DETECT_CELL_TYPE
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.
public static final java.lang.String PROPERTY_DETECT_CELL_TYPE
IS_DETECT_CELL_TYPE
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter SHEET_NAMES
public static final java.lang.String PROPERTY_SHEET_NAMES_PREFIX
SHEET_NAMES
export parameter.
A property starting with this prefix can hold one or many sheet names. In order to be well parsed,
sheet names contained in such a property's value should be separated by a slash character ("/")
These properties are by default not set.
JRPropertiesUtil
,
Constant Field Valuespublic static final java.lang.String PROPERTY_SHEET_NAME
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_FONT_SIZE_FIX_ENABLED
public static final JRXlsAbstractExporterParameter IS_IMAGE_BORDER_FIX_ENABLED
public static final java.lang.String PROPERTY_FONT_SIZE_FIX_ENABLED
IS_FONT_SIZE_FIX_ENABLED
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final java.lang.String PROPERTY_IMAGE_BORDER_FIX_ENABLED
IS_IMAGE_BORDER_FIX_ENABLED
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRExporterParameter FORMAT_PATTERNS_MAP
HSSFDataFormat
,
NumberFormat
public static final JRExporterParameter MAXIMUM_ROWS_PER_SHEET
public static final java.lang.String PROPERTY_MAXIMUM_ROWS_PER_SHEET
MAXIMUM_ROWS_PER_SHEET
export parameter.
This property is by default to zero.
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_IGNORE_GRAPHICS
public static final java.lang.String PROPERTY_IGNORE_GRAPHICS
IS_IGNORE_GRAPHICS
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_COLLAPSE_ROW_SPAN
public static final java.lang.String PROPERTY_COLLAPSE_ROW_SPAN
IS_COLLAPSE_ROW_SPAN
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_IGNORE_CELL_BORDER
public static final java.lang.String PROPERTY_IGNORE_CELL_BORDER
IS_IGNORE_CELL_BORDER
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter IS_IGNORE_CELL_BACKGROUND
public static final java.lang.String PROPERTY_IGNORE_CELL_BACKGROUND
IS_IGNORE_CELL_BACKGROUND
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRXlsAbstractExporterParameter PASSWORD
public static final java.lang.String PROPERTY_PASSWORD
PASSWORD
export parameter.
This property is by default not set (null
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRExporterParameter CREATE_CUSTOM_PALETTE
net.sf.jasperreports.export.xls.create.custom.palette
property.
The colors used in the result XLS are determined in the following manner:
PROPERTY_CREATE_CUSTOM_PALETTE
public static final java.lang.String PROPERTY_CREATE_CUSTOM_PALETTE
CREATE_CUSTOM_PALETTE
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field ValuesConstructor Detail |
---|
protected JRXlsAbstractExporterParameter(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |