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

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


    {
      return;
    }
    if (value instanceof Section)
    {
      Section section = (Section) value;
      RichTextStyleResolver.resolveStyle(section);
      traverseSection(section);
      return;
    }
View Full Code Here


      final DataFactory dataFactory = reportDefinition.getDataFactory();
      if (dataFactory != null)
      {
        cdf.add(dataFactory);
      }
      final Section parentSection = reportDefinition.getParentSection();
      if (parentSection == null)
      {
        reportDefinition = null;
      }
      else
      {
        reportDefinition = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }

    return CompoundDataFactory.normalize(cdf);
  }
View Full Code Here

      if (nonVisualsChangeTracker.equals(nonVisualChangeTrackers.get(id)) == false)
      {
        return true;
      }

      final Section parentSection = parent.getParentSection();
      if (parentSection == null)
      {
        parent = null;
      }
      else
      {
        parent = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }
    return false;
  }
View Full Code Here

      if (dataSourceChangeTracker.equals(dataFactoryChangeTrackers.get(id)) == false)
      {
        return true;
      }

      final Section parentSection = parent.getParentSection();
      if (parentSection == null)
      {
        parent = null;
      }
      else
      {
        parent = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }
    return false;
  }
View Full Code Here

    {
      final InstanceID id = parent.getObjectID();
      dataFactoryChangeTrackers.put(id, parent.getDatasourceChangeTracker());
      nonVisualChangeTrackers.put(id, parent.getNonVisualsChangeTracker());

      final Section parentSection = parent.getParentSection();
      if (parentSection == null)
      {
        parent = null;
      }
      else
      {
        parent = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
    }
  }
View Full Code Here

  {
    ReportElement n = node;
    while (n != null)
    {

      final Section parent = context.getParent(n);
      if (parent == null)
      {
        break;
      }
      if (childMatcher.matches(context, parent))
View Full Code Here

    this.childMatcher = childMatcher;
  }

  public boolean matches(final MatcherContext context, final ReportElement node)
  {
    final Section parent = context.getParent(node);
    if (parent == null)
    {
      return false;
    }
View Full Code Here

    return false;
  }

  private ReportElement getPreviousReportElement(final ReportElement e)
  {
    final Section parentSection = e.getParentSection();
    if (parentSection == null)
    {
      return null;
    }

    final int count = parentSection.getElementCount();
    for (int i = 0; i < count; i += 1)
    {
      final Element element = parentSection.getElement(i);
      if (e == element)
      {
        if (i == 0)
        {
          return null;
        }
        else
        {
          return parentSection.getElement(i - 1);
        }
      }
    }
    return null;
  }
View Full Code Here

    private void startProcessing(final ReportElement node, final boolean first)
    {
      if (node instanceof Section)
      {
        final Section s = (Section) node;
        if (first == true || startBox(node))
        {
          final int elementCount = s.getElementCount();
          for (int i = 0; i < elementCount; i+= 1)
          {
            startProcessing(s.getElement(i), false);
          }
        }
      }
      else
      {
View Full Code Here

      o.setGroup(lastRowGroup.getName());
    }
    else
    {
      final CrosstabRowGroup rowGroup = findRowGroup(rowField);
      final Section containingBody = rowGroup.getParentSection();
      final Section containingGroup = containingBody.getParentSection();
      o.setGroup(containingGroup.getName());
    }

    if (columnField == null)
    {
      final Group lastColumnGroup = groups[groups.length - 1];
      o.setCrosstabFilterGroup(lastColumnGroup.getName());
    }
    else
    {
      final CrosstabColumnGroup columnGroup = findColumnGroup(columnField);
      final Section containingBody = columnGroup.getParentSection();
      final Section containingGroup = containingBody.getParentSection();
      if (containingGroup instanceof CrosstabColumnGroup)
      {
        o.setCrosstabFilterGroup(containingGroup.getName());
      }
    }

    logger.debug("Aggregation-Configuration: " + o.getClass());
    logger.debug(" - column         : " + columnField);
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.