|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sf.jasperreports.engine.export.GenericElementHandlerEnviroment
public final class GenericElementHandlerEnviroment
A class that provides access to
generic element handlers
.
Generic element handler bundles are registered as JasperReports extensions
of type GenericElementHandlerBundle
via the central extension
framework (see ExtensionsEnvironment
).
Method Summary | |
---|---|
protected java.util.Map<java.lang.String,GenericElementHandlerBundle> |
getBundles()
|
GenericElementHandler |
getElementHandler(JRGenericElementType type,
java.lang.String exporterKey)
Returns a handler for a generic print element type and an exporter key. |
static GenericElementHandler |
getHandler(JRGenericElementType type,
java.lang.String exporterKey)
Deprecated. Replaced by getElementHandler(JRGenericElementType, String) . |
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> |
getHandlerBundles()
Deprecated. Replaced by getBundles() . |
static GenericElementHandlerEnviroment |
getInstance(JasperReportsContext jasperReportsContext)
|
protected java.util.Map<java.lang.String,GenericElementHandlerBundle> |
loadBundles()
|
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> |
loadHandlerBundles()
Deprecated. Replaced by loadBundles() . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static GenericElementHandlerEnviroment getInstance(JasperReportsContext jasperReportsContext)
public GenericElementHandler getElementHandler(JRGenericElementType type, java.lang.String exporterKey)
The method first locates a
handler bundle
that matches the type
namespace, and then uses
GenericElementHandlerBundle.getHandler(String, String)
to
resolve an export handler.
type
- the generic element typeexporterKey
- the exporter key
JRRuntimeException
- if a handler does not exist for the
combination of element type and exporter keyprotected java.util.Map<java.lang.String,GenericElementHandlerBundle> getBundles()
protected java.util.Map<java.lang.String,GenericElementHandlerBundle> loadBundles()
public static GenericElementHandler getHandler(JRGenericElementType type, java.lang.String exporterKey)
getElementHandler(JRGenericElementType, String)
.
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> getHandlerBundles()
getBundles()
.
protected static java.util.Map<java.lang.String,GenericElementHandlerBundle> loadHandlerBundles()
loadBundles()
.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |