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

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


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

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


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

    final CrosstabColumnGroupBody body = (CrosstabColumnGroupBody) getElement();
    if (groupColumnReadHandler != null)
    {
      body.setGroup((CrosstabColumnGroup) groupColumnReadHandler.getGroup());
    }
    else
    {
      throw new ParseException("A 'crosstab-column-group' element must be present");
    }
View Full Code Here

      if (groupDefinition.getGroupName() != null)
      {
        relationalGroup.setName(groupDefinition.getGroupName());
      }
      configureCrosstabColumnGroup(relationalGroup, groupDefinition);
      insertGroup.setBody(new CrosstabColumnGroupBody(relationalGroup));
      insertGroup = relationalGroup;
    }

    final Band itemBand = AutoGeneratorUtility.findGeneratedContent(definition.getItemBand());
    if (itemBand == null)
View Full Code Here

        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

      if (selectedElement instanceof CrosstabColumnGroup)
      {
        final CrosstabColumnGroup selectedGroup = (CrosstabColumnGroup) selectedElement;
        final GroupBody oldGroupBody = selectedGroup.getBody();
        final CrosstabColumnGroupBody newGroupBody = new CrosstabColumnGroupBody(newGroup);
        selectedGroup.setBody(newGroupBody);
        newGroup.setBody(oldGroupBody);
        activeContext.getUndo().addChange(ActionMessages.getString("InsertCrosstabColumnGroupAction.UndoName"),
            new InsertGroupBodyOnGroupUndoEntry(selectedGroup.getObjectID(), oldGroupBody, newGroupBody));
      }
View Full Code Here

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

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

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

    final CrosstabColumnGroupBody body = getElement();
    if (groupColumnReadHandler != null)
    {
      body.setGroup(groupColumnReadHandler.getElement());
    }
    else
    {
      throw new ParseException("A 'crosstab-column-group' element must be present");
    }
View Full Code Here

      }

      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

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

    final CrosstabColumnGroupBody columnGroupBody = (CrosstabColumnGroupBody) rowGroup.getBody();
    final CrosstabColumnGroup columnGroup = columnGroupBody.getGroup();
    columnGroup.setField("Cols");
    columnGroup.getTitleHeader().addElement(createDataItem("Cols"));
    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
View Full Code Here

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

    final CrosstabColumnGroupBody columnGroupBody = (CrosstabColumnGroupBody) rowGroup.getBody();
    final CrosstabColumnGroup columnGroup = columnGroupBody.getGroup();
    columnGroup.setField("Cols");
    columnGroup.getTitleHeader().addElement(createDataItem("Cols"));
    columnGroup.getHeader().addElement(createFieldItem("Cols"));

    final CrosstabCellBody body = (CrosstabCellBody) columnGroup.getBody();
View Full Code Here

TOP

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

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.