Package org.pentaho.reporting.engine.classic.core

Examples of org.pentaho.reporting.engine.classic.core.NoDataBand


    super.doneParsing();
    final AbstractReportDefinition report = (AbstractReportDefinition)
        getRootHandler().getHelperObject(ReportParserUtil.HELPER_OBJ_REPORT_NAME);

    final ItemBand itemBand = report.getItemBand();
    final NoDataBand noDataBand = report.getNoDataBand();
    final DetailsFooter detailsFooter = report.getDetailsFooter();
    final DetailsHeader detailsHeader = report.getDetailsHeader();

    if (groupReadHandler != null)
    {
View Full Code Here


          watermarkHandler = new BandTopLevelElementReadHandler(new Watermark(), bandtype);
          return watermarkHandler;
        }
        if ("NO_DATA_BAND".equals(bandtype))
        {
          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
          return noDataBandHandler;
        }
        if ("ITEM_BAND".equals(bandtype))
        {
          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
View Full Code Here

          watermarkHandler = new BandTopLevelElementReadHandler(new Watermark(), bandtype);
          return watermarkHandler;
        }
        if ("NO_DATA_BAND".equals(bandtype))
        {
          noDataBandHandler = new BandTopLevelElementReadHandler(new NoDataBand(), bandtype);
          return noDataBandHandler;
        }
        if ("ITEM_BAND".equals(bandtype))
        {
          itemBandHandler = new BandTopLevelElementReadHandler(new ItemBand(), bandtype);
View Full Code Here

    {
      return new ItemBand();
    }
    if ("no-data-band".equals(elementType))
    {
      return new NoDataBand();
    }
    throw new ParseException("Unregognized root level type");
  }
View Full Code Here

        body.setItemBand(itemBand);
        return itemBand;
      }
      if (insert instanceof NoDataBand)
      {
        final NoDataBand noDataBand = (NoDataBand) insert.derive();
        body.setNoDataBand(noDataBand);
        return noDataBand;
      }
      return null;
    }
View Full Code Here

      return new SectionEditUndoEntry(g.getObjectID(), ModelUtility.findIndexOf(g, newBand), oldBand, newBand);
    }
    if (data instanceof NoDataBand)
    {
      final GroupDataBody g = (GroupDataBody) parent;
      final NoDataBand oldBand = g.getNoDataBand();
      final NoDataBand newBand = new NoDataBand();
      g.setNoDataBand(newBand);
      return new SectionEditUndoEntry(g.getObjectID(), ModelUtility.findIndexOf(g, newBand), oldBand, newBand);
    }
    if (data instanceof DetailsHeader)
    {
View Full Code Here

    super("no-data-band", false);
  }

  public ReportElement create()
  {
    return new NoDataBand();
  }
View Full Code Here

    {
      throw new ParseException("The report is not a relational report, cannot install relational detail sections here");
    }

    final ItemBand ib = originalGroupDataBody.getItemBand();
    final NoDataBand nd = originalGroupDataBody.getNoDataBand();
    final DetailsHeader detailsHeader = originalGroupDataBody.getDetailsHeader();
    final DetailsFooter detailsFooter = originalGroupDataBody.getDetailsFooter();

    final Group newRootGroup = constructRootGroup();
    if (report.getRootGroup() == newRootGroup)
View Full Code Here

    {
      return new BandReadHandler(report.getWatermark());
    }
    else if ("no-data-band".equals(tagName))
    {
      final NoDataBand noDataBand = (NoDataBand) report.getChildElementByType(NoDataBandType.INSTANCE);
      if (noDataBand == null)
      {
        throw new ParseException("Not a relational report");
      }
      return new RootBandReadHandler(noDataBand);
View Full Code Here

    final MasterReport report = new MasterReport();
    report.getReportHeader().addElement(element);

    CrosstabElement ct0 = (CrosstabElement) report.getReportHeader().getElement(0);
    NoDataBand noDataBand0 = ct0.getNoDataBand();
    MasterReport derive = (MasterReport) report.derive();
    CrosstabElement ct1 = (CrosstabElement) derive.getReportHeader().getElement(0);
    NoDataBand noDataBand1 = ct1.getNoDataBand();
    Assert.assertNotSame(noDataBand0, noDataBand1);
  }
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.NoDataBand

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.