Examples of ReportElement


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

  private void iterateSection(final Section s, final UpdateTask task)
  {
    final int count = s.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = s.getElement(i);
      task.processElement(element);
      if (element instanceof SubReport)
      {
        continue;
      }
View Full Code Here

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

    {
      final int count = gb.getElementCount();
      GroupBody locatedBody = null;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          locatedBody = existingGroup.getBody();
          break;
View Full Code Here

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

    {
      final int count = gb.getElementCount();
      boolean found = false;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          result += 1;
          gb = existingGroup.getBody();
View Full Code Here

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

    {
      final int count = gb.getElementCount();
      boolean found = false;
      for (int i = 0; i < count; i++)
      {
        final ReportElement element = gb.getElement(i);
        if (element instanceof Group)
        {
          existingGroup = (Group) element;
          result += 1;
          if (result == groupIndex)
View Full Code Here

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

  }

  public SubReport findSubReport(final InstanceID reportID)
  {

    final ReportElement element =
        FunctionUtilities.findElementByInstanceId((ReportDefinition) this, reportID);
    if (element instanceof SubReport)
    {
      return (SubReport) element;
    }
View Full Code Here

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

    }

    final int count = rootLevelBand.getElementCount();
    for (int i = 0; i < count; i++)
    {
      final ReportElement element = rootLevelBand.getElement(i);
      if (element instanceof SubReport)
      {
        if (list == null)
        {
          list = new LinkedMap();
        }
        list.put(element.getObjectID(),
            new InlineSubreportMarker((SubReport) element, DUMMY_SUBREPORT_MARKER, SubReportProcessType.INLINE));
      }
      else if (element instanceof Section)
      {
        list = collectSubReportMarkers((Section) element, list);
View Full Code Here

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

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

      return band;
    }

    for (int i = 0; i < band.getElementCount(); i++)
    {
      final ReportElement e = band.getElement(i);
      if (id.equals(e.getId()))
      {
        return e;
      }
      if (e instanceof Section)
      {
        final ReportElement retval = findElementById((Section) e, id);
        if (retval != null)
        {
          return retval;
        }
      }
View Full Code Here

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

      return band;
    }

    for (int i = 0; i < band.getElementCount(); i++)
    {
      final ReportElement e = band.getElement(i);
      if (id == e.getObjectID())
      {
        return e;
      }
      if (e instanceof Section)
      {
        final ReportElement retval = findElementByInstanceId((Section) e, id);
        if (retval != null)
        {
          return retval;
        }
      }
View Full Code Here

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

      return band;
    }

    for (int i = 0; i < band.getElementCount(); i++)
    {
      final ReportElement e = band.getElement(i);
      if (attributeValue.equals(e.getAttribute(attributeNamespace, attributeName)))
      {
        return e;
      }
      if (e instanceof Section)
      {
        final ReportElement retval = findElementByAttribute
            ((Section) e, attributeNamespace, attributeName, attributeValue);
        if (retval != null)
        {
          return retval;
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.