Package net.sf.jasperreports.engine.part
Class DefaultPartComponentsBundle
- java.lang.Object
-
- net.sf.jasperreports.engine.part.DefaultPartComponentsBundle
-
- All Implemented Interfaces:
PartComponentsBundle
public class DefaultPartComponentsBundle extends Object implements PartComponentsBundle
The defaultcomponents bundle
implementation.A components bundle consists of a set of
PartComponent
types, a map ofcomponent managers
and a specificPartComponentManagerr
instance to be retrieved.- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
-
-
Constructor Summary
Constructors Constructor Description DefaultPartComponentsBundle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<PartComponentManager>
getComponentManager(PartComponent component)
Returns the manager for a component type identified by name.Map<Class<? extends PartComponent>,PartComponentManager>
getComponentManagers()
Returns the internal map of component managers, indexed by component type.Set<Class<? extends PartComponent>>
getComponentTypes()
Returns a set that contains the types of components included in this bundle.void
setComponentManagers(Map<Class<? extends PartComponent>,PartComponentManager> componentManagers)
Sets the map of component managers.
-
-
-
Method Detail
-
getComponentTypes
public Set<Class<? extends PartComponent>> getComponentTypes()
Description copied from interface:PartComponentsBundle
Returns a set that contains the types of components included in this bundle.- Specified by:
getComponentTypes
in interfacePartComponentsBundle
- Returns:
- the set of component types in this bundle
-
getComponentManager
public Optional<PartComponentManager> getComponentManager(PartComponent component)
Description copied from interface:PartComponentsBundle
Returns the manager for a component type identified by name.- Specified by:
getComponentManager
in interfacePartComponentsBundle
- Parameters:
component
- the component- Returns:
- the manager for the corresponding component type
-
getComponentManagers
public Map<Class<? extends PartComponent>,PartComponentManager> getComponentManagers()
Returns the internal map of component managers, indexed by component type.- Returns:
- the map of component managers
- See Also:
setComponentManagers(Map)
-
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
PartComponentManager
instances as values.- Parameters:
componentManagers
- the map of component managers
-
-