1 28 package net.sf.jasperreports.engine.export; 29 30 import java.io.Serializable ; 31 import java.util.HashMap ; 32 import java.util.Map ; 33 34 import net.sf.jasperreports.engine.JRConstants; 35 36 37 47 public class JRHyperlinkProducerMapFactory extends JRHyperlinkProducerFactory implements Serializable 48 { 49 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 private Map producers; 53 54 55 58 public JRHyperlinkProducerMapFactory() 59 { 60 producers = new HashMap (); 61 } 62 63 64 69 public Map getProducersMap() 70 { 71 return producers; 72 } 73 74 75 81 public void setProducersMap(Map producers) 82 { 83 this.producers = producers; 84 } 85 86 87 93 public void addProducer(String linkType, JRHyperlinkProducer producer) 94 { 95 producers.put(linkType, producer); 96 } 97 98 99 105 public JRHyperlinkProducer removeProducer(String linkType) 106 { 107 return (JRHyperlinkProducer) producers.remove(linkType); 108 } 109 110 111 public JRHyperlinkProducer getHandler(String linkType) 112 { 113 return (JRHyperlinkProducer) producers.get(linkType); 114 } 115 116 } 117 | Popular Tags |