public void propertyChange(PropertyChangeEvent evt) { if (!jlProtocolDescription.isEnabled()) jlProtocolDescription.setForeground(Color.gray); else jlProtocolDescription.setForeground(Color.black); }
public void propertyChange(PropertyChangeEvent evt) { if (!jlEncryptionKeyTransportAlgorithmInboundDescription.isEnabled()) jlEncryptionKeyTransportAlgorithmInboundDescription.setForeground(Color.gray); else jlEncryptionKeyTransportAlgorithmInboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlPortDescription.isEnabled()) jlPortDescription.setForeground(Color.gray); else jlPortDescription.setForeground(Color.black); }
public void propertyChange(PropertyChangeEvent evt) { if (!jlRequireClientCertDescription.isEnabled()) jlRequireClientCertDescription.setForeground(Color.gray); else jlRequireClientCertDescription.setForeground(Color.black); }
public void propertyChange(PropertyChangeEvent evt) { if (!jlSignatureAlgorithmOutboundDescription.isEnabled()) jlSignatureAlgorithmOutboundDescription.setForeground(Color.gray); else jlSignatureAlgorithmOutboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlEncrytpionAlgorithmOutboundDescription.isEnabled()) jlEncrytpionAlgorithmOutboundDescription.setForeground(Color.gray); else jlEncrytpionAlgorithmOutboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlPasswordTypeOutboundDescription.isEnabled()) jlPasswordTypeOutboundDescription.setForeground(Color.gray); else jlPasswordTypeOutboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlEncryptionKeyIdentifierOutboundDescription.isEnabled()) jlEncryptionKeyIdentifierOutboundDescription.setForeground(Color.gray); else jlEncryptionKeyIdentifierOutboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlEncryptionKeyTransportAlgorithmOutboundDescription.isEnabled()) jlEncryptionKeyTransportAlgorithmOutboundDescription.setForeground(Color.gray); else jlEncryptionKeyTransportAlgorithmOutboundDescription.setForeground(Color.black); } });
public void propertyChange(PropertyChangeEvent evt) { if (!jlEncryptionKeyIdentifierInboundDescription.isEnabled()) jlEncryptionKeyIdentifierInboundDescription.setForeground(Color.gray); else jlEncryptionKeyIdentifierInboundDescription.setForeground(Color.black); } });
public void mouseClicked(MouseEvent ev) { if (super.isEnabled()) { mouseClickedAction(); } }
public void mousePressed(MouseEvent ev) { if (super.isEnabled()) { setForeground(pressColor); } }
@ScriptFunction(jsDoc = ENABLED_JSDOC) @Override public boolean getEnabled() { return super.isEnabled(); }
@Override public void mouseEntered(MouseEvent e) { int index = availableStrategiesComboBox.getSelectedIndex(); if (infoLabel.isEnabled() && index != -1) { richTooltip = buildTooltip(availableMergeStrategies[index]); } if (richTooltip != null) { richTooltip.showTooltip(infoLabel); } }
@Override public void mouseEntered(MouseEvent e) { if (windowInfoLabel.isEnabled()) { richTooltip = buildTooltip(); Point screenLocation = new Point(e.getLocationOnScreen().x, e.getLocationOnScreen().y + windowInfoLabel.getHeight()); richTooltip.showTooltip(windowInfoLabel, screenLocation); } }
@Override public void mouseEntered(MouseEvent e) { if (infoLabel.isEnabled() && model != null && model.getSelectedLayout() != null) { richTooltip = buildTooltip(model.getSelectedBuilder()); richTooltip.showTooltip(infoLabel, e.getLocationOnScreen()); } }
private int getLabelBaseline(JLabel label, int height) { Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon(); FontMetrics fm = label.getFontMetrics(label.getFont()); resetRects(label, height); SwingUtilities.layoutCompoundLabel(label, fm, "a", icon, label.getVerticalAlignment(), label.getHorizontalAlignment(), label.getVerticalTextPosition(), label.getHorizontalTextPosition(), viewRect, iconRect, textRect, label.getIconTextGap()); return textRect.y + fm.getAscent(); }
private static int getLabelBaseline(JLabel label, int height) { Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon(); FontMetrics fm = label.getFontMetrics(label.getFont()); resetRects(label, height); SwingUtilities.layoutCompoundLabel(label, fm, "a", icon, label.getVerticalAlignment(), label.getHorizontalAlignment(), label.getVerticalTextPosition(), label.getHorizontalTextPosition(), viewRect, iconRect, textRect, label.getIconTextGap()); return textRect.y + fm.getAscent(); }
protected void paint(SeaGlassContext context, Graphics g) { JLabel label = (JLabel) context.getComponent(); Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon(); g.setColor(context.getStyle().getColor(context, ColorType.TEXT_FOREGROUND)); g.setFont(style.getFont(context)); context.getStyle().getGraphicsUtils(context).paintText(context, g, label.getText(), icon, label.getHorizontalAlignment(), label.getVerticalAlignment(), label.getHorizontalTextPosition(), label.getVerticalTextPosition(), label.getIconTextGap(), label.getDisplayedMnemonicIndex(), 0); }
public Dimension getMaximumSize(JComponent c) { JLabel label = (JLabel) c; Icon icon = (label.isEnabled()) ? label.getIcon() : label.getDisabledIcon(); SeaGlassContext context = getContext(c); Dimension size = context.getStyle().getGraphicsUtils(context).getMaximumSize(context, context.getStyle().getFont(context), label.getText(), icon, label.getHorizontalAlignment(), label.getVerticalAlignment(), label.getHorizontalTextPosition(), label.getVerticalTextPosition(), label.getIconTextGap(), label.getDisplayedMnemonicIndex()); context.dispose(); return size; }