Package net.sf.jasperreports.engine.base

Examples of net.sf.jasperreports.engine.base.JRBasePrintHyperlink


    if (hyperlink == null)
    {
      return null;
    }
   
    JRBasePrintHyperlink printHyperlink = new JRBasePrintHyperlink();
    printHyperlink.setLinkType(hyperlink.getLinkType());
    printHyperlink.setLinkTarget(hyperlink.getLinkTarget());
    printHyperlink.setHyperlinkReference((String) expressionEvaluator.evaluate(hyperlink.getHyperlinkReferenceExpression(), evaluationType));
    printHyperlink.setHyperlinkAnchor((String) expressionEvaluator.evaluate(hyperlink.getHyperlinkAnchorExpression(), evaluationType));
    printHyperlink.setHyperlinkPage((Integer) expressionEvaluator.evaluate(hyperlink.getHyperlinkPageExpression(), evaluationType));
    printHyperlink.setHyperlinkTooltip((String) expressionEvaluator.evaluate(hyperlink.getHyperlinkTooltipExpression(), evaluationType));
    printHyperlink.setHyperlinkParameters(evaluateHyperlinkParameters(hyperlink, expressionEvaluator, evaluationType));
    return printHyperlink;
  }
View Full Code Here


          {
            RunElement runElement = (RunElement)element;
            AttributeSet attrSet = (AttributeSet)runElement.getAttribute(Tag.A);
            if (attrSet != null)
            {
              hyperlink = new JRBasePrintHyperlink();
              hyperlink.setHyperlinkType(HyperlinkTypeEnum.REFERENCE);
              hyperlink.setHyperlinkReference((String)attrSet.getAttribute(HTML.Attribute.HREF));
              hyperlink.setLinkTarget((String)attrSet.getAttribute(HTML.Attribute.TARGET));
            }
          }
View Full Code Here

        {
          NamedNodeMap nodeAttrs = node.getAttributes();

          Map styleAttrs = new HashMap();

          hyperlink = new JRBasePrintHyperlink();
          hyperlink.setHyperlinkType(HyperlinkTypeEnum.REFERENCE);
          styleAttrs.put(JRTextAttribute.HYPERLINK, hyperlink);
         
          if (nodeAttrs.getNamedItem(ATTRIBUTE_href) != null)
          {
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.base.JRBasePrintHyperlink

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.