Package org.eobjects.datacleaner.panels

Examples of org.eobjects.datacleaner.panels.TransformerJobBuilderPresenter


        }
      }

      // if panel was a transformer panel
      for (Iterator<TransformerJobBuilderPresenter> it = _transformerPresenters.values().iterator(); it.hasNext();) {
        TransformerJobBuilderPresenter transformerPresenter = it.next();
        if (_jobBuilderTabs.get(transformerPresenter) == panel) {
          _analysisJobBuilder.removeTransformer(transformerPresenter.getJobBuilder());
          return;
        }
      }
      // TODO also handle exploring analyzers
    }
View Full Code Here


  @Override
  public void onAdd(TransformerJobBuilder<?> transformerJobBuilder) {
    @SuppressWarnings("unchecked")
    final Renderer<TransformerJobBuilder<?>, ? extends ComponentJobBuilderPresenter> renderer = (Renderer<TransformerJobBuilder<?>, ? extends ComponentJobBuilderPresenter>) _componentJobBuilderPresenterRendererFactory
        .getRenderer(transformerJobBuilder, ComponentJobBuilderRenderingFormat.class);
    final TransformerJobBuilderPresenter presenter = (TransformerJobBuilderPresenter) renderer
        .render(transformerJobBuilder);

    _transformerPresenters.put(transformerJobBuilder, presenter);
    JComponent comp = presenter.createJComponent();
    _tabbedPane.addTab(LabelUtils.getLabel(transformerJobBuilder),
        IconUtils.getDescriptorIcon(transformerJobBuilder.getDescriptor(), IconUtils.ICON_SIZE_LARGE), comp);
    _jobBuilderTabs.put(presenter, comp);
    final int tabIndex = _tabbedPane.getTabCount() - 1;
    _tabbedPane.setSelectedIndex(tabIndex);
View Full Code Here

    updateStatusLabel();
  }

  @Override
  public void onRemove(TransformerJobBuilder<?> transformerJobBuilder) {
    TransformerJobBuilderPresenter presenter = _transformerPresenters.remove(transformerJobBuilder);
    JComponent comp = _jobBuilderTabs.remove(presenter);
    _tabbedPane.remove(comp);
    updateStatusLabel();
  }
View Full Code Here

    updateStatusLabel();
  }

  @Override
  public void onOutputChanged(TransformerJobBuilder<?> transformerJobBuilder, List<MutableInputColumn<?>> outputColumns) {
    TransformerJobBuilderPresenter presenter = _transformerPresenters.get(transformerJobBuilder);
    if (presenter != null) {
      presenter.onOutputChanged(outputColumns);
    }
  }
View Full Code Here

  public void onRequirementChanged(FilterJobBuilder<?, ?> filterJobBuilder) {
  }

  @Override
  public void onConfigurationChanged(TransformerJobBuilder<?> transformerJobBuilder) {
    TransformerJobBuilderPresenter presenter = _transformerPresenters.get(transformerJobBuilder);
    if (presenter != null) {
      presenter.onConfigurationChanged();
    }
    updateStatusLabel();
  }
View Full Code Here

    updateStatusLabel();
  }

  @Override
  public void onRequirementChanged(TransformerJobBuilder<?> transformerJobBuilder) {
    TransformerJobBuilderPresenter presenter = _transformerPresenters.get(transformerJobBuilder);
    if (presenter != null) {
      presenter.onRequirementChanged();
    }
  }
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.panels.TransformerJobBuilderPresenter

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.