Package org.eobjects.datacleaner.widgets

Examples of org.eobjects.datacleaner.widgets.DCLabel


        if (!file.exists()) {
          valid = false;
        }
      }

      final DCLabel extensionLabel;
      if (valid) {
        extensionLabel = DCLabel.dark("<html><b>" + extensionPackage.getName() + "</b><br/>Loaded: "
            + extensionPackage.getLoadedAnalyzers() + " Analyzers, " + extensionPackage.getLoadedTransformers()
            + " Transformers, " + extensionPackage.getLoadedFilters() + " Filters.<br/>Root package: '"
            + extensionPackage.getScanPackage() + "'.</html>");
        extensionLabel.setIcon(pluginIcon);
      } else {
        extensionLabel = DCLabel.dark("<html><b>" + extensionPackage.getName()
            + "</b><br/>Error loading extension files:<br/>" + Arrays.toString(files) + "</html>");
        extensionLabel.setIcon(errorIcon);
      }

      final JButton removeButton = WidgetFactory.createSmallButton("images/actions/remove.png");
      removeButton.setToolTipText("Remove extension");
      removeButton.addActionListener(new ActionListener() {
        @Override
        public void actionPerformed(ActionEvent e) {
          extensionPackages.remove(extensionPackage);
          removeButton.setEnabled(false);
          extensionLabel.setText("*** Removal requires application restart ***");
        }
      });

      final DCPanel extensionPanel = new DCPanel();
      extensionPanel.setBorder(WidgetUtils.BORDER_LIST_ITEM);
View Full Code Here


  @Override
  protected JComponent getDialogContent() {
    DCPanel formPanel = new DCPanel();

    int row = 0;
    DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A datastore dictionary is a dictionary based on a column in one of your datastores. Please select a datastore in the form below and a tree of that datastore will appear. From here on you can select which column in the datastore to use for dictionary lookups.");
    descriptionLabel.setBorder(new EmptyBorder(0, 0, 0, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));
    WidgetUtils.addToGridBag(descriptionLabel, formPanel, 0, row, 2, 1);

    row++;
    WidgetUtils.addToGridBag(DCLabel.bright("Dictionary name:"), formPanel, 0, row);
    WidgetUtils.addToGridBag(_nameTextField, formPanel, 1, row);
View Full Code Here

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 0, 0));
    buttonPanel.add(createDictionaryButton);
    WidgetUtils.addToGridBag(buttonPanel, formPanel, 0, row, 2, 1);

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A simple dictionary is a dictionary that you enter directly in DataCleaner. In the 'Values' field you can enter each value of the dictionary on a separate line.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));

    final DCPanel mainPanel = new DCPanel();
    mainPanel.setLayout(new VerticalLayout(4));
    mainPanel.add(descriptionLabel);
    mainPanel.add(formPanel);
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.widgets.DCLabel

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.