Examples of ItemBand


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

    final URL source = getClass().getResource("Prd-4625.prpt");
    final ResourceManager mgr = new ResourceManager();
    mgr.registerDefaults();
    final MasterReport report = (MasterReport) mgr.createDirectly(source, MasterReport.class).getResource();

    final ItemBand itemBand = report.getItemBand();
    final SubReport subReport = (SubReport) itemBand.getElement(0);
    subReport.addPreProcessor(new ValidateChartPreProcessor());

    DebugReportRunner.execGraphics2D(report);
  }
View Full Code Here

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

      }
    }

    //noinspection ConstantConditions
    final GroupDataBody body = (GroupDataBody) innerGroup.getBody();
    final ItemBand band = body.getItemBand();
    band.setLayout("row");
    band.getStyle().setStyleProperty(ElementStyleKeys.INVISIBLE_CONSUMES_SPACE, true);
    band.addElement(createLabel("D: ", 120));
    if (headerPrinted)
    {
      band.addElement(createLabel("Details"));
    }
    for (int d = 0; d < details.size(); d += 1)
    {
      final RelationalDetail relationalDetail = details.get(d);
      band.addElement(createFieldItem(relationalDetail.getField(), null, relationalDetail.getBackground()));
    }
    return rootGroup;
  }
View Full Code Here

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

    final Band landScape = new Band();
    landScape.setName("landscape");
    landScape.addElement(noLate);

    final ItemBand band = new ItemBand();
    band.addElement(landScape);

    assertEquals(noLate, FunctionUtilities.findElement(band, "noLate"));
  }
View Full Code Here

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

    this.template.write(group.getFooter(), getRuntime());
  }

  public void itemsAdvanced(final ReportEvent event)
  {
    ItemBand itemBand = event.getReport().getItemBand();
    if (itemBand != null)
    {
      this.template.write(itemBand, getRuntime());
    }
  }
View Full Code Here

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

  {
    final Renderer renderer = outputFunction.getRenderer();
    outputFunction.updateFooterArea(event);


    final ItemBand itemBand = event.getReport().getItemBand();
    if (itemBand != null)
    {
      renderer.startSection(Renderer.SectionType.NORMALFLOW);
      outputFunction.print(outputFunction.getRuntime(), itemBand);
      outputFunction.addSubReportMarkers(renderer.endSection());
View Full Code Here

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

  }

  public void testStyleInheritance()
  {
    MasterReport report = new MasterReport();
    final ItemBand itemBand = report.getItemBand();

    report.getStyle().setStyleProperty(TextStyleKeys.FONT, "Dudadu");

    ResolverStyleSheet styleSheet = new ResolverStyleSheet();
    new SimpleStyleResolver(true).resolve(itemBand, styleSheet);
View Full Code Here

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

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

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

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

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


    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

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

          body.setDetailsFooter(footer);
          return footer;
        }
        if (insert instanceof ItemBand)
        {
          final ItemBand itemBand = (ItemBand) insert.derive();
          body.setItemBand(itemBand);
          return itemBand;
        }
        if (insert instanceof NoDataBand)
        {
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.