Class JRHyperlinkProducerMapFactory
java.lang.Object
net.sf.jasperreports.engine.export.JRHyperlinkProducerFactory
net.sf.jasperreports.engine.export.JRHyperlinkProducerMapFactory
- All Implemented Interfaces:
Serializable
public class JRHyperlinkProducerMapFactory
extends JRHyperlinkProducerFactory
implements Serializable
Map-based hyperlink producer factory implementation.
This implementation wraps a hyperlink type to hyperling producer instance association map.
- Author:
- Lucian Chirita (lucianc@users.sourceforge.net)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addProducer
(String linkType, JRHyperlinkProducer producer) Adds a hyperlink producer instance associated to a hyperlink type.getHandler
(String linkType) Returns the hyperlink producer associated with a specific hyperlink type.Exposes the type to producer association map.removeProducer
(String linkType) Removes a type to producer association.void
setProducersMap
(Map<String, JRHyperlinkProducer> producers) Sets the type to producer association map.Methods inherited from class net.sf.jasperreports.engine.export.JRHyperlinkProducerFactory
produceHyperlink
-
Constructor Details
-
JRHyperlinkProducerMapFactory
public JRHyperlinkProducerMapFactory()Creates a blank factory.
-
-
Method Details
-
getProducersMap
Exposes the type to producer association map.- Returns:
- the type to producer association map
-
setProducersMap
Sets the type to producer association map.- Parameters:
producers
- bulk type to producer association map- See Also:
-
addProducer
Adds a hyperlink producer instance associated to a hyperlink type.- Parameters:
linkType
- the typeproducer
- the producer
-
removeProducer
Removes a type to producer association.- Parameters:
linkType
- the hyperlink type- Returns:
- the producer which was associated to the type, if any
-
getHandler
Description copied from class:JRHyperlinkProducerFactory
Returns the hyperlink producer associated with a specific hyperlink type.- Specified by:
getHandler
in classJRHyperlinkProducerFactory
- Parameters:
linkType
- the hyperlink type- Returns:
- an associated hyperlink producer, or
null
when none associated
-