sun.awt.EventListenerAggregate Java Examples
The following examples show how to use
sun.awt.EventListenerAggregate.
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: SunClipboard.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #2
Source File: SunClipboard.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #3
Source File: SunClipboard.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentDataFlavors = null; } }
Example #4
Source File: SunClipboard.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #5
Source File: SunClipboard.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #6
Source File: SunClipboard.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentDataFlavors = null; } }
Example #7
Source File: SunClipboard.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #8
Source File: SunClipboard.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #9
Source File: SunClipboard.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #10
Source File: SunClipboard.java From hottub with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentFormats = null; } }
Example #11
Source File: SunClipboard.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentDataFlavors = null; } }
Example #12
Source File: SunClipboard.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
public synchronized void removeFlavorListener(FlavorListener listener) { if (listener == null) { return; } AppContext appContext = AppContext.getAppContext(); EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) appContext.get(CLIPBOARD_FLAVOR_LISTENER_KEY); if (contextFlavorListeners == null){ //else we throw NullPointerException, but it is forbidden return; } if (contextFlavorListeners.remove(listener) && --numberOfFlavorListeners == 0) { unregisterClipboardViewerChecked(); currentDataFlavors = null; } }
Example #13
Source File: SunClipboard.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #14
Source File: SunClipboard.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #15
Source File: SunClipboard.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #16
Source File: SunClipboard.java From openjdk-8 with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #17
Source File: SunClipboard.java From openjdk-8-source with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #18
Source File: SunClipboard.java From hottub with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #19
Source File: SunClipboard.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #20
Source File: SunClipboard.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #21
Source File: SunClipboard.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #22
Source File: SunClipboard.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #23
Source File: SunClipboard.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }
Example #24
Source File: SunClipboard.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
public synchronized FlavorListener[] getFlavorListeners() { EventListenerAggregate contextFlavorListeners = (EventListenerAggregate) AppContext.getAppContext().get(CLIPBOARD_FLAVOR_LISTENER_KEY); return contextFlavorListeners == null ? new FlavorListener[0] : (FlavorListener[])contextFlavorListeners.getListenersCopy(); }