Examples of CrosstabOtherGroupBody


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

    super("crosstab-other-group-body");
  }

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

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

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

    final CrosstabOtherGroupBody body = (CrosstabOtherGroupBody) getElement();
    if (groupOtherReadHandler != null)
    {
      body.setGroup((CrosstabOtherGroup) groupOtherReadHandler.getGroup());
    }
    else
    {
      throw new ParseException("Either a 'crosstab-other-group' element must be present");
    }
View Full Code Here

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

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

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

        continue;
      }

      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();
        if (otherGroup.getField() != null)
        {
          list.add(otherGroup.getField());
        }
        body = otherGroup.getBody();
View Full Code Here

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

        group = body.getGroup();
        continue;
      }
      else if (bodyElement instanceof CrosstabOtherGroupBody)
      {
        final CrosstabOtherGroupBody body = (CrosstabOtherGroupBody) bodyElement;
        group = body.getGroup();
        continue;
      }
      group = null;
    }
    return list.toArray(new Group[list.size()]);
View Full Code Here

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

      {
        // execution order is important here.
        // first unlink the old root-group by setting a new one ...
        final CrosstabOtherGroup selectedGroup = (CrosstabOtherGroup) selectedElement;
        final GroupBody oldGroupBody = selectedGroup.getBody();
        final CrosstabOtherGroupBody newGroupBody = new CrosstabOtherGroupBody(newGroup);
        selectedGroup.setBody(newGroupBody);
        newGroup.setBody(oldGroupBody);

        activeContext.getUndo().addChange(ActionMessages.getString("InsertCrosstabOtherGroupAction.UndoName"),
            new InsertGroupBodyOnGroupUndoEntry(selectedGroup.getObjectID(), oldGroupBody, newGroupBody));
      }
      if (selectedElement instanceof CrosstabGroup)
      {
        final CrosstabGroup selectedGroup = (CrosstabGroup) selectedElement;
        final GroupBody oldGroupBody = selectedGroup.getBody();
        final CrosstabOtherGroupBody newGroupBody = new CrosstabOtherGroupBody(newGroup);
        selectedGroup.setBody(newGroupBody);
        newGroup.setBody(oldGroupBody);

        activeContext.getUndo().addChange(ActionMessages.getString("InsertCrosstabOtherGroupAction.UndoName"),
            new InsertGroupBodyOnGroupUndoEntry(selectedGroup.getObjectID(), oldGroupBody, newGroupBody));
View Full Code Here

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

          g = sgb.getGroup();
        }
        else if (body instanceof CrosstabOtherGroupBody)
        {
          groupCounter += 1;
          final CrosstabOtherGroupBody sgb = (CrosstabOtherGroupBody) body;
          g = sgb.getGroup();
        }
        else
        {
          break;
        }
View Full Code Here

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

          g = sgb.getGroup();
        }
        else if (body instanceof CrosstabOtherGroupBody)
        {
          groupCounter += 1;
          final CrosstabOtherGroupBody sgb = (CrosstabOtherGroupBody) body;
          g = sgb.getGroup();
        }
        else
        {
          break;
        }
View Full Code Here

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

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

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

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

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

    final CrosstabOtherGroupBody body = getElement();
    if (groupOtherReadHandler != null)
    {
      body.setGroup(groupOtherReadHandler.getElement());
    }
    else
    {
      throw new ParseException("Either a 'crosstab-other-group' element must be present");
    }
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.