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

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


    super("group-data-body");
  }

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


   * @throws SAXException if there is a parsing error.
   */
  protected void doneParsing() throws SAXException
  {
    super.doneParsing();
    final GroupDataBody body = (GroupDataBody) getElement();
    if (noDataBandReadHandler != null)
    {
      body.setNoDataBand((NoDataBand) noDataBandReadHandler.getElement());
    }
    if (itemBandReadHandler != null)
    {
      body.setItemBand((ItemBand) itemBandReadHandler.getElement());
    }
    if (detailsFooterBandReadHandler != null)
    {
      body.setDetailsFooter((DetailsFooter) detailsFooterBandReadHandler.getElement());
    }
    if (detailsHeaderBandReadHandler != null)
    {
      body.setDetailsHeader((DetailsHeader) detailsHeaderBandReadHandler.getElement());
    }
  }
View Full Code Here

   * @return The item band.
   */
  public ItemBand getItemBand()
  {
    final Group group = getInnerMostGroup();
    final GroupDataBody dataBody = (GroupDataBody) group.getBody();
    return dataBody.getItemBand();
  }
View Full Code Here

   * @return The details header band.
   */
  public DetailsHeader getDetailsHeader()
  {
    final Group group = getInnerMostGroup();
    final GroupDataBody dataBody = (GroupDataBody) group.getBody();
    return dataBody.getDetailsHeader();
  }
View Full Code Here

   * @return The details header  band.
   */
  public DetailsFooter getDetailsFooter()
  {
    final Group group = getInnerMostGroup();
    final GroupDataBody dataBody = (GroupDataBody) group.getBody();
    return dataBody.getDetailsFooter();
  }
View Full Code Here

   * @return The no-data band.
   */
  public NoDataBand getNoDataBand()
  {
    final Group group = getInnerMostGroup();
    final GroupDataBody dataBody = (GroupDataBody) group.getBody();
    return dataBody.getNoDataBand();
  }
View Full Code Here

      subGroupBody.setGroup(groupReadHandler.getGroup());
      group.setBody(subGroupBody);
    }
    else
    {
      group.setBody(new GroupDataBody());
    }

    this.group = group;
  }
View Full Code Here

      }

      final Element bodyElement = group.getBody();
      if (bodyElement instanceof GroupDataBody)
      {
        final GroupDataBody body = (GroupDataBody) bodyElement;
        if (ModelUtility.isHideInLayoutGui(body.getDetailsHeader()) == false)
        {
          rootBandComponents.add(new RootBandRenderer(body.getDetailsHeader(), renderContext));
        }
        if (ModelUtility.isHideInLayoutGui(body.getNoDataBand()) == false)
        {
          rootBandComponents.add(new RootBandRenderer(body.getNoDataBand(), renderContext));
        }
        if (ModelUtility.isHideInLayoutGui(body.getItemBand()) == false)
        {
          rootBandComponents.add(new RootBandRenderer(body.getItemBand(), renderContext));
        }
        if (ModelUtility.isHideInLayoutGui(body.getDetailsFooter()) == false)
        {
          rootBandComponents.add(new RootBandRenderer(body.getDetailsFooter(), renderContext));
        }
        break;
      }
      else if (group instanceof CrosstabGroup)
      {
View Full Code Here

  }

  public static GroupDataBody installCrosstabIntoLastGroup(final RelationalGroup selectedGroup,
                                                           final CrosstabGroup newGroup)
  {
    final GroupDataBody oldBody = (GroupDataBody) selectedGroup.getBody();
    // install the new crosstab group into the group
    selectedGroup.setBody(new SubGroupBody(newGroup));
    return oldBody;
  }
View Full Code Here

        activeContext.getUndo().addChange(ActionMessages.getString("InsertGroupAction.UndoName"),
            new InsertGroupOnGroupUndoEntry(selectedGroup.getObjectID(), oldBodyContent, newGroup));
      }
      else if (bodyElement instanceof GroupDataBody)
      {
        final GroupDataBody oldBody = (GroupDataBody) bodyElement;
        selectedGroup.setBody(new SubGroupBody(newGroup));
        newGroup.setBody(oldBody);
        activeContext.getUndo().addChange(ActionMessages.getString("InsertGroupAction.UndoName"),
            new InsertGroupOnDetailsUndoEntry(selectedGroup.getObjectID(), newGroup));
      }
View Full Code Here

TOP

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

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.