Examples of clone()


Examples of org.pentaho.reporting.engine.classic.core.RelationalGroup.clone()

  }

  public void testCreate() throws Exception
  {
    final RelationalGroup g1 = new RelationalGroup();
    assertNotNull(g1.clone());
    assertNotNull(g1.getFields());
    assertNotNull(g1.getFooter());
    assertNotNull(g1.getHeader());
    assertNotNull(g1.getName());
    assertNotNull(g1.toString());
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.SubReport.clone()

    }

    try
    {
      // derive would regenerate instance-IDs, which is not advisable.
      return (SubReport) subReport.clone();
    }
    catch (CloneNotSupportedException e)
    {
      throw new ReportProcessingException("Failed to restore subreport", e);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabDetail.clone()

  {
    final Object raw = tuple.getRaw();
    if (raw instanceof CrosstabDetail)
    {
      CrosstabDetail rawDimension = (CrosstabDetail) raw;
      return rawDimension.clone();
    }
    else
    {
      return new CrosstabDetail(tuple.getValue(), tuple.getTitle(), ItemCountFunction.class);
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.elementfactory.CrosstabDimension.clone()

  {
    final Object raw = tuple.getRaw();
    if (raw instanceof CrosstabDimension)
    {
      CrosstabDimension rawDimension = (CrosstabDimension) raw;
      return rawDimension.clone();
    }
    else
    {
      return new CrosstabDimension(tuple.getValue(), tuple.getTitle());
    }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.function.Expression.clone()

        throw new IllegalStateException();
      }

      if (expression instanceof Function)
      {
        expressions[i] = (Expression) expression.clone();
      }
      else
      {
        expressions[i] = expression;
      }
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.layout.output.crosstab.RenderedCrosstabLayout.clone()

    sl.renderedCrosstabLayouts.clear();
    final int rSize = renderedCrosstabLayouts.size();
    for (int i = 0; i < rSize; i++)
    {
      final RenderedCrosstabLayout o = renderedCrosstabLayouts.get(i);
      sl.renderedCrosstabLayouts.push((RenderedCrosstabLayout) o.clone());
    }
    return sl;
  }

View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.parameters.ParameterDefinitionEntry.clone()

        final ParameterDefinitionEntry definitionEntry = mdef.getParameterDefinition(i);
        if (definitionEntry == data)
        {
          try
          {
            return definitionEntry.clone();
          }
          catch (CloneNotSupportedException e)
          {
            UncaughtExceptionsModel.getInstance().addException(e);
            return null;
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.ElementStyleSheet.clone()

      }
      clone.rules = (ArrayList<ElementStyleSheet>) rules.clone();
      for (int i = 0; i < rules.size(); i++)
      {
        final ElementStyleSheet styleDefinition = rules.get(i);
        clone.rules.set(i, styleDefinition.clone());
      }
      return clone;
    }
    catch (CloneNotSupportedException e)
    {
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.core.style.css.ElementStyleDefinition.clone()

  {
    final MasterReport masterReportElement = getActiveContext().getContextRoot();
    ElementStyleDefinition styleDefinition = masterReportElement.getStyleDefinition();
    if(styleDefinition != null)
    {
      styleDefinition = styleDefinition.clone();
    }

    final ReportDesignerContext context = getReportDesignerContext();
    final StyleDefinitionEditorDialog dialog = StyleDefinitionEditorDialog.createDialog(context.getView().getParent(), context);
    final ElementStyleDefinition elementStyleDefinition = dialog.performEdit(styleDefinition);
View Full Code Here

Examples of org.pentaho.reporting.engine.classic.wizard.model.WizardSpecification.clone()

    {
      final AbstractReportDefinition reportDefinition = editorModel.getReportDefinition();
      final AbstractReportDefinition element = (AbstractReportDefinition) reportDefinition.derive();
      final WizardSpecification spec = editorModel.getReportSpec();
      element.setAttribute(AttributeNames.Wizard.NAMESPACE, "enable", Boolean.TRUE);
      WizardProcessorUtil.applyWizardSpec(element, (WizardSpecification) spec.clone());
      WizardProcessorUtil.ensureWizardProcessorIsAdded(element, null);

      if (element instanceof MasterReport)
      {
        dialog.setReportJob((MasterReport) element);
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.