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

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


    return InlineSubreportProcessor.processInline(next, group.getHeader());
  }

  public ProcessState commit(final ProcessState next) throws ReportProcessingException
  {
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());

    final GroupBody body = group.getBody();
    if (body instanceof CrosstabRowGroupBody)
    {
      next.setAdvanceHandler(BeginCrosstabRowAxisHandler.HANDLER);
    }
    else if (body instanceof CrosstabOtherGroupBody)
    {
      next.setAdvanceHandler(BeginCrosstabOtherAxisHandler.HANDLER);
    }
    else
    {
      throw new IllegalStateException("This report is totally messed up!");
    }

    final RootLevelBand rootLevelBand = group.getHeader();
    return InlineSubreportProcessor.process(next, rootLevelBand);
  }
View Full Code Here


  }

  public void enterGroup()
  {
    currentGroupIndex += 1;
    final Group group = report.getGroup(currentGroupIndex);
    groupStarts.push(new GroupStartRecord(getCurrentDataItem(), group.getName()));

    if (groupStarts.size() != currentGroupIndex + 1)
    {
      throw new IllegalStateException();
    }
View Full Code Here

    {
      return true;
    }

    final DataRow nextView = nextDataRow.getGlobalView();
    Group g = rootGroup;
    while (g != null)
    {
      if (g.isGroupChange(nextView))
      {
        return true;
      }

      // groups are never directly nested into each other. They always have a group-body between each group instance.
      final Section parentSection = g.getParentSection();
      if (parentSection == null)
      {
        return false;
      }
View Full Code Here

      next.setAdvanceHandler(EndGroupHandler.HANDLER);
      return next;
    }

    // This group is not the outer-most group ..
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());
    final DefaultFlowController cfc = fc.performCommit();
    if (ProcessState.isLastItemInGroup(group, fc.getMasterRow(), cfc.getMasterRow()))
    {
      // continue with an other EndGroup-State ...
      next.setAdvanceHandler(EndGroupHandler.HANDLER);
View Full Code Here

   */
  public void groupStarted(final ReportEvent event)
  {
    super.groupStarted(event);

    final Group group = FunctionUtilities.getCurrentGroup(event);

    if (group.getName().equals(getParentGroup()))
    {
      groupStateKey = event.getState().getProcessKey();
      if (FunctionUtilities.isDefinedPrepareRunLevel(this, event))
      {
        result = IntegerCache.getInteger(getCount());
        results.put(globalStateKey, result);
        results.put(groupStateKey, result);
        return;
      }
      else
      {
        // Activate the current group, which was filled in the prepare run.
        result = (Integer) results.get(groupStateKey);
      }
    }

    final String definedGroupName = getGroup();
    if (definedGroupName == null || group.getName().equals(definedGroupName))
    {
      // count all groups...
      if (FunctionUtilities.isDefinedPrepareRunLevel(this, event))
      {
        result = IntegerCache.getInteger(getCount());
View Full Code Here

  public ProcessState advance(final ProcessState state) throws ReportProcessingException
  {
    final ProcessState next = state.deriveForAdvance();
    next.enterGroup();
    next.fireReportEvent();
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());
    return InlineSubreportProcessor.processInline(next, group.getHeader());
  }
View Full Code Here

    return InlineSubreportProcessor.processInline(next, group.getHeader());
  }

  public ProcessState commit(final ProcessState next) throws ReportProcessingException
  {
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());

    final GroupBody body = group.getBody();
    if (body instanceof CrosstabRowGroupBody)
    {
      next.setAdvanceHandler(BeginCrosstabRowAxisHandler.HANDLER);
    }
    else if (body instanceof CrosstabColumnGroupBody)
    {
      next.setAdvanceHandler(BeginCrosstabColumnAxisHandler.HANDLER);
    }
    else
    {
      throw new IllegalStateException("This report is totally messed up!");
    }

    final RootLevelBand rootLevelBand = group.getHeader();
    return InlineSubreportProcessor.process(next, rootLevelBand);

  }
View Full Code Here

  }


  public ProcessState commit(final ProcessState next) throws ReportProcessingException
  {
    final Group rootGroup = next.getReport().getGroup(0);
    if (rootGroup instanceof CrosstabGroup)
    {
      next.setAdvanceHandler(BeginCrosstabHandler.HANDLER);
    }
    else
View Full Code Here

  public ProcessState advance(final ProcessState state) throws ReportProcessingException
  {
    final ProcessState next = state.deriveForAdvance();
    next.fireReportEvent();
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());
    return InlineSubreportProcessor.processInline(next, group.getFooter());
  }
View Full Code Here

  public ProcessState commit(final ProcessState state) throws ReportProcessingException
  {
    state.setAdvanceHandler(JoinEndCrosstabHandler.HANDLER);

    final Group group = state.getReport().getGroup(state.getCurrentGroupIndex());
    final RootLevelBand rootLevelBand = group.getFooter();
    return InlineSubreportProcessor.process(state, rootLevelBand);
  }
View Full Code Here

TOP

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

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.