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

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


    {
      return new WatermarkReadHandler(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 RootLevelBandReadHandler(noDataBand);
View Full Code Here


    {
      return new WatermarkReadHandler(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 RootLevelBandReadHandler(noDataBand);
View Full Code Here

    }
    try
    {
      if (event.getState().getNumberOfRows() == 0)
      {
        final NoDataBand noDataBand = event.getReport().getNoDataBand();
        if (noDataBand != null)
        {
          w.write("<nodata>");
          writeBand(noDataBand);
          w.write("</nodata>");
View Full Code Here

    final OutputProcessorMetaData outputProcessorMetaData =
        next.getFlowController().getReportContext().getOutputProcessorMetaData();
    if (outputProcessorMetaData.isFeatureSupported(OutputProcessorFeature.DESIGNTIME) || next.getNumberOfRows() == 0)
    {
      final NoDataBand childs = next.getReport().getNoDataBand();
      if (childs != null)
      {
        return InlineSubreportProcessor.processInline(next, childs);
      }
    }
View Full Code Here

    }

    if (numberOfRows == 0)
    {
      // ups, we have no data. Lets signal that ...
      final NoDataBand noDataBand = event.getReport().getNoDataBand();
      if (noDataBand != null)
      {
        this.template.write(noDataBand, getRuntime());
      }
    }
View Full Code Here

    }

    if (numberOfRows == 0 || outputFunction.getMetaData().isFeatureSupported(OutputProcessorFeature.DESIGNTIME))
    {
      // ups, we have no data. Lets signal that ...
      final NoDataBand noDataBand = event.getReport().getNoDataBand();
      if (noDataBand != null)
      {
        renderer.startSection(Renderer.SectionType.NORMALFLOW);
        outputFunction.print(outputFunction.getRuntime(), noDataBand);
        outputFunction.addSubReportMarkers(renderer.endSection());
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

    if (groupReadHandler != null)
    {
      final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
      final ItemBand itemBand = dataBody.getItemBand();
      final NoDataBand noDataBand = dataBody.getNoDataBand();
      final DetailsFooter detailsFooter = dataBody.getDetailsFooter();
      final DetailsHeader detailsHeader = dataBody.getDetailsHeader();

      report.setRootGroup(groupReadHandler.getGroup());
View Full Code Here

          body.setItemBand(itemBand);
          return itemBand;
        }
        if (insert instanceof NoDataBand)
        {
          final NoDataBand noDataBand = (NoDataBand) insert.derive();
          body.setNoDataBand(noDataBand);
          return noDataBand;
        }
      }
      catch (CloneNotSupportedException cne)
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.