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

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


        {
          return factoryForQuery;
        }
      }

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


          return;
        }
      }
      else if (selectedElement instanceof ReportElement)
      {
        final Section parent = ((ReportElement) selectedElement).getParentSection();
        if (parent instanceof ReportDefinition)
        {
          // prevent the deletion of the top level bands
          setEnabled(false);
          return;
View Full Code Here

      {
        case 0:
          return reportElement.getDataFactory();
        case 1:
        {
          final Section parentSection = reportElement.getParentSection();
          if (parentSection == null)
          {
            throw new IllegalStateException();
          }
          final AbstractReportDefinition reportDefinition =
              (AbstractReportDefinition) parentSection.getReportDefinition();
          return new ParentDataFactoryNode(reportDefinition);
        }
        case 2:
          return getReportFunctionNode();
        case 3:
View Full Code Here

  {
    if (isSubReport() == false)
    {
      return null;
    }
    final Section parentSection = parentReport.getParentSection();
    if (parentSection == null)
    {
      return null;
    }
    final AbstractReportDefinition reportDefinition =
        (AbstractReportDefinition) parentSection.getReportDefinition();
    return new ParentDataFactoryNode(reportDefinition);
  }
View Full Code Here

        final String[] queryNames = dataFactory.getQueryNames();
        names.addAll(Arrays.asList(queryNames));
      }
      if (definition instanceof SubReport)
      {
        final Section parentSection = definition.getParentSection();
        definition = (AbstractReportDefinition) parentSection.getReportDefinition();
      }
      else
      {
        definition = null;
      }
View Full Code Here

    this.newElement = newElement;
  }

  public void undo(final ReportRenderContext renderContext)
  {
    final Section elementById = (Section)
        ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setElementAt(position, oldElement);
  }
View Full Code Here

    elementById.setElementAt(position, oldElement);
  }

  public void redo(final ReportRenderContext renderContext)
  {
    final Section elementById = (Section)
        ModelUtility.findElementById(renderContext.getReportDefinition(), target);
    elementById.setElementAt(position, newElement);
  }
View Full Code Here

  {
    if (rendererRoot == null)
    {
      return null;
    }
    final Section section = rendererRoot.getElement();
    if (section instanceof RootLevelBand)
    {
      return (RootLevelBand) section;
    }
    return null;
View Full Code Here

      {
        return;
      }

      final ReportElement reportElement = (ReportElement) element;
      final Section band = getRendererRoot().getElement();
      if (ModelUtility.isDescendant(band, reportElement))
      {
        rendererRoot.resetBounds();
        RootBandRenderComponent.this.revalidate();
        RootBandRenderComponent.this.repaint();
        return;
      }

      if (reportElement instanceof Section)
      {
        final Section section = (Section) reportElement;
        if (ModelUtility.isDescendant(section, band))
        {
          rendererRoot.resetBounds();
          RootBandRenderComponent.this.revalidate();
          RootBandRenderComponent.this.repaint();
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.