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

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


      processRootBand(reportDefinition.getDetailsFooter());
      Group g = reportDefinition.getRootGroup();
      while (g != null)
      {
        processRootBand(g.getFooter());
        final GroupBody body = g.getBody();
        if (body instanceof SubGroupBody == false)
        {
          break;
        }
View Full Code Here


    ArrayList relationalGroups = new ArrayList();
    Group group = definition.getRootGroup();
    while (group != null && group instanceof RelationalGroup)
    {
      relationalGroups.add(group);
      final GroupBody body = group.getBody();
      if (body instanceof SubGroupBody)
      {
        final SubGroupBody sgBody = (SubGroupBody) body;
        if (sgBody.getGroup() instanceof RelationalGroup)
        {
View Full Code Here

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

        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

  }

  private String[] computeColumns(final CrosstabGroup crosstabGroup)
  {
    final ArrayList list = new ArrayList();
    GroupBody body = crosstabGroup.getBody();
    while (body != null)
    {
      if (body instanceof SubGroupBody)
      {
        final SubGroupBody sgBody = (SubGroupBody) body;
View Full Code Here

  }

  private Group getInnerMostGroup()
  {
    Group existingGroup = rootGroup;
    GroupBody gb = existingGroup.getBody();
    while (gb != null)
    {
      final int count = gb.getElementCount();
      GroupBody locatedBody = null;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
View Full Code Here

  public int getGroupCount()
  {
    int result = 1; // we always have at least a default-group.

    Group existingGroup = rootGroup;
    GroupBody gb = existingGroup.getBody();
    while (gb != null)
    {
      final int count = gb.getElementCount();
      boolean found = false;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          result += 1;
          gb = existingGroup.getBody();
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.