Examples of JRTemplateElement


Examples of net.sf.jasperreports.engine.fill.JRTemplateElement

  protected void cacheInContext(JRPrintElement element)
  {
    if (element instanceof JRTemplatePrintElement)
    {
      JRTemplatePrintElement templateElement = (JRTemplatePrintElement) element;
      JRTemplateElement template = templateElement.getTemplate();
      if (template != null)
      {
        virtualizationContext.cacheTemplate(template);
      }
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.fill.JRTemplateElement

      }
    }

    protected void setExternalizationTemplate(JRTemplatePrintElement templateElement)
    {
      JRTemplateElement template = templateElement.getTemplate();
      if (template != null)
      {
        if (virtualizationContext.hasCachedTemplate(template.getId()))
        {
          String templateId = template.getId();
          JRIdHolderTemplateElement idTemplate = (JRIdHolderTemplateElement) idTemplates.get(templateId);
          if (idTemplate == null)
          {
            idTemplate = new JRIdHolderTemplateElement(templateId);
            idTemplates.put(templateId, idTemplate);
          }
          templateElement.setTemplate(idTemplate);
        }
        else
        {
          if (log.isDebugEnabled())
          {
            log.debug("Template " + template + " having id " + template.getId() + " not found in virtualization context cache");
          }
        }
      }
    }
View Full Code Here

Examples of net.sf.jasperreports.engine.fill.JRTemplateElement

      }
    }

    protected void restoreTemplate(JRTemplatePrintElement element)
    {
      JRTemplateElement template = element.getTemplate();
      if (template != null && template instanceof JRIdHolderTemplateElement)
      {
        JRTemplateElement cachedTemplate = virtualizationContext.getCachedTemplate(template.getId());
        if (cachedTemplate == null)
        {
          throw new JRRuntimeException("Template " + template.getId() + " not found in virtualization context.");
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.