Examples of notifyNodeChildAdded()


Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

      if (dialog.performEdit(newFunction))
      {
        report.getExpressions().add(newFunction);
        activeContext.getUndo().addChange(ActionMessages.getString("EditRowBandingAction.Text"),
            new ExpressionAddedUndoEntry(report.getExpressions().size() - 1, newFunction));
        report.notifyNodeChildAdded(function);
      }
    }
    else
    {
      final RowBandingFunction instance = (RowBandingFunction) function.getInstance();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

    collection.set(j, editedDataFactory);
    activeContext.getUndo().addChange
        (ActionMessages.getString("EditDataSourceAction.UndoName"), new DataSourceEditUndoEntry(j, storedFactory, editedClone));

    report.notifyNodeChildRemoved(dataFactory);
    report.notifyNodeChildAdded(editedDataFactory);
  }
}
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

  {
    final AbstractReportDefinition definition = renderContext.getReportDefinition();
    if (definition.getExpressions().contains(expression) == false)
    {
      definition.getExpressions().add(position, expression);
      definition.notifyNodeChildAdded(expression);
    }
  }

  public UndoEntry merge(final UndoEntry newEntry)
  {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

          collection.add(j, editedDataFactory);
          activeContext.getUndo().addChange(ActionMessages.getString("EditQueryAction.Text"),
              new DataSourceEditUndoEntry(j, storedFactory, editedClone));

          report.notifyNodeChildRemoved(originalDataFactory);
          report.notifyNodeChildAdded(editedDataFactory);

          parentWindow.setCursor(Cursor.getDefaultCursor());
          if (editingActiveQuery == false)
          {
            // if we are editing a query that is not the one the current report uses, do not mess around with it.
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

  {
    final AbstractReportDefinition definition = renderContext.getReportDefinition();
    if (definition.getExpressions().contains(expression) == false)
    {
      definition.getExpressions().add(position, expression);
      definition.notifyNodeChildAdded(expression);
    }
  }

  public void redo(final ReportDocumentContext renderContext)
  {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

  public void undo(final ReportDocumentContext renderContext)
  {
    final AbstractReportDefinition definition = renderContext.getReportDefinition();
    definition.getExpressions().set(position, oldExpression);
    definition.notifyNodeChildRemoved(expression);
    definition.notifyNodeChildAdded(oldExpression);
  }

  public void redo(final ReportDocumentContext renderContext)
  {
    final AbstractReportDefinition definition = renderContext.getReportDefinition();
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

  public void redo(final ReportDocumentContext renderContext)
  {
    final AbstractReportDefinition definition = renderContext.getReportDefinition();
    definition.getExpressions().set(position, expression);
    definition.notifyNodeChildRemoved(oldExpression);
    definition.notifyNodeChildAdded(expression);
  }

  public UndoEntry merge(final UndoEntry newEntry)
  {
    return null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

      abstractReportDefinition.notifyNodeChildRemoved(newElement);
    }
    if (oldElement != null)
    {
      cdf.add(position, oldElement);
      abstractReportDefinition.notifyNodeChildAdded(oldElement);
    }
  }

  public void redo(final ReportDocumentContext renderContext)
  {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

      abstractReportDefinition.notifyNodeChildRemoved(oldElement);
    }
    if (newElement != null)
    {
      cdf.add(position, newElement);
      abstractReportDefinition.notifyNodeChildAdded(newElement);
    }
  }

  public UndoEntry merge(final UndoEntry newEntry)
  {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.AbstractReportDefinition.notifyNodeChildAdded()

            collection.add(j, editedDataFactory);
            activeContext.getUndo().addChange(ActionMessages.getString("EditQueryAction.Text"),
                new DataSourceEditUndoEntry(j, storedFactory, editedClone));

            report.notifyNodeChildRemoved(originalDataFactory);
            report.notifyNodeChildAdded(editedDataFactory);
          }
          catch (ReportDataFactoryException e)
          {
            UncaughtExceptionsModel.getInstance().addException(e);
          }
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.