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

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


    throw new ReportProcessingException("Trying to find a crosstab-row, but there is none.");
  }

  private Group findGroup(final ReportElement element)
  {
    Section parentSection = element.getParentSection();
    while (parentSection != null)
    {
      if (parentSection instanceof ReportDefinition)
      {
        break;
      }

      if (parentSection instanceof Group)
      {
        return (Group) parentSection;
      }
      parentSection = parentSection.getParentSection();
    }
    return null;
  }
View Full Code Here


    throw new ReportProcessingException("Trying to find a crosstab-column for field '" + field + "', but there is none.");
  }

  private CrosstabCell findCrosstabCell(final ReportElement element)
  {
    Section parentSection = element.getParentSection();
    while (parentSection != null)
    {
      if (parentSection instanceof ReportDefinition)
      {
        break;
      }

      if (parentSection instanceof CrosstabCell)
      {
        return (CrosstabCell) parentSection;
      }
      parentSection = parentSection.getParentSection();
    }
    return null;
  }
View Full Code Here

      {
        definition.setRootGroup(new RelationalGroup());
      }
      else
      {
        final Section parentSection = crosstabGroup.getParentSection();
        if (parentSection instanceof SubGroupBody)
        {
          final SubGroupBody sgb = (SubGroupBody) parentSection;
          sgb.setGroup(new RelationalGroup());
        }
View Full Code Here

          reportDefinition.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.DATA_CACHE);
      if (Boolean.FALSE.equals(dataCacheEnabledRaw))
      {
        return false;
      }
      final Section parentSection = reportDefinition.getParentSection();
      if (parentSection == null)
      {
        break;
      }
      reportDefinition = parentSection.getReportDefinition();
    }
    return true;
  }
View Full Code Here

          reportDefinition.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.DATA_CACHE);
      if (Boolean.FALSE.equals(dataCacheEnabledRaw))
      {
        return false;
      }
      final Section parentSection = reportDefinition.getParentSection();
      if (parentSection == null)
      {
        break;
      }
      reportDefinition = parentSection.getReportDefinition();
    }
    return true;
  }
View Full Code Here

      {
        return true;
      }

      // groups are never directly nested into each other. They always have a group-body between each group instance.
      final Section parentSection = g.getParentSection();
      if (parentSection == null)
      {
        return false;
      }

      final Section maybeGroup = parentSection.getParentSection();
      if (maybeGroup instanceof Group)
      {
        g = (Group) maybeGroup;
      }
      else
View Full Code Here

  public void resolveParent(final ReportElement element,
                            final ElementStyleSheet resolverTarget)
  {
    if (designTime == false)
    {
      final Section parentSection = element.getParentSection();
      if (parentSection == null)
      {
        return;
      }

      final SimpleStyleSheet computedStyle = parentSection.getComputedStyle();
      resolverTarget.addInherited(computedStyle);
    }

    final FastStack<Section> parentSections = new FastStack<Section>();

    ReportElement e = element;
    while (e.getParentSection() != null)
    {
      final Section section = e.getParentSection();
      parentSections.push(section);

      e = section;
    }

    while (parentSections.isEmpty() == false)
    {
      final Section section = parentSections.pop();
      resolverTarget.addInherited(section.getStyle());
    }
  }
View Full Code Here

      }
      else if (def instanceof SubReport)
      {
        // todo: Undo entries ...

        final Section parentSection = realOriginal.getParentSection();

        if (parentSection instanceof AbstractRootLevelBand)
        {
          final AbstractRootLevelBand rlb = (AbstractRootLevelBand) parentSection;
          final SubReport[] reports = rlb.getSubReports();
View Full Code Here

      }
      else if (def instanceof SubReport)
      {
        // todo: Undo entries ...

        final Section parentSection = realOriginal.getParentSection();

        if (parentSection instanceof AbstractRootLevelBand)
        {
          final AbstractRootLevelBand rlb = (AbstractRootLevelBand) parentSection;
          final SubReport[] reports = rlb.getSubReports();
View Full Code Here

    for (int i = 0; i < elements.length; i++)
    {
      final Element element = elements[i];
      if (element instanceof Section)
      {
        final Section s = (Section) element;
        if (isParentSection(s, elements))
        {
          continue;
        }
      }
View Full Code Here

TOP

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

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.