Examples of SubGroupBody


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

    super("sub-group-body");
  }

  protected Element createElement(final String elementType)
  {
    return new SubGroupBody();
  }
View Full Code Here

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

   */
  protected void doneParsing() throws SAXException
  {
    super.doneParsing();

    final SubGroupBody body = (SubGroupBody) getElement();
    if (groupReadHandler != null)
    {
      body.setGroup(groupReadHandler.getGroup());
    }
    else if (crosstabGroupReadHandler != null)
    {
      body.setGroup(crosstabGroupReadHandler.getGroup());
    }
    else
    {
      throw new ParseException("Madatory element 'group' or 'crosstab' was not found.");
    }
View Full Code Here

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

        if (body instanceof SubGroupBody == false)
        {
          break;
        }

        final SubGroupBody sgb = (SubGroupBody) body;
        g = sgb.getGroup();
      }
      state = state.getParentSubReportState();
    }

  }
View Full Code Here

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

      else
      {
        final Section parentSection = crosstabGroup.getParentSection();
        if (parentSection instanceof SubGroupBody)
        {
          final SubGroupBody sgb = (SubGroupBody) parentSection;
          sgb.setGroup(new RelationalGroup());
        }
      }
    }

  }
View Full Code Here

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

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

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

        configureRelationalGroup(group, groupDefinition);

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

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

      final GroupBody body = existingGroup.getBody();
      if (body instanceof SubGroupBody == false)
      {
        return retval;
      }
      final SubGroupBody sgb = (SubGroupBody) body;
      existingGroup = sgb.getGroup();
    }

    return retval;
  }
View Full Code Here

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

  {
    Group existingGroup = definition.getRootGroup();
    GroupBody gb = existingGroup.getBody();
    while (gb instanceof SubGroupBody)
    {
      final SubGroupBody sgb = (SubGroupBody) gb;
      existingGroup = sgb.getGroup();
      gb = existingGroup.getBody();
    }
    existingGroup.setBody(new SubGroupBody(crosstabGroup));
  }
View Full Code Here

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

    }

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

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

      if (insertGroup instanceof RelationalGroup == false)
      {
        if (lastGroup == null)
        {
          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);
        return;
      }

      lastGroup = insertGroup;
      final SubGroupBody sgb = (SubGroupBody) body;
      insertGroup = sgb.getGroup();
    }
  }
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.