Examples of CrosstabOtherGroup


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

    super("crosstab-other-group", true);
  }

  public ReportElement create()
  {
    return new CrosstabOtherGroup();
  }
View Full Code Here

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

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

    final CrosstabOtherGroup group = getElement();
    if (fieldReadHandler != null)
    {
      group.setField(fieldReadHandler.getResult());
    }
    if (headerReadHandler != null)
    {
      group.setHeader(headerReadHandler.getElement());
    }
    if (footerReadHandler != null)
    {
      group.setFooter(footerReadHandler.getElement());
    }
    if (rowGroupBodyReadHandler != null)
    {
      group.setBody(rowGroupBodyReadHandler.getElement());
    }
    else if (otherGroupBodyReadHandler != null)
    {
      group.setBody(otherGroupBodyReadHandler.getElement());
    }
  }
View Full Code Here

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

  public void groupStarted(final DefaultOutputFunction outputFunction,
                           final ReportEvent event) throws ReportProcessingException
  {
    final int gidx = event.getState().getCurrentGroupIndex();
    final CrosstabOtherGroup group = (CrosstabOtherGroup) event.getReport().getGroup(gidx);
    final Band b = group.getHeader();
    final GroupBody groupBody = group.getBody();

    outputFunction.updateFooterArea(event);

    final Renderer renderer = outputFunction.getRenderer();
    renderer.startGroup(group, event.getState().getPredictedStateCount());
View Full Code Here

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

  public void groupFinished(final DefaultOutputFunction outputFunction,
                            final ReportEvent event) throws ReportProcessingException
  {
    final int gidx = event.getState().getCurrentGroupIndex();
    final CrosstabOtherGroup g = (CrosstabOtherGroup) event.getReport().getGroup(gidx);
    final Band b = g.getFooter();

    final Renderer renderer = outputFunction.getRenderer();
    outputFunction.updateFooterArea(event);

    renderer.startSection(Renderer.SectionType.NORMALFLOW);
View Full Code Here

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

    {
      if (body instanceof CrosstabOtherGroupBody)
      {
        otherGroups += 1;
        final CrosstabOtherGroupBody cogb = (CrosstabOtherGroupBody) body;
        final CrosstabOtherGroup otherGroup = cogb.getGroup();
        list.add(otherGroup.getField());
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabRowGroupBody)
      {
        rowGroups += 1;
        final CrosstabRowGroupBody cogb = (CrosstabRowGroupBody) body;
        final CrosstabRowGroup otherGroup = cogb.getGroup();
        list.add(otherGroup.getField());
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabColumnGroupBody)
      {
        columnGroups += 1;
        final CrosstabColumnGroupBody cogb = (CrosstabColumnGroupBody) body;
        final CrosstabColumnGroup otherGroup = cogb.getGroup();
        list.add(otherGroup.getField());
        body = otherGroup.getBody();
        continue;
      }

      break;
    }
View Full Code Here

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

      {
        continue;
      }

      // create a new group and insert it at the end
      final CrosstabOtherGroup relationalGroup = new CrosstabOtherGroup();
      if (groupDefinition.getGroupName() != null)
      {
        relationalGroup.setName(groupDefinition.getGroupName());
      }
      configureCrosstabOtherGroup(relationalGroup, groupDefinition);
      insertGroup.setBody(new CrosstabOtherGroupBody(relationalGroup));
      insertGroup = relationalGroup;
    }

    for (int i = 0; i < groupDefinitions.length; i++)
    {
      final GroupDefinition groupDefinition = groupDefinitions[i];
      if (GroupType.CT_ROW.equals(groupDefinition.getGroupType()) == false)
      {
        continue;
      }

      // create a new group and insert it at the end
      final CrosstabRowGroup relationalGroup = new CrosstabRowGroup();
      if (groupDefinition.getGroupName() != null)
      {
        relationalGroup.setName(groupDefinition.getGroupName());
      }
      configureCrosstabRowGroup(relationalGroup, groupDefinition);
      insertGroup.setBody(new CrosstabRowGroupBody(relationalGroup));
      insertGroup = relationalGroup;
    }

    for (int i = 0; i < groupDefinitions.length; i++)
    {
      final GroupDefinition groupDefinition = groupDefinitions[i];
      if (GroupType.CT_COLUMN.equals(groupDefinition.getGroupType()) == false)
      {
        continue;
      }

      // create a new group and insert it at the end
      final CrosstabColumnGroup relationalGroup = new CrosstabColumnGroup();
      if (groupDefinition.getGroupName() != null)
      {
        relationalGroup.setName(groupDefinition.getGroupName());
      }
      configureCrosstabColumnGroup(relationalGroup, groupDefinition);
      insertGroup.setBody(new CrosstabColumnGroupBody(relationalGroup));
      insertGroup = relationalGroup;
    }
View Full Code Here

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

  private GroupBody createOtherGroups(GroupBody body)
  {
    for (int other = others.size() - 1; other >= 0; other -= 1)
    {
      final String column = others.get(other);
      final CrosstabOtherGroup columnGroup = createOtherGroup(body, column);

      body = new CrosstabOtherGroupBody(columnGroup);
    }
    return body;
  }
View Full Code Here

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

    return body;
  }

  protected CrosstabOtherGroup createOtherGroup(final GroupBody body, final String column)
  {
    final CrosstabOtherGroup columnGroup = new CrosstabOtherGroup(body);
    columnGroup.setField(column);
    columnGroup.getHeader().addElement(createFieldItem(column));
    return columnGroup;
  }
View Full Code Here

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

      }

      if (body instanceof CrosstabOtherGroupBody)
      {
        final CrosstabOtherGroupBody cogb = (CrosstabOtherGroupBody) body;
        final CrosstabOtherGroup otherGroup = cogb.getGroup();
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabRowGroupBody)
      {
        final CrosstabRowGroupBody cogb = (CrosstabRowGroupBody) body;
        final CrosstabRowGroup otherGroup = cogb.getGroup();
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabColumnGroupBody)
      {
        final CrosstabColumnGroupBody cogb = (CrosstabColumnGroupBody) body;
        final CrosstabColumnGroup otherGroup = cogb.getGroup();
        if (otherGroup.getField() != null)
        {
          list.add(otherGroup.getField());
        }
        body = otherGroup.getBody();
        continue;
      }

      break;
    }
View Full Code Here

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

    while (body != null)
    {
      if (body instanceof CrosstabOtherGroupBody)
      {
        final CrosstabOtherGroupBody cogb = (CrosstabOtherGroupBody) body;
        final CrosstabOtherGroup otherGroup = cogb.getGroup();
        if (otherGroup.getField() != null)
        {
          list.add(otherGroup.getField());
        }
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabRowGroupBody)
      {
        final CrosstabRowGroupBody cogb = (CrosstabRowGroupBody) body;
        final CrosstabRowGroup otherGroup = cogb.getGroup();
        if (otherGroup.getField() != null)
        {
          list.add(otherGroup.getField());
        }
        body = otherGroup.getBody();
        continue;
      }

      if (body instanceof CrosstabColumnGroupBody)
      {
        final CrosstabColumnGroupBody cogb = (CrosstabColumnGroupBody) body;
        final CrosstabColumnGroup otherGroup = cogb.getGroup();
        body = otherGroup.getBody();
        continue;
      }

      break;
    }
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.