Java Code Examples for org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities#unregisterAWTEventListener()

The following examples show how to use org.pushingpixels.substance.internal.utils.SubstanceCoreUtilities#unregisterAWTEventListener() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: JRibbonFrame.java    From radiance with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
@SuppressWarnings("deprecation")
@Override
public void hide() {
    SubstanceCoreUtilities.unregisterAWTEventListener(this.awtEventListener);
    KeyTipManager.defaultManager().removeKeyTipListener(this.keyTipListener);
    super.hide();
}
 
Example 2
Source File: BasicRibbonBandUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 5 votes vote down vote up
public static boolean uninstall() {
    if (instance != null) {
        instance.installCount--;
        if (instance.installCount == 0) {
            SubstanceCoreUtilities.unregisterAWTEventListener(instance);
            instance = null;
        }
        return true;
    }
    return false;
}
 
Example 3
Source File: JRibbonFrame.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
@Override
public void dispose() {
    SubstanceCoreUtilities.unregisterAWTEventListener(this.awtEventListener);
    KeyTipManager.defaultManager().removeKeyTipListener(this.keyTipListener);
    super.dispose();
}
 
Example 4
Source File: BasicPopupPanelUI.java    From radiance with BSD 3-Clause "New" or "Revised" License 4 votes vote down vote up
/**
 * Uninstalls listeners from the associated command popup menu.
 */
protected void uninstallListeners() {
    SubstanceCoreUtilities.unregisterAWTEventListener(this.awtEventListener);
    this.awtEventListener = null;
}