|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.JRExporterParameter net.sf.jasperreports.engine.export.JRHtmlExporterParameter
public class JRHtmlExporterParameter
Contains parameters useful for export in HTML format.
The HTML exporter can send data to a string buffer, output stream, character stream or file on disk. The engine looks among the export parameters in order to find the selected output type in this order: OUTPUT_STRING_BUFFER, OUTPUT_WRITER, OUTPUT_STREAM, OUTPUT_FILE, OUTPUT_FILE_NAME.
An important issue is images. The HTML format stores images as separate files, so the exporter needs to know where these images will be stored. If they are stored on disk, the IMAGES_URI parameter will be initialized with a string containing the file name on disk. If they remain in memory, IMAGES_URI must point to a resource that is able to send the images to the browser (such as an image servlet, as shown in the webapp example).
Field Summary | |
---|---|
static JRHtmlExporterParameter |
BETWEEN_PAGES_HTML
A string representing HTML code that will be inserted between pages of the generated report. |
static JRHtmlExporterParameter |
FLUSH_OUTPUT
A parameter that determines whether the HTML exporter should flush the output stream after writing the HTML content to it. |
static JRHtmlExporterParameter |
FRAMES_AS_NESTED_TABLES
Indicates whether frames are to be exported as nested HTML tables. |
static JRHtmlExporterParameter |
HTML_FOOTER
A string representing HTML code that will be inserted after the generated report. |
static JRHtmlExporterParameter |
HTML_HEADER
A string representing HTML code that will be inserted in front of the generated report. |
static JRHtmlExporterParameter |
IMAGES_DIR
A java.io.File instance representing an absolute path to a folder on a local disk, where all the images are stored. |
static JRHtmlExporterParameter |
IMAGES_DIR_NAME
An absolute path to a folder on a local disk, where all the images are stored. |
static JRHtmlExporterParameter |
IMAGES_MAP
A map containing all the images that were used for generating the report. |
static JRHtmlExporterParameter |
IMAGES_URI
An URI to the folder where all the images are stored. |
static JRHtmlExporterParameter |
IS_OUTPUT_IMAGES_TO_DIR
A boolean value specifying whether the images should be stored on disk. |
static JRHtmlExporterParameter |
IS_REMOVE_EMPTY_SPACE_BETWEEN_ROWS
A boolean value specifying whether the blank lines, that sometimes appear between rows, should be deleted. |
static JRHtmlExporterParameter |
IS_USING_IMAGES_TO_ALIGN
A boolean value specifying whether the export engine should use small images for aligning. |
static JRHtmlExporterParameter |
IS_WHITE_PAGE_BACKGROUND
A boolean value specifying whether the report background should be white. |
static JRHtmlExporterParameter |
IS_WRAP_BREAK_WORD
A boolean value specifying whether the export engine should use force wrapping by breaking words (CSS word-wrap: break-word ). |
static java.lang.String |
PROPERTY_FLUSH_OUTPUT
Property that provides the default value for the FLUSH_OUTPUT
parameter. |
static java.lang.String |
PROPERTY_FRAMES_AS_NESTED_TABLES
This property serves as default value for the FRAMES_AS_NESTED_TABLES
export parameter. |
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_SIZE_UNIT
Property whose value is used as default for the SIZE_UNIT export parameter. |
static java.lang.String |
PROPERTY_USING_IMAGES_TO_ALIGN
Property whose value is used as default state of the IS_USING_IMAGES_TO_ALIGN export flag. |
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 java.lang.String |
PROPERTY_WRAP_BREAK_WORD
Property whose value is used as default state of the IS_WRAP_BREAK_WORD export flag. |
static JRHtmlExporterParameter |
SIZE_UNIT
A String value specifying the unit to use when measuring lengths or font size. |
static java.lang.String |
SIZE_UNIT_PIXEL
Possible value for the SIZE_UNIT parameter indicated that measurements are made in pixels. |
static java.lang.String |
SIZE_UNIT_POINT
Possible value for the SIZE_UNIT parameter indicated that measurements are made in points. |
static JRHtmlExporterParameter |
ZOOM_RATIO
The zoom ratio used for the export. |
Constructor Summary | |
---|---|
JRHtmlExporterParameter(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 JRHtmlExporterParameter IMAGES_MAP
public static final JRHtmlExporterParameter IMAGES_DIR
public static final JRHtmlExporterParameter IMAGES_DIR_NAME
public static final JRHtmlExporterParameter IS_OUTPUT_IMAGES_TO_DIR
public static final JRHtmlExporterParameter IMAGES_URI
public static final JRHtmlExporterParameter HTML_HEADER
public static final JRHtmlExporterParameter BETWEEN_PAGES_HTML
public static final JRHtmlExporterParameter HTML_FOOTER
public static final JRHtmlExporterParameter 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 JRHtmlExporterParameter 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 JRHtmlExporterParameter IS_USING_IMAGES_TO_ALIGN
public static final java.lang.String PROPERTY_USING_IMAGES_TO_ALIGN
IS_USING_IMAGES_TO_ALIGN
export flag.
This property is set by default (true
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRHtmlExporterParameter IS_WRAP_BREAK_WORD
word-wrap: break-word
).
Note that this CSS property is not currently supported by all browsers.
An alternative approach for forcing word breaks in HTML is to save the
line breaks at fill time via the JRTextElement.PROPERTY_SAVE_LINE_BREAKS
property.
public static final java.lang.String PROPERTY_WRAP_BREAK_WORD
IS_WRAP_BREAK_WORD
export flag.
This property is by default not set (false
).
JRPropertiesUtil
,
Constant Field Valuespublic static final JRHtmlExporterParameter SIZE_UNIT
public static final java.lang.String PROPERTY_SIZE_UNIT
SIZE_UNIT
export parameter.
JRPropertiesUtil
,
Constant Field Valuespublic static final java.lang.String SIZE_UNIT_PIXEL
SIZE_UNIT
parameter indicated that measurements are made in pixels.
public static final java.lang.String SIZE_UNIT_POINT
SIZE_UNIT
parameter indicated that measurements are made in points.
public static final JRHtmlExporterParameter ZOOM_RATIO
public static final JRHtmlExporterParameter FRAMES_AS_NESTED_TABLES
frames
are to be exported as nested HTML tables.
The type of the parameter is java.lang.Boolean
.
Is set to false
, the frame contents will be integrated into the master/page HTML table.
This can be useful when exporting frames as nested tables causes output misalignments.
PROPERTY_FRAMES_AS_NESTED_TABLES
public static final java.lang.String PROPERTY_FRAMES_AS_NESTED_TABLES
FRAMES_AS_NESTED_TABLES
export parameter.
The propery itself defaults to true
.
JRPropertiesUtil
,
Constant Field Valuespublic static final JRHtmlExporterParameter FLUSH_OUTPUT
The default value is given by the PROPERTY_FLUSH_OUTPUT
property.
public static final java.lang.String PROPERTY_FLUSH_OUTPUT
FLUSH_OUTPUT
parameter.
The property can be set at report level or globally. By default, the HTML exporter performs a flush on the output stream after export.
Constructor Detail |
---|
public JRHtmlExporterParameter(java.lang.String name)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |