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

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


      otherGroupBodyList.add(element);
    }

    // We got a Other Group header.  If we have multiple group headers, we recurse.
    // Otherwise we can now get the elements from other parts of the crosstab
    final GroupBody groupBody = crosstabOtherGroup.getBody();
    if (groupBody instanceof CrosstabOtherGroupBody)
    {
      buildCrosstabOtherRowGroupBands(((CrosstabOtherGroupBody)groupBody).getGroup());
    }
    else if (groupBody instanceof CrosstabRowGroupBody)
View Full Code Here


      {
        return;
      }
      final RelationalGroup selectedGroup = (RelationalGroup) selectedElement;

      final GroupBody bodyElement = selectedGroup.getBody();
      if (bodyElement instanceof SubGroupBody)
      {
        final SubGroupBody subGroupBodyReportElement = (SubGroupBody) bodyElement;
        final Group oldBodyContent = subGroupBodyReportElement.getGroup();
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

      if (selectedElement instanceof CrosstabRowGroup)
      {
        // 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"),
View Full Code Here

      int groupCounter = 0;
      while (g != null && groupCounter <= state.getCurrentGroupIndex())
      {
        processAllGroupFooterBands(g);

        final GroupBody body = g.getBody();
        if (body instanceof SubGroupBody)
        {
          groupCounter += 1;
          final SubGroupBody sgb = (SubGroupBody) body;
          g = sgb.getGroup();
View Full Code Here

      int groupCounter = 0;
      while (g != null && groupCounter <= state.getCurrentGroupIndex())
      {
        processGroupHeaders(g);

        final GroupBody body = g.getBody();
        if (body instanceof SubGroupBody)
        {
          groupCounter += 1;
          final SubGroupBody sgb = (SubGroupBody) body;
          g = sgb.getGroup();
View Full Code Here

    if (StringUtils.isEmpty(group))
    {
      final Group group = event.getReport().getGroup(event.getState().getCurrentGroupIndex());
      if (group instanceof CrosstabRowGroup)
      {
        final GroupBody body = group.getBody();
        if (body instanceof CrosstabColumnGroupBody)
        {
          triggerVisibleStateCrosstab(event);
        }
      }
View Full Code Here

    if (StringUtils.isEmpty(group))
    {
      final Group group = event.getReport().getGroup(event.getState().getCurrentGroupIndex());
      if (group instanceof CrosstabRowGroup)
      {
        final GroupBody body = group.getBody();
        if (body instanceof CrosstabColumnGroupBody)
        {
          if (Boolean.TRUE.equals(group.getAttribute(AttributeNames.Crosstab.NAMESPACE, AttributeNames.Crosstab.PRINT_SUMMARY)))
          {
            triggerVisibleStateCrosstab(event);
View Full Code Here

                           final ReportEvent event) throws ReportProcessingException
  {
    final int gidx = event.getState().getCurrentGroupIndex();
    final CrosstabGroup group = (CrosstabGroup) event.getReport().getGroup(gidx);
    final Band b = group.getHeader();
    final GroupBody groupBody = group.getBody();

    final RenderedCrosstabLayout renderedCrosstabLayout = outputFunction.startRenderedCrosstabLayout();
    final CrosstabSpecification crosstabSpecification =
        event.getState().getFlowController().getMasterRow().getCrosstabSpecification();
    renderedCrosstabLayout.initialize (crosstabSpecification, group, gidx);
View Full Code Here

                           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

TOP

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

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.