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

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


    if (cache.length == 0)
    {
      return new RelationalGroup();
    }

    GroupDataBody dataBody = null;

    final Group rootGroup = cache[0];
    Group currentGroup = rootGroup;
    for (int i = 1; i < cache.length; i++)
    {
View Full Code Here


            " new field.");
  }

  public void installIntoReport(final AbstractReportDefinition report) throws ParseException
  {
    final GroupDataBody originalGroupDataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
    if (originalGroupDataBody == null)
    {
      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)
    {
      return;
    }

    report.setRootGroup(newRootGroup);
    final GroupDataBody groupDataBody = (GroupDataBody) newRootGroup.getChildElementByType(GroupDataBodyType.INSTANCE);
    if (groupDataBody == null)
    {
      return;
    }

    groupDataBody.setDetailsFooter(detailsFooter);
    groupDataBody.setDetailsHeader(detailsHeader);
    groupDataBody.setItemBand(ib);
    groupDataBody.setNoDataBand(nd);
  }
View Full Code Here

        innerGroup = g;
      }
    }

    //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)
    {
View Full Code Here

  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getItemBand();
    }
    return null;
  }
View Full Code Here

  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getDetailsHeader();
    }
    return null;
  }
View Full Code Here

  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getDetailsFooter();
    }
    return null;
  }
View Full Code Here

  {
    final Group group = getInnerMostGroup();
    final GroupBody body = group.getBody();
    if (body instanceof GroupDataBody)
    {
      final GroupDataBody dataBody = (GroupDataBody) body;
      return dataBody.getNoDataBand();
    }
    return null;
  }
View Full Code Here

  protected void generate(final AbstractReportDefinition definition,
                          final DefaultFlowController flowController)
      throws ReportProcessingException
  {
    final GroupDataBody groupDataBody = (GroupDataBody) definition.getChildElementByType(GroupDataBodyType.INSTANCE);
    if (groupDataBody == null)
    {
      return;
    }

    final Band details = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getItemBand());
    final Band header = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getDetailsHeader());
    final Band footer = AutoGeneratorUtility.findGeneratedContent(groupDataBody.getDetailsFooter());

    final ProcessingContext reportContext = flowController.getReportContext();
    final DefaultDataAttributeContext dac = new DefaultDataAttributeContext
        (reportContext.getOutputProcessorMetaData(), reportContext.getResourceBundleFactory().getLocale());
View Full Code Here

    {
      report.setReportHeader((ReportHeader) reportHeaderHandler.getBand());
    }
    if (itemBandHandler != null)
    {
      final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
      dataBody.setItemBand((ItemBand) itemBandHandler.getBand());
    }
    if (noDataBandHandler != null)
    {
      final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
      dataBody.setNoDataBand((NoDataBand) noDataBandHandler.getBand());
    }
    if (pageFooterHandler != null)
    {
      report.setPageFooter((PageFooter) pageFooterHandler.getBand());
    }
View Full Code Here

    {
      report.setReportHeader((ReportHeader) reportHeaderHandler.getBand());
    }
    if (itemBandHandler != null)
    {
      final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
      dataBody.setItemBand((ItemBand) itemBandHandler.getBand());
    }
    if (noDataBandHandler != null)
    {
      final GroupDataBody dataBody = (GroupDataBody) report.getChildElementByType(GroupDataBodyType.INSTANCE);
      dataBody.setNoDataBand((NoDataBand) noDataBandHandler.getBand());
    }
    if (pageFooterHandler != null)
    {
      report.setPageFooter((PageFooter) pageFooterHandler.getBand());
    }
View Full Code Here

TOP

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

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.