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

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


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

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


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

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

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

        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

          final CrosstabOtherGroup crosstabOtherGroup = ((CrosstabOtherGroupBody)crosstabGroupBody).getGroup();
          buildCrosstabOtherRowGroupBands(crosstabOtherGroup);
        }
        else if (crosstabGroupBody instanceof CrosstabRowGroupBody)
        {
          final CrosstabRowGroupBody crosstabRowGroupBody = (CrosstabRowGroupBody)crosstabGroup.getBody();
          buildCrosstabRowGroupBands(crosstabRowGroupBody);
        }

        // Create an array of all elements.
        allElementsList.addAll(otherGroupBodyList);
View Full Code Here

      {
        // execution order is important here.
        // first unlink the old root-group by setting a new one ...
        final CrosstabRowGroup selectedGroup = (CrosstabRowGroup) selectedElement;
        final GroupBody oldGroupBody = selectedGroup.getBody();
        final CrosstabRowGroupBody newGroupBody = new CrosstabRowGroupBody(newGroup);
        selectedGroup.setBody(newGroupBody);
        newGroup.setBody(oldGroupBody);
       
        activeContext.getUndo().addChange(ActionMessages.getString("InsertCrosstabRowGroupAction.UndoName"),
            new InsertGroupBodyOnGroupUndoEntry(selectedGroup.getObjectID(), oldGroupBody, newGroupBody));
View Full Code Here

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

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

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

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

      }

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

  private static CrosstabGroup createCrosstab()
  {
    final CrosstabGroup crosstabGroup = new CrosstabGroup();

    final CrosstabRowGroupBody rowBody = (CrosstabRowGroupBody) crosstabGroup.getBody();
    final CrosstabRowGroup rowGroup = rowBody.getGroup();
    rowGroup.setField("Rows");
    rowGroup.getTitleHeader().addElement(createDataItem("Rows"));
    rowGroup.getHeader().addElement(createFieldItem("Rows"));

    final CrosstabColumnGroupBody columnGroupBody = (CrosstabColumnGroupBody) rowGroup.getBody();
View Full Code Here

TOP

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

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.