Package org.eobjects.datacleaner.panels

Examples of org.eobjects.datacleaner.panels.DCPanel


        }
        _collapsibleTreePane.setCollapsed(!collapsed);
      }
    });

    final DCPanel collapseButtonPanel = new DCPanel();
    collapseButtonPanel.setOpaque(true);
    collapseButtonPanel.setBackground(WidgetUtils.BG_COLOR_DARK);
    collapseButtonPanel.setLayout(new VerticalLayout(4));
    collapseButtonPanel.setBorder(null);
    collapseButtonPanel.add(_toggleTreeViewButton);

    setLayout(new BorderLayout());
    add(_collapsibleTreePane, BorderLayout.CENTER);
    add(collapseButtonPanel, BorderLayout.EAST);
  }
View Full Code Here


    return _helpMessage;
  }

  @Override
  public JToolTip createToolTip() {
    DCPanel panel = new DCPanel();
    panel.setOpaque(true);
    panel.setBackground(WidgetUtils.BG_COLOR_DARK);

    panel.setLayout(new BorderLayout());
    panel.add(new JLabel(imageManager.getImageIcon("images/widgets/help.png")), BorderLayout.WEST);

    DCLabel descriptionLabel = DCLabel.brightMultiLine(_helpMessage);
    panel.add(descriptionLabel, BorderLayout.CENTER);

    Border border = new CompoundBorder(WidgetUtils.BORDER_THIN, WidgetUtils.BORDER_EMPTY);
    panel.setBorder(border);

    panel.setPreferredSize(300, 130);

    return new DCToolTip(this, panel);
  }
View Full Code Here

  @Override
  protected JComponent getDialogContent() {
    final JPanel regexDetailsPanel = createRegexDetailsPanel();

    final DCPanel treePanel = new DCPanel(WidgetUtils.BG_COLOR_BRIGHTEST, WidgetUtils.BG_COLOR_BRIGHT);
    treePanel.setBorder(WidgetUtils.BORDER_WIDE);
    treePanel.setLayout(new BorderLayout());
    treePanel.add(WidgetUtils.scrolleable(_categoryTree), BorderLayout.CENTER);

    final DCPanel panel = new DCPanel(WidgetUtils.BG_COLOR_LESS_DARK, WidgetUtils.BG_COLOR_DARK);
    panel.setLayout(new BorderLayout());
    panel.add(new CollapsibleTreePanel(treePanel), BorderLayout.WEST);
    panel.add(regexDetailsPanel, BorderLayout.CENTER);

    updateCategories();

    return panel;
  }
View Full Code Here

    final JToolBar toolBar = WidgetFactory.createToolBar();
    toolBar.add(Box.createHorizontalGlue());
    toolBar.add(_importRegexButton);
    toolBar.add(_viewOnlineButton);

    final DCPanel toolBarPanel = new DCPanel(WidgetUtils.BG_COLOR_DARK, WidgetUtils.BG_COLOR_LESS_DARK);
    toolBarPanel.setLayout(new BorderLayout());
    toolBarPanel.add(toolBar, BorderLayout.CENTER);

    final DCPanel panel = new DCPanel(WidgetUtils.BG_COLOR_DARK, WidgetUtils.BG_COLOR_DARK);
    panel.setLayout(new BorderLayout());
    panel.add(_regexSelectionTable.toPanel(), BorderLayout.NORTH);
    panel.add(WidgetUtils.scrolleable(_regexDescriptionLabel), BorderLayout.CENTER);
    panel.add(toolBarPanel, BorderLayout.SOUTH);
    return panel;
  }
View Full Code Here

      }
    });
  }

  public DCPanel toPanel() {
    DCPanel panel = new DCPanel();
    panel.setLayout(new BorderLayout());
    panel.add(_label, BorderLayout.NORTH);
    panel.add(_collapsiblePane, BorderLayout.CENTER);
    return panel;
  }
View Full Code Here

  public Component getComponent() {
    Container contentPane = _collapsiblePane.getContentPane();
    if (contentPane.getComponentCount() == 0) {
      return null;
    }
    DCPanel innerPanel = (DCPanel) contentPane.getComponent(0);
    return innerPanel.getComponent(0);
  }
View Full Code Here

  public Image getWindowIcon() {
    return ImageManager.getInstance().getImage("images/window/app-icon.png");
  }

  protected final JComponent getWindowContent() {
    DCPanel panel = new DCPanel(_topBackgroundColor, _bottomBackgroundColor);
    panel.setLayout(new BorderLayout());
    DCBannerPanel bannerPanel = new DCBannerPanel(_bannerImage, getBannerTitle());
    panel.add(bannerPanel, BorderLayout.NORTH);
    JComponent dialogContent = getDialogContent();
    panel.add(dialogContent, BorderLayout.CENTER);

    panel.setPreferredSize(getDialogWidth(), bannerPanel.getPreferredSize().height
        + dialogContent.getPreferredSize().height);

    return panel;
  }
View Full Code Here

      return delegate.renderGroupResult(result.getSingleValueDistributionResult());
    }
  }

  public JComponent renderGroupedResult(ValueDistributionResult result) {
    final DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout(0));
    Set<ValueDistributionGroupResult> results = result.getGroupedValueDistributionResults();
    for (final ValueDistributionGroupResult res : results) {
      if (panel.getComponentCount() != 0) {
        panel.add(Box.createVerticalStrut(10));
      }

      final Ref<JComponent> componentRef = new LazyRef<JComponent>() {
        @Override
        protected JComponent fetch() {
          ValueDistributionResultSwingRendererGroupDelegate delegate = new ValueDistributionResultSwingRendererGroupDelegate(
              res.getGroupName());
          final JComponent renderedResult = delegate.renderGroupResult(res);
          final DCPanel decoratedPanel = createDecoration(renderedResult);
          return decoratedPanel;
        }
      };

      final String label = "Value distribution for group '" + LabelUtils.getLabel(res.getGroupName()) + "'";
View Full Code Here

    }
    return valueCount;
  }

  private DCPanel createDecoration(JComponent renderedResult) {
    final DCPanel wrappingPanel = new DCPanel();
    wrappingPanel.setLayout(new BorderLayout());
    wrappingPanel.add(renderedResult, BorderLayout.CENTER);
    wrappingPanel.setBorder(new EmptyBorder(4, 20, 4, 4));
    return wrappingPanel;
  }
View Full Code Here

      AbstractBeanJobBuilder<?, ?, ?> jobBuilder, JComponent parent, boolean allowExpressionBasedColumns) {
    _propertyDescriptor = propertyDescriptor;
    _beanJobBuilder = jobBuilder;
    _parent = parent;

    final DCPanel panel = new DCPanel();
    panel.setLayout(new VerticalLayout());

    if (allowExpressionBasedColumns) {
      final JButton expressionColumnButton = WidgetFactory.createSmallButton(EXPRESSION_COLUMN_ICON_PATH);
      expressionColumnButton.setToolTipText("Create expression/value based column");
      expressionColumnButton.addActionListener(new AddExpressionBasedColumnActionListener(this));
      expressionColumnButton.addMouseListener(buttonMouseListener);
      panel.add(expressionColumnButton);
    }

    if (_propertyDescriptor.isArray()) {
      final JButton reorderColumnsButton = WidgetFactory.createSmallButton(REORDER_COLUMN_ICON_PATH);
      reorderColumnsButton.setToolTipText("Reorder columns");
      reorderColumnsButton.addMouseListener(buttonMouseListener);
      reorderColumnsButton.addActionListener(new ReorderColumnsActionListener(_propertyDescriptor, _beanJobBuilder));
      panel.add(reorderColumnsButton);
    }

    _popup = new JPopupMenu();

    // the invoker is not being set because it causes an unwanted Frame
View Full Code Here

TOP

Related Classes of org.eobjects.datacleaner.panels.DCPanel

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.