Class DefaultComponentsBundle
java.lang.Object
net.sf.jasperreports.engine.component.DefaultComponentsBundle
- All Implemented Interfaces:
ComponentsBundle
The default
components bundle implementation.
A components bundle consists of a map of component managers.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetComponentManager(Class<? extends Component> componentType) Returns the manager for a component.Map<Class<? extends Component>, ComponentManager> Returns the internal map of component managers, indexed by component name.Returns a set that contains the types of components included in this bundle.voidsetComponentManagers(Map<Class<? extends Component>, ComponentManager> componentManagers) Sets the map of component managers.
-
Constructor Details
-
DefaultComponentsBundle
public DefaultComponentsBundle()
-
-
Method Details
-
getComponentTypes
Description copied from interface:ComponentsBundleReturns a set that contains the types of components included in this bundle.- Specified by:
getComponentTypesin interfaceComponentsBundle- Returns:
- the set of component types in this bundle
-
getComponentManager
Description copied from interface:ComponentsBundleReturns the manager for a component.- Specified by:
getComponentManagerin interfaceComponentsBundle- Parameters:
componentType- the component type- Returns:
- the manager for the corresponding component type
-
getComponentManagers
Returns the internal map of component managers, indexed by component name.- Returns:
- the map of component managers
- See Also:
-
setComponentManagers
public void setComponentManagers(Map<Class<? extends Component>, ComponentManager> componentManagers) Sets the map of component managers.The map needs to use component names as keys, and
ComponentManagerinstances as values.- Parameters:
componentManagers- the map of component managers
-