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

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


      else
      {
        // modify the existing group
        configureRelationalGroup(group, groupDefinition, i);

        final GroupBody body = group.getBody();
        if (body instanceof SubGroupBody)
        {
          final SubGroupBody sgBody = (SubGroupBody) body;
          if (sgBody.getGroup() instanceof RelationalGroup)
          {
View Full Code Here


    RelationalGroup retval = null;
    Group existingGroup = definition.getRootGroup();
    while (existingGroup instanceof RelationalGroup)
    {
      retval = (RelationalGroup) existingGroup;
      final GroupBody body = existingGroup.getBody();
      if (body instanceof SubGroupBody == false)
      {
        return retval;
      }
      final SubGroupBody sgb = (SubGroupBody) body;
View Full Code Here

   * @param crosstabGroup
   */
  private void insertCrosstab(final CrosstabGroup crosstabGroup)
  {
    Group existingGroup = definition.getRootGroup();
    GroupBody gb = existingGroup.getBody();
    while (gb instanceof SubGroupBody)
    {
      final SubGroupBody sgb = (SubGroupBody) gb;
      existingGroup = sgb.getGroup();
      gb = existingGroup.getBody();
View Full Code Here

    if (existingGroup instanceof CrosstabGroup)
    {
      return (CrosstabGroup) existingGroup;
    }

    GroupBody gb = existingGroup.getBody();
    while (gb instanceof SubGroupBody)
    {
      final SubGroupBody sgb = (SubGroupBody) gb;
      existingGroup = sgb.getGroup();
      if (existingGroup instanceof CrosstabGroup)
View Full Code Here

          definition.setRootGroup(group);
          group.setBody(new SubGroupBody(insertGroup));
          return;
        }

        final GroupBody body = lastGroup.getBody();
        final SubGroupBody sgb = new SubGroupBody(group);
        lastGroup.setBody(sgb);
        group.setBody(body);
        return;
      }

      final GroupBody body = insertGroup.getBody();
      if (body instanceof SubGroupBody == false)
      {
        final SubGroupBody sgb = new SubGroupBody(group);
        insertGroup.setBody(sgb);
        group.setBody(body);
View Full Code Here

  }

  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(PrintSummaryBeginCrosstabColumnAxisHandler.HANDLER);
    }
    else if (body instanceof CrosstabCellBody)
View Full Code Here

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

      {
        return;
      }
      final RelationalGroup selectedGroup = (RelationalGroup) selectedElement;

      final GroupBody bodyElement = selectedGroup.getBody();
      if (bodyElement instanceof SubGroupBody)
      {
        final SubGroupBody subGroupBodyReportElement = (SubGroupBody) bodyElement;
        final Group oldBodyContent = subGroupBodyReportElement.getGroup();
View Full Code Here

    public void undo(final ReportRenderContext renderContext)
    {
      final RelationalGroup selectedGroup = (RelationalGroup)
          ModelUtility.findElementById(renderContext.getReportDefinition(), target);
      final GroupBody bodyElement = selectedGroup.getBody();
      if (bodyElement instanceof SubGroupBody == false)
      {
        throw new IllegalStateException();
      }
View Full Code Here

    public void redo(final ReportRenderContext renderContext)
    {
      final RelationalGroup selectedGroup = (RelationalGroup)
          ModelUtility.findElementById(renderContext.getReportDefinition(), target);

      final GroupBody bodyElement = selectedGroup.getBody();
      if (bodyElement instanceof SubGroupBody == false)
      {
        throw new IllegalStateException();
      }
View Full Code Here

TOP

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

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.