public class ElementKeyExporterFilter extends Object implements ExporterFilter
<exporter_property_prefix>.exclude.key
. Each such
property matches a single element key which is to be excluded by the filter. The element
key is given by the property value, or if no value is set for the property, by the property
suffix.
The following example shows how to specify element keys which are to be excluded
from specific export outputs:
<jasperReport ...> <!-- exclude elements with keys Image1 and Text4 from HTML export --> <property name="net.sf.jasperreports.export.html.exclude.key.Image1"/> <property name="net.sf.jasperreports.export.html.exclude.key.Text4"/> <!-- exclude elements with keys Image5 from PDF export --> <property name="net.sf.jasperreports.export.pdf.exclude.key.the.image" value="Image5"/> ... </jasperReport>
Modifier and Type | Field and Description |
---|---|
static String |
EXCEPTION_MESSAGE_KEY_EXCLUDED_NULL_KEYS_SET |
Constructor and Description |
---|
ElementKeyExporterFilter(Set<String> excludedKeys)
Creates a filter instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
isToExport(JRPrintElement element)
Excludes elements whose keys match any of the excluded keys.
|
public static final String EXCEPTION_MESSAGE_KEY_EXCLUDED_NULL_KEYS_SET
public boolean isToExport(JRPrintElement element)
isToExport
in interface ExporterFilter
Copyright © 2017. All rights reserved.