Package org.eobjects.datacleaner.windows

Examples of org.eobjects.datacleaner.windows.TextFileDictionaryDialog


        "<html><b>Text file dictionary</b><br/>A dictionary based on a text file on your filesystem.</html>");
    textFileDictionaryButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Injector injector = _injectorBuilder.with(TextFileDictionary.class, null).createInjector();
        TextFileDictionaryDialog dialog = injector.getInstance(TextFileDictionaryDialog.class);
        dialog.open();
      }
    });

    final JButton simpleDictionaryButton = createButton(IconUtils.DICTIONARY_SIMPLE_IMAGEPATH,
        "<html><b>Simple dictionary</b><br/>A dictionary written and stored directly in DataCleaner.</html>");
    simpleDictionaryButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Injector injector = _injectorBuilder.with(SimpleDictionary.class, null).createInjector();
        SimpleDictionaryDialog dialog = injector.getInstance(SimpleDictionaryDialog.class);
        dialog.open();
      }
    });

    final JButton datastoreDictionaryButton = createButton(IconUtils.DICTIONARY_DATASTORE_IMAGEPATH,
        "<html><b>Datastore dictionary</b><br/>Dictionary based on a column in a datastore.</html>");
    datastoreDictionaryButton.addActionListener(new ActionListener() {
      @Override
      public void actionPerformed(ActionEvent e) {
        Injector injector = _injectorBuilder.with(DatastoreDictionary.class, null).createInjector();
        DatastoreDictionaryDialog dialog = injector.getInstance(DatastoreDictionaryDialog.class);
        dialog.open();
      }
    });

    final HelpIcon helpIcon = new HelpIcon("<b>Dictionaries</b><br>"
        + "A dictionary is a set of values that grouped together represent a named set of values,"
View Full Code Here


      } else if (dictionary instanceof TextFileDictionary) {
        editButton.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            Injector injector = _injectorBuilder.with(TextFileDictionary.class, dictionary).createInjector();
            TextFileDictionaryDialog dialog = injector.getInstance(TextFileDictionaryDialog.class);
            dialog.open();
          }
        });
      } else if (dictionary instanceof SimpleDictionary) {
        editButton.addActionListener(new ActionListener() {
          @Override
          public void actionPerformed(ActionEvent e) {
            Injector injector = _injectorBuilder.with(SimpleDictionary.class, dictionary).createInjector();
            SimpleDictionaryDialog dialog = injector.getInstance(SimpleDictionaryDialog.class);
            dialog.open();
          }
        });
      } else {
        editButton.setEnabled(false);
      }
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.windows.TextFileDictionaryDialog

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.