protected void setStatusValid() { _statusLabel.setText("Hadoop cluster ready"); _statusLabel.setIcon(imageManager.getImageIcon(IconUtils.STATUS_VALID, IconUtils.ICON_SIZE_SMALL)); } }
public static Icon getColumnIcon(final Column column, final int iconSize) { if (column.isPrimaryKey()) { return _imageManager.getImageIcon(MODEL_COLUMN_KEY, iconSize); } return _imageManager.getImageIcon(MODEL_COLUMN, iconSize); }
private void setStatusError(final String text) { _statusLabel.setText(text); _statusLabel.setIcon(imageManager.getImageIcon(IconUtils.STATUS_ERROR, IconUtils.ICON_SIZE_SMALL)); _saveButton.setEnabled(false); }
private void setStatusValid() { _statusLabel.setText("Valid"); _statusLabel.setIcon(imageManager.getImageIcon(IconUtils.STATUS_VALID, IconUtils.ICON_SIZE_SMALL)); _saveButton.setEnabled(true); }
public HelpIcon(final String helpMessage, final Icon tooltipIcon) { super(imageManager.getImageIcon(IconUtils.ACTION_HELP, IconUtils.ICON_SIZE_SMALL)); _tooltipIcon = tooltipIcon; _helpMessage = helpMessage; ToolTipManager.sharedInstance().registerComponent(this); }
protected JXTaskPane addTaskPane(final String iconImagePath, final String title, final JComponent content, final boolean expanded) { final ImageIcon icon = imageManager.getImageIcon(iconImagePath, IconUtils.ICON_SIZE_TASK_PANE); return addTaskPane(icon, title, content, expanded); }
@Override public void setStatusLabelValid() { _statusLabel.setIcon(imageManager.getImageIcon(IconUtils.STATUS_VALID, IconUtils.ICON_SIZE_SMALL)); }
public static JXTaskPane createTaskPane(final String title, final String imagePath) { final ImageIcon icon; if (Strings.isNullOrEmpty(imagePath)) { icon = null; } else { icon = ImageManager.get().getImageIcon(imagePath, IconUtils.ICON_SIZE_TASK_PANE); } return createTaskPane(title, icon); }
public static JComponent createBackToWelcomeScreenButton(final ActionListener backButtonActionListener) { final ImageIcon icon = ImageManager.get().getImageIcon(IconUtils.ACTION_BACK); final JButton backButton = WidgetFactory.createDefaultButton(null, icon); backButton.setOpaque(false); backButton.setBorder(null); backButton.setMargin(new Insets(0, 0, 0, 0)); backButton.addActionListener(backButtonActionListener); return backButton; }
public RemoveSourceTableMenuItem(final AnalysisJobBuilder analysisJobBuilder, final Table table) { super("Remove table from source", ImageManager.get().getImageIcon(IconUtils.ACTION_REMOVE_DARK, IconUtils.ICON_SIZE_SMALL)); _analysisJobBuilder = analysisJobBuilder; _table = table; addActionListener(this); }
public RemoveComponentMenuItem(final ComponentBuilder componentBuilder) { super("Remove component", ImageManager.get().getImageIcon(IconUtils.ACTION_REMOVE_DARK, IconUtils.ICON_SIZE_SMALL)); _componentBuilder = componentBuilder; addActionListener(this); }
public static JMenuItem createMenuItem(final String text, final String iconPath) { Icon icon = null; if (iconPath != null) { icon = ImageManager.get().getImageIcon(iconPath, IconUtils.ICON_SIZE_MENU_ITEM); } return createMenuItem(text, icon); }
public static JButton createSmallButton(final String text, final String imagePath) { final Icon icon = ImageManager.get().getImageIcon(imagePath, IconUtils.ICON_SIZE_SMALL); return createSmallButton(text, icon); }
private JComponent createColumnLabel(InputColumn<?> inputColumn) { final JLabel label = new JLabel(inputColumn.getName(), ImageManager.get().getImageIcon(IconUtils.MODEL_COLUMN, IconUtils.ICON_SIZE_SMALL), Alignment.LEFT.getLabelAlignment()); return label; }
private JButton createButton(final String imagePath, final String description) { final JButton button = WidgetFactory.createImageButton(imageManager.getImageIcon(imagePath)); final DCPopupBubble popupBubble = new DCPopupBubble(_glassPane, description, 0, 0, imagePath); popupBubble.attachTo(button); return button; }
private <D extends Datastore> JButton createNewDatastoreButton(final String title, final String description, final String imagePath, final Class<D> datastoreClass, final Class<? extends AbstractDialog> dialogClass, final DCPopupBubble.Position popupPosition) { final ImageIcon icon = imageManager.getImageIcon(imagePath, IconUtils.ICON_SIZE_LARGE); final JButton button = WidgetFactory.createImageButton(icon); final DCPopupBubble popupBubble = new DCPopupBubble(_glassPane, "<html><b>" + title + "</b><br/>" + description + "</html>", 0, 0, icon, popupPosition); popupBubble.attachTo(button); button.addActionListener(createActionListener(title, datastoreClass, dialogClass)); return button; }
private JButton createButton(final String imagePath, final String description) { final JButton button = WidgetFactory.createImageButton(imageManager.getImageIcon(imagePath)); final DCPopupBubble popupBubble = new DCPopupBubble(_glassPane, description, 0, 0, imagePath); popupBubble.attachTo(button); return button; }
public LoadingIcon() { super(); final ImageIcon icon = ImageManager.get().getImageIcon(ICON_PATH); setIcon(icon); icon.setImageObserver(this); setHorizontalAlignment(JLabel.CENTER); }
public static PopupButton createSmallPopupButton(final String text, final String imagePath) { final PopupButton b = new PopupButton(text, ImageManager.get().getImageIcon(imagePath, IconUtils.ICON_SIZE_SMALL)); b.setFont(WidgetUtils.FONT_SMALL); b.setMargin(new Insets(0, 0, 0, 0)); b.setUI(new MetalButtonUI()); b.setBackground(WidgetUtils.COLOR_WELL_BACKGROUND); final MatteBorder outerBorder = new MatteBorder(1, 1, 1, 1, WidgetUtils.BG_COLOR_LESS_BRIGHT); b.setBorder(new CompoundBorder(outerBorder, new EmptyBorder(2, 4, 2, 4))); b.setFocusPainted(false); return b; }
private void addTopLabels() { WidgetUtils.addToGridBag(DCLabel.bright("<html><b>Original value:</b></html>"), _panel, 1, _row); WidgetUtils.addToGridBag(DCLabel.bright("<html><b>New/mapped value:</b></html>"), _panel, 2, _row); _row++; WidgetUtils .addToGridBag(new JLabel(imageManager.getImageIcon(IconUtils.GENERIC_DATASTORE_IMAGEPATH)), _panel, 0, _row); WidgetUtils.addToGridBag(DCLabel.bright(_metadata.getDatastoreName()), _panel, 1, _row, GridBagConstraints.WEST); }