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

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


    {
      return;
    }

    final ReportState state = event.getState();
    final Group group = event.getReport().getGroup(state.getCurrentGroupIndex());
    if (getGroup().equals(group.getName()))
    {
      setCount(0);
    }
  }
View Full Code Here


    if (isRootGroup(next))
    {
      throw new ReportProcessingException("This report is invalid. A CR-Row-Group cannot be a root group.");
    }

    final Group parentGroup = next.getReport().getGroup(next.getCurrentGroupIndex());
    if (advanceRequested == false || advanceable == false)
    {
      // This happens for empty - reports. Empty-Reports are never advanceable, therefore we can
      // reach an non-advance state where inner group-footers are printed.
      if (parentGroup instanceof CrosstabRowGroup)
View Full Code Here

  }

  public ProcessState commit(final ProcessState next) throws ReportProcessingException
  {
    final DefaultFlowController fc = next.getFlowController().performAdvance();
    final Group group = next.getReport().getGroup(next.getCurrentGroupIndex());
    final DefaultFlowController cfc = fc.performCommit();
    if (ProcessState.isLastItemInGroup(group, fc.getMasterRow(), cfc.getMasterRow()))
    {
      next.setFlowController(fc);
      next.setAdvanceHandler(EndCrosstabFactHandler.HANDLER);
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

   *
   * @param event the current report event received.
   */
  public void groupStarted(final ReportEvent event)
  {
    final Group group = FunctionUtilities.getCurrentGroup(event);

    if (getParentGroup() != null)
    {
      if (getParentGroup().equals(group.getName()))
      {
        setCount(0);
      }
    }

    if (getGroup() == null)
    {
      // count all groups...
      setCount(getCount() + 1);
    }
    else if (getGroup().equals(group.getName()))
    {
      setCount(getCount() + 1);
    }
  }
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 CrosstabColumnGroupBody)
    {
      next.setAdvanceHandler(BeginCrosstabColumnAxisHandler.HANDLER);
    }
    else if (body instanceof GroupDataBody)
    {
      next.setAdvanceHandler(BeginCrosstabFactHandler.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 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 next) throws ReportProcessingException
  {
    next.setAdvanceHandler(JoinEndGroupHandler.HANDLER);

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

    if (isRootGroup(next))
    {
      throw new ReportProcessingException("This report is invalid. A CR-Col-Group cannot be a root group.");
    }

    final Group parentGroup = next.getReport().getGroup(next.getCurrentGroupIndex());
    if (advanceRequested == false || advanceable == false)
    {
      // This happens for empty - reports. Empty-Reports are never advanceable, therefore we can
      // reach an non-advance state where inner group-footers are printed.
      if (parentGroup instanceof CrosstabRowGroup)
View Full Code Here

    if (isRootGroup(next))
    {
      throw new ReportProcessingException("This report is invalid. A CR-Other-Group cannot be a root group.");
    }

    final Group parentGroup = next.getReport().getGroup(next.getCurrentGroupIndex());
    if (advanceRequested == false || advanceable == false)
    {
      // This happens for empty - reports. Empty-Reports are never advanceable, therefore we can
      // reach an non-advance state where inner group-footers are printed.
      if (parentGroup instanceof CrosstabGroup)
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.