Package net.sf.jasperreports.engine.part
Class DefaultPartComponentsBundle
java.lang.Object
net.sf.jasperreports.engine.part.DefaultPartComponentsBundle
- All Implemented Interfaces:
PartComponentsBundle
The default
components bundle implementation.
A components bundle consists of a set of PartComponent types,
a map of component managers and a specific
PartComponentManagerr instance to be retrieved.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentManager(PartComponent component) Returns the manager for a component type identified by name.Map<Class<? extends PartComponent>, PartComponentManager> Returns the internal map of component managers, indexed by component type.Set<Class<? extends PartComponent>> Returns a set that contains the types of components included in this bundle.voidsetComponentManagers(Map<Class<? extends PartComponent>, PartComponentManager> componentManagers) Sets the map of component managers.
-
Constructor Details
-
DefaultPartComponentsBundle
public DefaultPartComponentsBundle()
-
-
Method Details
-
getComponentTypes
Description copied from interface:PartComponentsBundleReturns a set that contains the types of components included in this bundle.- Specified by:
getComponentTypesin interfacePartComponentsBundle- Returns:
- the set of component types in this bundle
-
getComponentManager
Description copied from interface:PartComponentsBundleReturns the manager for a component type identified by name.- Specified by:
getComponentManagerin interfacePartComponentsBundle- Parameters:
component- the component- Returns:
- the manager for the corresponding component type
-
getComponentManagers
Returns the internal map of component managers, indexed by component type.- Returns:
- the map of component managers
- See Also:
-
setComponentManagers
public void setComponentManagers(Map<Class<? extends PartComponent>, PartComponentManager> componentManagers) Sets the map of component managers.The map needs to use component types as keys, and
PartComponentManagerinstances as values.- Parameters:
componentManagers- the map of component managers
-