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

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


  private boolean isStructureRunNeeded(final Section section)
  {
    final int count = section.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = section.getElement(i);
      final Object type = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.ELEMENT_TYPE);
      if (type instanceof ExternalElementType)
      {
        return true;
      }
View Full Code Here


                              final Section section) throws ReportProcessingException
  {
    final int count = section.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = section.getElement(i);
      if (element instanceof SubReport == false)
      {
        if (element instanceof Section)
        {
          processSection(schema, definition, (Section) element);
          continue;
        }
        continue;
      }

      if ("toc".equals(element.getMetaData().getName()))
      {
        activateTableOfContents(schema, definition, element);
      }
      else if ("index".equals(element.getMetaData().getName()))
      {
        activateIndex(schema, definition, element);
      }

    }
View Full Code Here

    final Object o = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.SOURCE);
    if (o instanceof ResourceKey)
    {
      return (ResourceKey) o;
    }
    final ReportElement parent = element.getParentSection();
    if (parent != null)
    {
      return getDefinitionSource(parent);
    }
    return null;
View Full Code Here

    final Object o = element.getAttribute(AttributeNames.Core.NAMESPACE, AttributeNames.Core.CONTENT_BASE);
    if (o instanceof ResourceKey)
    {
      return (ResourceKey) o;
    }
    final ReportElement parent = element.getParentSection();
    if (parent != null)
    {
      return getContentBase(parent);
    }
    return null;
View Full Code Here

      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;
    }
View Full Code Here

    }

    final int theElementCount = section.getElementCount();
    for (int i = 0; i < theElementCount; i++)
    {
      final ReportElement reportElement = section.getElement(i);
      if (reportElement instanceof Section)
      {
        collectAlignableElements((Section) reportElement, collectedElements);
      }
View Full Code Here

    return retval;
  }

  public static boolean isDescendant(final Section definition, final ReportElement element)
  {
    ReportElement band = element;
    while (band != null)
    {
      if (band == definition)
      {
        return true;
      }
      band = band.getParentSection();
    }

    return false;
  }
View Full Code Here

  private static void findSubReportsInteral(final Section section, final ArrayList<SubReport> result)
  {
    final int count = section.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = section.getElement(i);
      if (element instanceof Section)
      {
        findSubReportsInteral((Section) element, result);
      }
    }
View Full Code Here

  public static int findIndexOf(final Section parent, final Element visualElement)
  {
    final int count = parent.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = parent.getElement(i);
      if (element == visualElement)
      {
        return i;
      }
    }
View Full Code Here

  public static int findSubreportIndexOf(final RootLevelBand parent, final SubReport visualElement)
  {
    final int count = parent.getSubReportCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = parent.getSubReport(i);
      if (element == visualElement)
      {
        return i;
      }
    }
View Full Code Here

TOP

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

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.