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

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


          hasAttrExpressions = true;
        }
      }
      else
      {
        final Section section = (Section) element;
        if (processBand(section))
        {
          hasAttrExpressions = true;
        }
      }
View Full Code Here


    return b.toString();
  }

  private static void computeElementLocationInternal (final ReportElement e, final StringBuilder b)
  {
    final Section parentSection = e.getParentSection();
    if (parentSection != null)
    {
      computeElementLocationInternal(parentSection, b);
      b.append("->");
    }

    final String typeName = e.getElementType().getMetaData().getName();
    b.append(typeName);

    if (parentSection != null)
    {
      final int elementCount = parentSection.getElementCount();
      for (int i = 0; i < elementCount; i+= 1)
      {
        if (parentSection.getElement(i) == e)
        {
          b.append("[");
          b.append(i);
          b.append("]");
          break;
View Full Code Here

    traverseSectionWithSubReports(section);
  }

  private boolean isInlineSubReport(final SubReport reportDefinition)
  {
    Section parentSection = reportDefinition.getParentSection();
    if (parentSection instanceof RootLevelBand == false)
    {
      return true;
    }
View Full Code Here

          hasAttrExpressions = true;
        }
      }
      else
      {
        final Section section = (Section) element;
        if (processBand(section))
        {
          hasAttrExpressions = true;
        }
      }
View Full Code Here

      final ResourceKey base = e.getContentBase();
      if (base != null)
      {
        return base;
      }
      final Section parentSection = e.getParentSection();
      if (parentSection != null)
      {
        final ReportDefinition reportDefinition1 = parentSection.getReportDefinition();
        if (reportDefinition1 instanceof AbstractReportDefinition)
        {
          e = (AbstractReportDefinition) reportDefinition1;
        }
        else
View Full Code Here

          }
          return true;
        }

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

    return false;
  }
View Full Code Here

    {
      // users may have set all sorts of random values. We need to auto-correct that.
      element.getStyle().setStyleProperty(BandStyleKeys.LAYOUT, null);
    }

    final Section parentSection = element.getParentSection();
    if (isBlockLevelBox(parentSection))
    {
      if (element instanceof SubReport && parentSection instanceof RootLevelBand)
      {
        final SubReport subReport = (SubReport) element;
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;
    }

    if (value instanceof Section)
    {
      final Section section = (Section) value;
      RichTextStyleResolver.resolveStyle(section);
      addBandInternal(section, builder, false);
      return;
    }
View Full Code Here

  {
    sheetName = null;
    traverseSection(band);
    if (sheetName == null)
    {
      Section parentSection = band.getParentSection();
      while (parentSection != null)
      {
        inspectElement(parentSection);
        parentSection = parentSection.getParentSection();
      }
    }
    return sheetName;
  }
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.