Package org.eobjects.datacleaner.util

Examples of org.eobjects.datacleaner.util.ImageManager


  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"));
    datacleanerButton.setToolTipText("Visit the DataCleaner website");
    datacleanerButton.setBorder(null);

    final JButton bloggerButton = new JButton(imageManager.getImageIcon("images/links/blogger.png"));
    bloggerButton.addActionListener(new OpenBrowserAction("http://kasper.eobjects.org"));
    bloggerButton.setToolTipText("Follow along at our blog");
    bloggerButton.setBorder(null);

    final JButton linkedInButton = new JButton(imageManager.getImageIcon("images/links/linkedin.png"));
    linkedInButton.addActionListener(new OpenBrowserAction("http://www.linkedin.com/groups?gid=3352784"));
    linkedInButton.setToolTipText("Join the DataCleaner LinkedIn group");
    linkedInButton.setBorder(null);

    final DCPanel buttonPanel = new DCPanel();
    buttonPanel.setLayout(new HorizontalLayout());
    buttonPanel.add(datacleanerButton);
    buttonPanel.add(Box.createHorizontalStrut(10));
    buttonPanel.add(bloggerButton);
    buttonPanel.add(Box.createHorizontalStrut(10));
    buttonPanel.add(linkedInButton);

    final HumanInferenceToolbarButton humanInferenceButton = new HumanInferenceToolbarButton(
        imageManager.getImageIcon("images/powered-by-human-inference-bright.png"));

    final DCPanel contentPanel = new DCPanel();
    contentPanel.setLayout(new VerticalLayout());
    contentPanel.add(headerLabel);
    contentPanel.add(DCLabel.dark("Copyright (C) 2010 eobjects.org"));
    contentPanel.add(Box.createVerticalStrut(20));
    contentPanel.add(DCPanel.around(humanInferenceButton));
    contentPanel.add(Box.createVerticalStrut(20));
    contentPanel.add(DCLabel.dark("Licensed under the LGPL license"));
    contentPanel.add(DCLabel.dark("(see Licensing tab)."));
    contentPanel.add(Box.createVerticalStrut(30));
    contentPanel.add(DCLabel.dark("Java runtime information:"));
    contentPanel.add(DCLabel.dark("  " + System.getProperty("java.vm.name")));
    contentPanel.add(DCLabel.dark("  by " + System.getProperty("java.vm.vendor")));
    contentPanel.add(DCLabel.dark("  version " + System.getProperty("java.runtime.version")));
    contentPanel.add(Box.createVerticalStrut(30));
    contentPanel.add(buttonPanel);

    final DCPanel mainPanel = new DCPanel(imageManager.getImage("images/window/app-icon-hires.png"), 97, 10,
        WidgetUtils.BG_COLOR_BRIGHT, WidgetUtils.BG_COLOR_BRIGHTEST);
    mainPanel.setBorder(new EmptyBorder(10, 10, 10, 10));
    mainPanel.setLayout(new VerticalLayout());
    mainPanel.add(contentPanel);
View Full Code Here


      } else {
        optionalProperties.add(propertyDescriptor);
      }
    }

    ImageManager imageManager = ImageManager.getInstance();
    buildTaskPane(inputProperties, imageManager.getImageIcon("images/model/column.png", IconUtils.ICON_SIZE_SMALL),
        "Input columns", _beanJobBuilder);
    buildTaskPane(requiredProperties, imageManager.getImageIcon("images/menu/options.png", IconUtils.ICON_SIZE_SMALL),
        "Required properties", _beanJobBuilder);
    buildTaskPane(optionalProperties, imageManager.getImageIcon("images/actions/edit.png", IconUtils.ICON_SIZE_SMALL),
        "Optional properties", _beanJobBuilder);
  }
View Full Code Here

    if (value instanceof DefaultMutableTreeNode) {
      value = ((DefaultMutableTreeNode) value).getUserObject();
    }

    Component component = null;
    ImageManager imageManager = ImageManager.getInstance();
    Icon icon = null;

    if (value instanceof Datastore) {
      component = _rendererDelegate.getTreeCellRendererComponent(tree, ((Datastore) value).getName(), selected,
          expanded, leaf, row, hasFocus);
      icon = IconUtils.getDatastoreIcon((Datastore) value, IconUtils.ICON_SIZE_SMALL);
    } else if (value instanceof Schema) {
      Schema schema = ((Schema) value);
      String schemaName = schema.getName();
      component = _rendererDelegate.getTreeCellRendererComponent(tree, schemaName, selected, expanded, leaf, row,
          hasFocus);
      icon = imageManager.getImageIcon("images/model/schema.png", IconUtils.ICON_SIZE_SMALL);
      if (SchemaComparator.isInformationSchema(schema)) {
        icon = imageManager.getImageIcon("images/model/schema_information.png", IconUtils.ICON_SIZE_SMALL);
      }
    } else if (value instanceof Table) {
      component = _rendererDelegate.getTreeCellRendererComponent(tree, ((Table) value).getName(), selected, expanded,
          leaf, row, hasFocus);
      icon = imageManager.getImageIcon("images/model/table.png", IconUtils.ICON_SIZE_SMALL);
    } else if (value instanceof Column) {
      Column column = (Column) value;
      component = _rendererDelegate.getTreeCellRendererComponent(tree, column.getName(), selected, expanded, leaf,
          row, hasFocus);
      icon = imageManager.getImageIcon("images/model/column.png", IconUtils.ICON_SIZE_SMALL);
    } else if (value instanceof String) {
      component = _rendererDelegate.getTreeCellRendererComponent(tree, value, selected, expanded, leaf, row, hasFocus);
    }

    if (component == null) {
View Full Code Here

    _analysisJobBuilder.getFilterChangeListeners().add(this);

    JToolBar toolBar = WidgetFactory.createToolBar();

    // Add filter
    ImageManager imageManager = ImageManager.getInstance();
    JButton addFilterButton = new JButton("Add filter", imageManager.getImageIcon("images/component-types/filter.png"));
    addFilterButton
        .setToolTipText("<html>Filters represent a way to<br/>categorize rows and use these<br/>categories as requirements for<br/>succeeding steps in a job.</html>");
    addFilterButton.addActionListener(new AddFilterActionListener(_analysisJobBuilder.getConfiguration(),
        _analysisJobBuilder, this));
    toolBar.add(addFilterButton);
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.util.ImageManager

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.