public class ElementKeyExporterFilter extends java.lang.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 java.lang.String |
EXCEPTION_MESSAGE_KEY_EXCLUDED_NULL_KEYS_SET |
Constructor and Description |
---|
ElementKeyExporterFilter(java.util.Set<java.lang.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 java.lang.String EXCEPTION_MESSAGE_KEY_EXCLUDED_NULL_KEYS_SET
public ElementKeyExporterFilter(java.util.Set<java.lang.String> excludedKeys)
excludedKeys
- the set of keys to excludepublic boolean isToExport(JRPrintElement element)
isToExport
in interface ExporterFilter
© 2001-2014 TIBCO Software Inc. www.jaspersoft.com