public synchronized void syntheticUnbind() { boundButton.removePropertyChangeListener("model", this); boundButton.getModel().removeItemListener(this); boundButton = null; }
/** * Wrapper for the * <code>AbstractButton.setMnemonicIndex</code> or * <code>JLabel.setDisplayedMnemonicIndex</code> method. * @param item AbstractButton/JLabel or subclasses * @param index Index of the Character to underline under JDK1.4 * @param latinCode Latin Character Keycode to underline under JDK1.3 */ private static void setMnemonicIndex(Object item, int index) { if (item instanceof AbstractButton) { AbstractButton b = (AbstractButton) item; b.putClientProperty(PROP_DISPLAYED_MNEMONIC_INDEX, index); b.removePropertyChangeListener(PROP_DISPLAYED_MNEMONIC_INDEX, MNEMONIC_INDEX_LISTENER); b.setDisplayedMnemonicIndex(index); b.addPropertyChangeListener(PROP_DISPLAYED_MNEMONIC_INDEX, MNEMONIC_INDEX_LISTENER); } else if (item instanceof JLabel) { ((JLabel) item).setDisplayedMnemonicIndex(index); } } private static final String PROP_TEXT = "text"; // NOI18N
/** Removes the button from the group. * @param b The button to be removed */ void remove(AbstractButton b) { b.removePropertyChangeListener(listener); buttons.remove(b); }
/** Removes the button from the group. * @param b The button to be removed */ void remove(AbstractButton b) { b.removePropertyChangeListener(listener); buttons.remove(b); }
protected void listeningStopped() { button.removeItemListener(handler); button.removePropertyChangeListener("model", handler); handler = null; }
@Override public void uninstallListeners() { jcomp.removePropertyChangeListener(this.ghostPropertyListener); this.ghostPropertyListener = null; this.ghostModelChangeListener.unregisterListeners(); this.ghostModelChangeListener = null; }
@Override protected void uninstallListeners(AbstractButton b) { super.uninstallListeners(b); // b.removeMouseListener(handCursorListener); b.removePropertyChangeListener(pcListener); }
@Override protected void uninstallListeners(AbstractButton b) { super.uninstallListeners(b); // b.removeMouseListener(handCursorListener); b.removePropertyChangeListener(pcListener); }
@Override protected void uninstallListeners(AbstractButton b) { super.uninstallListeners(b); // b.removeMouseListener(handCursorListener); b.removePropertyChangeListener(pcListener); }
@Override protected void uninstallListeners(AbstractButton b) { super.uninstallListeners(b); // b.removeMouseListener(handCursorListener); b.removePropertyChangeListener(pcListener); }
@Override protected void uninstallListeners(AbstractButton b) { super.uninstallListeners(b); // b.removeMouseListener(handCursorListener); b.removePropertyChangeListener(pcListener); }
@Override protected void uninstallListeners(AbstractButton b) { this.substanceVisualStateTracker.uninstallListeners(b); this.substanceVisualStateTracker = null; b.removePropertyChangeListener(this.substancePropertyListener); this.substancePropertyListener = null; super.uninstallListeners(b); }
public synchronized void unbind() { if (bound) { bound = false; // fail dirty, no checks boundButton.removePropertyChangeListener("model", this); boundButton.getModel().removeItemListener(this); boundButton = null; } }
protected void uninstallListeners( AbstractButton b) { b.removeMouseListener( miml); b.removePropertyChangeListener( miml); b.removeFocusListener( miml); }
public synchronized void syntheticUnbind() { boundButton.removePropertyChangeListener("model", this); boundButton.getModel().removeItemListener(this); boundButton = null; }
protected void uninstallListeners( AbstractButton b) { b.removeMouseListener( miml); b.removePropertyChangeListener( miml); b.removeFocusListener( miml); }
@Override protected void uninstallListeners(AbstractButton b) { b.removePropertyChangeListener(substancePropertyListener); substancePropertyListener = null; this.stateTransitionTracker.unregisterModelListeners(); this.stateTransitionTracker.unregisterFocusListeners(); super.uninstallListeners(b); }
@Override protected void uninstallListeners(AbstractButton b) { b.removePropertyChangeListener(substancePropertyListener); substancePropertyListener = null; this.stateTransitionTracker.unregisterModelListeners(); this.stateTransitionTracker.unregisterFocusListeners(); super.uninstallListeners(b); }
protected void uninstallListeners(AbstractButton b) { BasicButtonListener listener = getButtonListener(b); if (listener != null) { b.removeMouseListener(listener); b.removeMouseMotionListener(listener); b.removeFocusListener(listener); b.removeChangeListener(listener); b.removePropertyChangeListener(listener); } }
protected void uninstallListeners(AbstractButton b) { BasicButtonListener listener = (BasicButtonListener) b.getClientProperty(this); b.putClientProperty(this, null); if (listener != null) { b.removeMouseListener(listener); b.removeMouseMotionListener(listener); b.removeFocusListener(listener); b.removeChangeListener(listener); b.removePropertyChangeListener(listener); } }