Examples of DcLabel


Examples of org.eobjects.datacleaner.widgets.DCLabel

      _inputFields.add(inputField);
      _statusLabels.add(statusLabel);
    }

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("<p>Simple string patterns are tokenized patterns made up of these elements.</p>"
            + "<p>* A = upper case letters<br>* a = lower case letters<br>* 9 = digits</p>");
    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

Examples of org.eobjects.datacleaner.widgets.DCLabel

      _inputFields.add(inputField);
      _statusLabels.add(statusLabel);
    }

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A regex (regular expression) is a concise and flexible means for identifying strings of text of interest, such as particular characters, words, or patterns of characters. The registered regexes can be used to identify certain types of strings and validate their pattern-correctness.");
    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

Examples of org.eobjects.datacleaner.widgets.DCLabel

        setOpaque(isSelected());
        updateUI();
      }
    });
    String datastoreName = datastore.getName();
    final DCLabel datastoreNameLabel = DCLabel.dark("<html><b>" + datastoreName + "</b><br/>" + description + "</html>");
    datastoreNameLabel.setIconTextGap(10);
    datastoreNameLabel.setIcon(icon);
    MouseAdapter invokeCheckBoxMouseListener = new MouseAdapter() {
      @Override
      public void mouseClicked(MouseEvent e) {
        _checkBox.doClick();
        _datastoreListPanel.requestSearchFieldFocus();
        if (e.getClickCount() > 1) {
          // begin job on double click
          _datastoreListPanel.clickAnalyzeButton();
        }
      }
    };

    addMouseListener(invokeCheckBoxMouseListener);
    datastoreNameLabel.addMouseListener(invokeCheckBoxMouseListener);

    final JButton editButton = createEditButton(datastore);
    final JButton removeButton = createRemoveButton(datastore);

    setBorder(WidgetUtils.BORDER_LIST_ITEM);
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel

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

    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A text file synonym catalog is a synonym catalog based on a text file containing comma separated values where the first column represents the master term.");
    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

Examples of org.eobjects.datacleaner.widgets.DCLabel

    _listPanel = new DCPanel();
    _listPanel.setLayout(new VerticalLayout(4));

    updateComponents();

    final DCLabel newSynonymCatalogsLabel = DCLabel.dark("Create new synonym catalog:");
    newSynonymCatalogsLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel existingSynonymCatalogsLabel = DCLabel.dark("Existing synonym catalogs:");
    existingSynonymCatalogsLabel.setFont(WidgetUtils.FONT_HEADER1);

    setLayout(new VerticalLayout(10));
    add(newSynonymCatalogsLabel);
    add(createNewSynonymCatalogsPanel());
    add(Box.createVerticalStrut(10));
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel

    final Icon icon = imageManager.getImageIcon("images/model/synonym.png");

    for (final String name : names) {
      final SynonymCatalog synonymCatalog = _catalog.getSynonymCatalog(name);

      final DCLabel synonymCatalogLabel = DCLabel.dark("<html><b>" + name + "</b><br/>"
          + getDescription(synonymCatalog) + "</html>");
      synonymCatalogLabel.setIcon(icon);

      final JButton editButton = WidgetFactory.createSmallButton("images/actions/edit.png");
      editButton.setToolTipText("Edit synonym catalog");

      if (synonymCatalog instanceof TextFileSynonymCatalog) {
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel

            new HelpIcon(
                "The storage provider is used for staging data during and after analysis, typically to store the results on disk in stead of holding everything in memory."),
            panel, 2, row);

    row++;
    DCLabel descriptionLabel = DCLabel
        .darkMultiLine("Performance options are currently not configurable while you're running the application. "
            + "You need to edit the applications configuration file for this. The configuration file is named "
            + "<b>conf.xml</b> and is located in the root of the folder where you've installed DataCleaner.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 0, 10));
    WidgetUtils.addToGridBag(descriptionLabel, panel, 0, row, 2, 1);
    return panel;
  }
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel

    });
  }

  public void setExpectedRows(final Table table, final int expectedRows) {
    final DCProgressBar progressBar = getProgressBar(table, expectedRows);
    final DCLabel tableLabel = DCLabel.bright(table.getName());
    final DCLabel rowsLabel = DCLabel.bright("Approx. " + expectedRows + " rows");
    rowsLabel.setFont(WidgetUtils.FONT_SMALL);

    SwingUtilities.invokeLater(new Runnable() {
      @Override
      public void run() {
        synchronized (_progressBarPanel) {
View Full Code Here

Examples of org.eobjects.datacleaner.widgets.DCLabel

  protected JComponent getDialogContent() {

    final DCPanel formPanel = new DCPanel();

    int row = 0;
    final DCLabel descriptionLabel = DCLabel
        .brightMultiLine("A datastore synonym catalog is based on a datastore and columns within it. The layout of the datastore is flexible: There should be a master term column and either a single or multiple synonym columns.");
    descriptionLabel.setBorder(new EmptyBorder(10, 10, 10, 20));
    descriptionLabel.setPreferredSize(new Dimension(300, 100));
    WidgetUtils.addToGridBag(DCLabel.bright("Synonym catalog name:"), formPanel, 0, row);
    WidgetUtils.addToGridBag(_nameTextField, formPanel, 1, row);
    row++;
    WidgetUtils.addToGridBag(DCLabel.bright("Datastore:"), formPanel, 0, row);
    WidgetUtils.addToGridBag(_datastoreComboBox, formPanel, 1, row);
View Full Code Here

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
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.