Class JRHyperlinkTargetProducerMapFactory
- java.lang.Object
-
- net.sf.jasperreports.engine.export.JRHyperlinkTargetProducerFactory
-
- net.sf.jasperreports.engine.export.JRHyperlinkTargetProducerMapFactory
-
- All Implemented Interfaces:
Serializable
public class JRHyperlinkTargetProducerMapFactory extends JRHyperlinkTargetProducerFactory implements Serializable
Map-based hyperlink target producer factory implementation.This implementation wraps a hyperlink target to hyperling target producer instance association map.
- Author:
- Teodor Danciu (teodord@users.sourceforge.net)
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description JRHyperlinkTargetProducerMapFactory()
Creates a blank factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addProducer(String linkTarget, JRHyperlinkTargetProducer producer)
Adds a hyperlink target producer instance associated to a hyperlink target.JRHyperlinkTargetProducer
getHyperlinkTargetProducer(String linkTarget)
Returns the hyperlink target producer associated with a specific hyperlink target.Map<String,JRHyperlinkTargetProducer>
getProducersMap()
Exposes the target to producer association map.JRHyperlinkTargetProducer
removeProducer(String linkTarget)
Removes a target to producer association.void
setProducersMap(Map<String,JRHyperlinkTargetProducer> producers)
Sets the target to producer association map.-
Methods inherited from class net.sf.jasperreports.engine.export.JRHyperlinkTargetProducerFactory
produceHyperlinkTarget
-
-
-
-
Method Detail
-
getProducersMap
public Map<String,JRHyperlinkTargetProducer> getProducersMap()
Exposes the target to producer association map.- Returns:
- the target to producer association map
-
setProducersMap
public void setProducersMap(Map<String,JRHyperlinkTargetProducer> producers)
Sets the target to producer association map.- Parameters:
producers
- bulk target to producer association map- See Also:
getProducersMap()
-
addProducer
public void addProducer(String linkTarget, JRHyperlinkTargetProducer producer)
Adds a hyperlink target producer instance associated to a hyperlink target.- Parameters:
linkTarget
- the targetproducer
- the producer
-
removeProducer
public JRHyperlinkTargetProducer removeProducer(String linkTarget)
Removes a target to producer association.- Parameters:
linkTarget
- the hyperlink target- Returns:
- the producer which was associated to the target, if any
-
getHyperlinkTargetProducer
public JRHyperlinkTargetProducer getHyperlinkTargetProducer(String linkTarget)
Description copied from class:JRHyperlinkTargetProducerFactory
Returns the hyperlink target producer associated with a specific hyperlink target.- Specified by:
getHyperlinkTargetProducer
in classJRHyperlinkTargetProducerFactory
- Parameters:
linkTarget
- the hyperlink target- Returns:
- an associated hyperlink target producer, or
null
when none associated
-
-