1 28 package net.sf.jasperreports.engine.export; 29 30 import net.sf.jasperreports.engine.JRPrintHyperlink; 31 32 33 43 public abstract class JRHyperlinkProducerFactory 44 { 45 46 52 public abstract JRHyperlinkProducer getHandler(String linkType); 53 54 55 63 public String produceHyperlink(JRPrintHyperlink hyperlink) 64 { 65 String linkType = hyperlink.getLinkType(); 66 String href = null; 67 if (linkType != null) 68 { 69 JRHyperlinkProducer producer = getHandler(linkType); 70 if (producer != null) 71 { 72 href = producer.getHyperlink(hyperlink); 73 } 74 } 75 return href; 76 } 77 78 } 79 | Popular Tags |