Package org.eobjects.datacleaner.widgets

Examples of org.eobjects.datacleaner.widgets.DCLabel


          + "providing us with your eobjects.org user credentials.<br><br>"
          + "If you are not registered yet, we hope that you will do so now, giving "
          + "the DataCleaner development community a better sense of it's users and audience.<br><br>"
          + "By logging in, you also accept transmitting very simple usage statistics to the DataCleaner "
          + "community, signaling which features you are using.";
      final DCLabel loginInfoLabel = DCLabel.brightMultiLine(loginInfo);
      loginInfoLabel.setSize(300, 250);
      loginInfoLabel.setPreferredSize(new Dimension(300, 250));
      WidgetUtils.addToGridBag(loginInfoLabel, this, 0, y, 2, 1, GridBagConstraints.CENTER, 0, 1.0, 1.0);

      y++;
      WidgetUtils.addToGridBag(Box.createVerticalStrut(4), this, 0, y, 2, 1);
View Full Code Here


    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 dictionary is a dictionary based on a text file containing values separated by linebreaks.");
    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

  public void applyPropertyValues() {
  }

  @Override
  public JComponent createJComponent() {
    DCLabel label = DCLabel.dark("Configured in 'Source' tab");
    label.setBorder(new EmptyBorder(4, 4, 4, 4));
    return label;
  }
View Full Code Here

  }

  private JComponent getLicensingPanel() {
    final String dcLicense = getLicense("lgpl");

    final DCLabel licenseHeader = DCLabel.dark("");
    licenseHeader.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel licenseLabel = DCLabel.darkMultiLine("");
    licenseLabel.setBackground(WidgetUtils.BG_COLOR_BRIGHTEST);
    licenseLabel.setFont(WidgetUtils.FONT_MONOSPACE);
    licenseLabel.setOpaque(true);

    final JButton dcLicenseButton = WidgetFactory.createSmallButton("images/menu/license.png");
    dcLicenseButton.setToolTipText("DataCleaner's license: GNU LGPL");
    dcLicenseButton.addActionListener(new ActionListener() {

      @Override
      public void actionPerformed(ActionEvent e) {
        licenseHeader.setText("Displaying license of DataCleaner");
        licenseLabel.setText(dcLicense);
      }
    });

    final JComboBox librariesComboBox = new JComboBox();
    final JButton visitProjectButton = WidgetFactory.createSmallButton("images/actions/website.png");

    librariesComboBox.setRenderer(new DefaultListCellRenderer() {

      private static final long serialVersionUID = 1L;

      @Override
      public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected,
          boolean cellHasFocus) {
        if (value instanceof LicensedProject) {
          LicensedProject project = (LicensedProject) value;
          String name = project.name;
          return super.getListCellRendererComponent(list, name, index, isSelected, cellHasFocus);
        } else if (value instanceof String) {
          return super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
        }
        throw new UnsupportedOperationException();
      }
    });
    librariesComboBox.addItemListener(new ItemListener() {
      @Override
      public void itemStateChanged(ItemEvent e) {
        Object item = e.getItem();
        if (item instanceof LicensedProject) {
          visitProjectButton.setEnabled(true);
          LicensedProject project = (LicensedProject) item;
          licenseLabel.setText(project.license);
          licenseHeader.setText("Displaying license of " + project.name + "");
        } else {
          visitProjectButton.setEnabled(false);
          licenseHeader.setText("Displaying license of DataCleaner");
          licenseLabel.setText(dcLicense);
        }
      }
    });

    visitProjectButton.addActionListener(new ActionListener() {
View Full Code Here

    return panel;
  }

  private JComponent getAboutPanel() {
    final DCLabel headerLabel = DCLabel.dark("DataCleaner " + Main.VERSION);
    headerLabel.setFont(WidgetUtils.FONT_HEADER1);

    final ImageManager imageManager = ImageManager.getInstance();

    final JButton datacleanerButton = new JButton(imageManager.getImageIcon("images/links/datacleaner.png"));
    datacleanerButton.addActionListener(new OpenBrowserAction("http://datacleaner.eobjects.org"));
View Full Code Here

      }
    });

    setLayout(new VerticalLayout(4));

    final DCLabel headerLabel = DCLabel.dark("Select datastore for analysis");
    headerLabel.setFont(WidgetUtils.FONT_HEADER1);
    add(headerLabel);

    final DCLabel createNewDatastoreLabel = DCLabel.dark("Create a new datastore:");
    createNewDatastoreLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCPanel newDatastorePanel = new DCPanel();
    newDatastorePanel.setLayout(new VerticalLayout(4));
    newDatastorePanel.setBorder(new EmptyBorder(10, 10, 10, 0));
    newDatastorePanel.add(createNewDatastoreLabel);
View Full Code Here

  private void updateDatastores() {
    _listPanel.removeAll();
    _datastorePanels.clear();

    final DCLabel existingDatastoresLabel = DCLabel.dark("Analyze an existing datastore:");
    existingDatastoresLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCPanel searchDatastorePanel = DCPanel.around(_searchDatastoreTextField);
    searchDatastorePanel.setBorder(WidgetUtils.BORDER_SHADOW);

    final DCPanel headerPanel = new DCPanel();
View Full Code Here

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

    updateComponents();

    final DCLabel newStringPatternsLabel = DCLabel.dark("Create new string pattern:");
    newStringPatternsLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel existingStringPatternsLabel = DCLabel.dark("Existing string patterns:");
    existingStringPatternsLabel.setFont(WidgetUtils.FONT_HEADER1);

    setLayout(new VerticalLayout(10));
    add(newStringPatternsLabel);
    add(createNewStringPatternsPanel());
    add(Box.createVerticalStrut(10));
View Full Code Here

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

    for (final String name : names) {
      final StringPattern stringPattern = _catalog.getStringPattern(name);

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

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

      if (stringPattern instanceof RegexStringPattern) {
View Full Code Here

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

    updateComponents();

    final DCLabel newDictionariesLabel = DCLabel.dark("Create new dictionary:");
    newDictionariesLabel.setFont(WidgetUtils.FONT_HEADER1);

    final DCLabel existingDictionariesLabel = DCLabel.dark("Existing dictionaries:");
    existingDictionariesLabel.setFont(WidgetUtils.FONT_HEADER1);

    setLayout(new VerticalLayout(10));
    add(newDictionariesLabel);
    add(createNewDictionariesPanel());
    add(Box.createVerticalStrut(10));
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.