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

Examples of org.pentaho.reporting.engine.classic.core.parameters.ParameterDefinitionEntry


    final ModifiableReportParameterDefinition dpd = (ModifiableReportParameterDefinition) definition;
    final ParameterDefinitionEntry[] entries = dpd.getParameterDefinitions();
    for (int i = 0; i < entries.length; i++)
    {
      final ParameterDefinitionEntry entry = entries[i];
      if (element == entry)
      {
        if (dpd.getParameterCount() > i + 1)
        {
          dpd.removeParameterDefinition(i);
View Full Code Here


        final Object selection = selectionPath.getLastPathComponent();
        try
        {
          if (selection instanceof ParameterDefinitionEntry)
          {
            final ParameterDefinitionEntry parameterDefinitionEntry = (ParameterDefinitionEntry) selection;
            EditParametersAction.performEditMasterReportParameters(getReportDesignerContext(), parameterDefinitionEntry);
          }
          else if (selection instanceof ParameterMapping)
          {
            EditParametersAction.performEditSubReportParameters(getReportDesignerContext());
View Full Code Here

          return new FieldDescriptionTransferable(field.getAlias());
        }
      }
      if (node instanceof ParameterDefinitionEntry)
      {
        final ParameterDefinitionEntry field = (ParameterDefinitionEntry) node;
        return new FieldDescriptionTransferable(field.getName());
      }
      if (node instanceof Expression)
      {
        final Expression expression = (Expression) node;
        if (expression.getName() != null)
View Full Code Here

    final ModifiableReportParameterDefinition dpd = (ModifiableReportParameterDefinition) definition;
    final ParameterDefinitionEntry[] entries = dpd.getParameterDefinitions();
    for (int i = 1; i < entries.length; i++)
    {
      final ParameterDefinitionEntry entry = entries[i];
      if (element == entry)
      {
        dpd.removeParameterDefinition(i);
        dpd.addParameterDefinition(i - 1, entry);
        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, entry);
View Full Code Here

    final ModifiableReportParameterDefinition dpd = (ModifiableReportParameterDefinition) definition;
    final ParameterDefinitionEntry[] entries = dpd.getParameterDefinitions();
    for (int i = 0; i < entries.length - 1; i++)
    {
      final ParameterDefinitionEntry entry = entries[i];
      if (element == entry)
      {
        dpd.removeParameterDefinition(i);
        dpd.addParameterDefinition(entry);
        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, entry);
View Full Code Here

      final MasterReport mr = (MasterReport) reportDefinition;
      final ReportParameterDefinition parameters = mr.getParameterDefinition();
      final ParameterDefinitionEntry[] entries = parameters.getParameterDefinitions();
      for (int i = 0; i < entries.length; i++)
      {
        final ParameterDefinitionEntry entry = entries[i];
        inspectParameter(designerContext, reportRenderContext, resultHandler, columnNames, parameters, entry);
      }
    }

    final CompoundDataFactory dataFactory = CompoundDataFactory.normalize(reportDefinition.getDataFactory());
View Full Code Here

    final ModifiableReportParameterDefinition dpd = (ModifiableReportParameterDefinition) definition;
    final ParameterDefinitionEntry[] entries = dpd.getParameterDefinitions();
    for (int i = 1; i < entries.length; i++)
    {
      final ParameterDefinitionEntry entry = entries[i];
      if (element == entry)
      {
        dpd.removeParameterDefinition(i);
        dpd.addParameterDefinition(0, entry);
        report.fireModelLayoutChanged(report, ReportModelEvent.NODE_STRUCTURE_CHANGED, entry);
View Full Code Here

          final int index = activeContext.getReportDefinition().getExpressions().indexOf(insertExpression);
          undos.add(new ExpressionAddedUndoEntry(index, insertExpression));
        }
        else if (insertResult instanceof ParameterDefinitionEntry)
        {
          final ParameterDefinitionEntry insertParam = (ParameterDefinitionEntry) insertResult;
          final ReportParameterDefinition definition = activeContext.getMasterReportElement().getParameterDefinition();
          final int index = definition.getParameterCount() - 1;
          undos.add(new ParameterEditUndoEntry(index, null, insertParam));
        }
        else if (insertResult instanceof DataFactory)
View Full Code Here

      final ReportParameterDefinition reportParams = masterReportElement.getParameterDefinition();
      final ParameterDefinitionEntry[] parameterDefinitionEntries = reportParams.getParameterDefinitions();

      for (int i = 0; i < parameterDefinitionEntries.length; i++)
      {
        final ParameterDefinitionEntry entry = parameterDefinitionEntries[i];
        if (entries.containsKey(entry.getName()) == false)
        {
          entries.put(entry.getName(),
              new DrillDownParameter(entry.getName(), null, DrillDownParameter.Type.PREDEFINED));
        }
        else
        {
          final DrillDownParameter parameter = entries.get(entry.getName());
          parameter.setType(DrillDownParameter.Type.PREDEFINED);
        }
      }

      final DrillDownParameter[] parameters = entries.values().toArray(new DrillDownParameter[entries.size()]);
View Full Code Here

        }
      }
    }
    else if (value instanceof ParameterDefinitionEntry)
    {
      final ParameterDefinitionEntry params = (ParameterDefinitionEntry) value;
      setText(params.getName());
    }
    else if (value instanceof DataFactory)
    {
      final DataFactory dfac = (DataFactory) value;
      if (DataFactoryRegistry.getInstance().isRegistered(dfac.getClass().getName()) == false)
View Full Code Here

TOP

Related Classes of org.pentaho.reporting.engine.classic.core.parameters.ParameterDefinitionEntry

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.