Package org.eobjects.datacleaner.actions

Examples of org.eobjects.datacleaner.actions.PreviewSourceDataActionListener


        quickAnalysisMenuItem.addActionListener(quickAnalysisActionListener);

        final JMenuItem previewMenuItem = WidgetFactory.createMenuItem("Preview column",
            "images/actions/preview_data.png");
        previewMenuItem.addActionListener(new PreviewSourceDataActionListener(_schemaTree.getWindowContext(),
            _analysisJobBuilder.getDataContextProvider(), column));

        final JPopupMenu popup = new JPopupMenu();
        popup.setLabel(column.getName());
        popup.add(toggleColumnItem);
View Full Code Here


        saveAsCsvFileMenuItem.addActionListener(saveTableAsCsvFileActionListener);
        popup.add(saveAsCsvFileMenuItem);

        final JMenuItem previewMenuItem = WidgetFactory.createMenuItem("Preview table",
            "images/actions/preview_data.png");
        previewMenuItem.addActionListener(new PreviewSourceDataActionListener(_schemaTree.getWindowContext(),
            _analysisJobBuilder.getDataContextProvider(), columns));
        popup.add(previewMenuItem);

        popup.show((Component) e.getSource(), e.getX(), e.getY());
      }
View Full Code Here

      tableNameLabel.setOpaque(false);
      tableNameLabel.setFont(WidgetUtils.FONT_HEADER1);

      JButton previewButton = WidgetFactory.createSmallButton("images/actions/preview_data.png");
      previewButton.setToolTipText("Preview table rows");
      previewButton.addActionListener(new PreviewSourceDataActionListener(_windowContext, _analysisJobBuilder
          .getDataContextProvider(), _columns));

      JButton removeButton = WidgetFactory.createSmallButton("images/actions/remove.png");
      removeButton.setToolTipText("Remove table from source");
      removeButton.addActionListener(new ActionListener() {
View Full Code Here

          final DataContextProvider dcp = datastore.getDataContextProvider();
          final Table previewTable = result.getPreviewTable(datastore);
          if (previewTable == null) {
            throw new IllegalStateException("Result did not return any preview table: " + result);
          } else {
            final PreviewSourceDataActionListener actionListener = new PreviewSourceDataActionListener(
                windowContext, dcp, previewTable);
            actionListener.actionPerformed(null);
          }
        }
      });
      panel.add(previewButton);
    }
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.actions.PreviewSourceDataActionListener

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.