@Override protected void uninstallListeners() { super.uninstallListeners(); comboBox.removeMouseListener(_rolloverListener); _rolloverListener = null; }
public Dimension getMinimumSize( JComponent c) { Dimension dim = super.getMinimumSize( c); if ( comboBox.isEditable() ) { dim.height = editor.getPreferredSize().height - 2; } dim.width += 20; return dim; }
@Override protected void uninstallDefaults() { super.uninstallDefaults(); LookAndFeel.uninstallBorder(comboBox); }
@Override protected void installListeners() { super.installListeners(); if (_rolloverListener == null) { _rolloverListener = createRolloverListener(); } comboBox.addMouseListener(_rolloverListener); }
@Override protected void installDefaults() { super.installDefaults(); JideSwingUtilities.installBorder(comboBox, createComboBoxBorder()); }
@Override protected JButton createArrowButton() { JButton button = super.createArrowButton(); if (isArrowButtonShownAsMandatory()) { button.setBackground(getMandatoryColor()); } return button; }
@Override public void configureArrowButton() { super.configureArrowButton(); if (isArrowButtonShownAsMandatory()) { arrowButton.setBackground(getMandatoryColor()); } }
@Override protected void installListeners() { super.installListeners(); if (((TentackleLookAndFeel)UIManager.getLookAndFeel()).isFocusAnimated()) { comboBox.addFocusListener(new KComboBoxFlasherListener()); } }
protected void installDefaults() { super.installDefaults(); oldOpaque = comboBox.isOpaque(); comboBox.setOpaque( false); }
@Override protected void uninstallListeners() { super.uninstallListeners(); TFlasherListener.removeFlasherListener(comboBox); }
protected void installListeners() { super.installListeners(); miML = new MiML(); comboBox.addMouseListener( miML); comboBox.addFocusListener( miML); }
protected void uninstallDefaults() { super.uninstallDefaults(); comboBox.setOpaque( oldOpaque); }
arrowButton != null && editor != null) { size = super.getMinimumSize(c); Insets margin = arrowButton.getMargin(); size.height += margin.top + margin.bottom - 2; size.width += margin.left + margin.right; } else { size = super.getMinimumSize(c);
protected void uninstallListeners() { super.uninstallListeners(); comboBox.removeMouseListener( miML); comboBox.removeFocusListener( miML); }
protected void installListeners() { super.installListeners(); if (popup instanceof BasicComboPopup) { popupHandler = new PopupHandler(); ((BasicComboPopup) popup).addPopupMenuListener(popupHandler); comboBox.addFocusListener(focusHandler = new FocusHandler()); } }
protected void uninstallListeners() { super.uninstallListeners(); if (popup instanceof BasicComboPopup) { ((BasicComboPopup) popup).removePopupMenuListener(popupHandler); comboBox.removeFocusListener(focusHandler); } }