Package net.sf.jasperreports.engine

Examples of net.sf.jasperreports.engine.JROrigin


   *
   */
  public Object createObject(Attributes atts)
  {
    return
      new JROrigin(
        atts.getValue(JRXmlConstants.ATTRIBUTE_report),
        atts.getValue(JRXmlConstants.ATTRIBUTE_group),
        BandTypeEnum.getByName(atts.getValue(JRXmlConstants.ATTRIBUTE_band))
        );
  }
View Full Code Here


    if (band == null)
    {
      return null;
    }
   
    JROrigin origin = new JROrigin(null, getName(), bandType);
    JRDesignSection section = new JRDesignSection(origin);
    section.addBand(band);
    return section;
  }
View Full Code Here

    this.originProvider = originProvider;
  }

  protected JROrigin getElementOrigin()
  {
    JROrigin elementOrigin = null;
    if (originProvider != null)
    {
      elementOrigin = originProvider.getOrigin();
    }
    return elementOrigin;
View Full Code Here

   
    background = factory.getBand(jasperReport.getBackground());
    if (background != missingFillBand)
    {
      background.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.BACKGROUND
          )
        );
    }
   
    title = factory.getBand(jasperReport.getTitle());
    if (title != missingFillBand)
    {
      title.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.TITLE
          )
        );
    }

    pageHeader = factory.getBand(jasperReport.getPageHeader());
    if (pageHeader != missingFillBand)
    {
      pageHeader.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.PAGE_HEADER
          )
        );
    }
   
    columnHeader = factory.getBand(jasperReport.getColumnHeader());
    if (columnHeader != missingFillBand)
    {
      columnHeader.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.COLUMN_HEADER
          )
        );
    }
   
    detailSection = factory.getSection(jasperReport.getDetailSection());
    if (detailSection != missingFillSection)
    {
      detailSection.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.DETAIL
          )
        );
    }
   
    columnFooter = factory.getBand(jasperReport.getColumnFooter());
    if (columnFooter != missingFillBand)
    {
      columnFooter.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.COLUMN_FOOTER
          )
        );
    }
   
    pageFooter = factory.getBand(jasperReport.getPageFooter());
    if (pageFooter != missingFillBand)
    {
      pageFooter.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.PAGE_FOOTER
          )
        );
    }
   
    lastPageFooter = factory.getBand(jasperReport.getLastPageFooter());
    if (lastPageFooter != missingFillBand)
    {
      lastPageFooter.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.LAST_PAGE_FOOTER
          )
        );
    }
   
    summary = factory.getBand(jasperReport.getSummary());
    if (summary != missingFillBand && summary.isEmpty())
    {
      summary = missingFillBand;
    }
    if (summary != missingFillBand)
    {
      summary.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.SUMMARY
          )
        );
    }
   
    noData = factory.getBand(jasperReport.getNoData());
    if (noData != missingFillBand)
    {
      noData.setOrigin(
        new JROrigin(
          reportName,
          BandTypeEnum.NO_DATA
          )
        );
    }
View Full Code Here

    firstOccurrences = new HashMap();
  }
 
  public boolean isToExport(JRPrintElement element)
  {
    JROrigin origin = element.getOrigin();

    Boolean keepFirst = (origin == null ? null : (Boolean)originsToExclude.get(origin));
    boolean originMatched = keepFirst != null;

    return
View Full Code Here

            JRProperties.getProperty(propertiesMap, propertySuffix.getKey())
            );
        if (bandType != null)
        {
          filter.addOrigin(
            new JROrigin(
              JRProperties.getProperty(propertiesMap, originFilterPrefix + REPORT_PREFIX + suffix),
              JRProperties.getProperty(propertiesMap, originFilterPrefix + GROUP_PREFIX + suffix),
              bandType
              ),
            keepFirst
View Full Code Here

TOP

Related Classes of net.sf.jasperreports.engine.JROrigin

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.