Examples of ImageManager


Examples of org.eobjects.datacleaner.util.ImageManager

    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

Examples of org.eobjects.datacleaner.util.ImageManager

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