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

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


          }
          return true;
        }

      }
      final Section parentSection = reportDefinition.getParentSection();
      if (parentSection == null)
      {
        reportDefinition = null;
      }
      else
      {
        reportDefinition = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }

    return false;
  }
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

    }
  }

  private Group findGroup(final ReportElement element)
  {
    Section parentSection = element.getParentSection();
    while (parentSection != null)
    {
      if (parentSection instanceof Group)
      {
        return (Group) parentSection;
      }
      parentSection = parentSection.getParentSection();
    }
    return null;
  }
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

  private static MasterReport findMasterReport(final AbstractReportDefinition def)
  {
    AbstractReportDefinition loopDef = def;
    while (loopDef instanceof MasterReport == false)
    {
      final Section parentSection = def.getParentSection();
      if (parentSection == null)
      {
        break;
      }
      loopDef = (AbstractReportDefinition) parentSection.getReportDefinition();
    }

    if (loopDef instanceof MasterReport)
    {
      return (MasterReport) def;
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

        return o;
      }
      if (o instanceof ReportElement)
      {
        final ReportElement element = (ReportElement) o;
        final Section parentSection = element.getParentSection();
        if (parentSection instanceof Band)
        {
          return parentSection;
        }
      }
View Full Code Here

    {
      return null;
    }

    final Element veElement = (Element) data;
    final Section parent = veElement.getParentSection();
    if (data instanceof SubReport && parent instanceof AbstractRootLevelBand)
    {
      final AbstractRootLevelBand re = (AbstractRootLevelBand) parent;
      final SubReport report = (SubReport) data;
      final int index = ModelUtility.findSubreportIndexOf(re, report);
View Full Code Here

  }

  private static UndoEntry deleteGroup(final Group groupElement)
  {
    // deleting this group means, that the body moves down one level.
    final Section parent = groupElement.getParentSection();
    if (parent instanceof SubGroupBody)
    {
      final SubGroupBody parentBody = (SubGroupBody) groupElement.getParentSection();
      final Group oldGroup = parentBody.getGroup();
      final RelationalGroup newRootGroup = new RelationalGroup();
View Full Code Here

      if (definition.getDataFactory().isQueryExecutable(query, new StaticDataRow()))
      {
        return true;
      }

      final Section parentSection = definition.getParentSection();
      if (parentSection == null)
      {
        definition = null;
      }
      else
      {
        definition = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }
    return false;
  }
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.