Examples of AbstractReportDefinition


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

        final Object o = utility.getProperty(metaData.getName());
        final String[] elements = metaData.getReferencedGroups(expression, o);
        for (int j = 0; j < elements.length; j++)
        {
          final String element = elements[j];
          final AbstractReportDefinition reportDefinition = reportRenderContext.getReportDefinition();
          final ReportElement e = reportDefinition.getGroupByName(element);
          if (e == null)
          {
            resultHandler.notifyInspectionResult(new InspectionResult(this, InspectionResult.Severity.WARNING,
                Messages.getString("InvalidGroupReferenceInspection.ExpressionInvalidGroup",
                    expression.getName(), element, metaData.getDisplayName(Locale.getDefault())),
View Full Code Here

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

    {
      return;
    }

    final Object[] selectedElements = activeContext.getSelectionModel().getSelectedElements();
    final AbstractReportDefinition report = activeContext.getReportDefinition();

    final ArrayList<UndoEntry> undos = new ArrayList<UndoEntry>();
    if (collectChange(selectedElements, report, undos) == false)
    {
      // rollback ..
View Full Code Here

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

    if (newContext == null)
    {
      configureForMaster();
      return;
    }
    final AbstractReportDefinition definition = newContext.getReportDefinition();
    if (definition instanceof SubReport)
    {
      configureForSubreport();
    }
    else
View Full Code Here

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

    final ReportDocumentContext activeContext = context.getActiveContext();
    if (activeContext == null)
    {
      throw new NullPointerException();
    }
    final AbstractReportDefinition definition = activeContext.getReportDefinition();
    if (definition instanceof SubReport == false)
    {
      throw new IllegalStateException();
    }
    final SubReport subReport = (SubReport) definition;
View Full Code Here

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

      }
      if (selectedElement == activeContext.getReportDefinition()  )
      {
        // execution order is important here.
        // first unlink the old root-group by setting a new one ...
        final AbstractReportDefinition report = (AbstractReportDefinition) selectedElement;
        final Group rootGroup = report.getRootGroup();

        final SubGroupBody body = new SubGroupBody();
        newGroup.setBody(body);
        report.setRootGroup(newGroup);

        // *then* you can set the old-root to the newly inserted group ..
        body.setGroup(rootGroup);

        activeContext.getUndo().addChange(ActionMessages.getString("InsertGroupAction.UndoName"),
View Full Code Here

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

      this.newRootGroup = newRootGroup;
    }

    public void undo(final ReportDocumentContext renderContext)
    {
      final AbstractReportDefinition report = renderContext.getReportDefinition();
      report.setRootGroup(oldRootGroup);
    }
View Full Code Here

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

      report.setRootGroup(oldRootGroup);
    }

    public void redo(final ReportDocumentContext renderContext)
    {
      final AbstractReportDefinition report = renderContext.getReportDefinition();
      final SubGroupBody body = new SubGroupBody();
      newRootGroup.setBody(body);
      report.setRootGroup(newRootGroup);
      body.setGroup(oldRootGroup);
    }
View Full Code Here

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

    if (newContext == null)
    {
      setEnabled(false);
      return;
    }
    final AbstractReportDefinition definition = newContext.getReportDefinition();
    if (definition instanceof SubReport)
    {
      setEnabled(false);
    }
    else
View Full Code Here

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

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

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

    final Section parentSection = parentReport.getParentSection();
    if (parentSection == null)
    {
      return null;
    }
    final AbstractReportDefinition reportDefinition =
        (AbstractReportDefinition) parentSection.getReportDefinition();
    return new ParentDataFactoryNode(reportDefinition);
  }
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.