Java Code Examples for sun.awt.dnd.SunDropTargetEvent#getSource()
The following examples show how to use
sun.awt.dnd.SunDropTargetEvent#getSource() .
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: WDropTargetContextPeer.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 2
Source File: WDropTargetContextPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 3
Source File: WDropTargetContextPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 4
Source File: WDropTargetContextPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 5
Source File: WDropTargetContextPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 6
Source File: WDropTargetContextPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 7
Source File: WDropTargetContextPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 8
Source File: WDropTargetContextPeer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 9
Source File: WDropTargetContextPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 10
Source File: WDropTargetContextPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 11
Source File: WDropTargetContextPeer.java From hottub with GNU General Public License v2.0 | 6 votes |
@Override protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { @Override public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 12
Source File: XDropTargetContextPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 13
Source File: XDropTargetContextPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 14
Source File: WDropTargetContextPeer.java From openjdk-8 with GNU General Public License v2.0 | 5 votes |
protected void eventPosted(final SunDropTargetEvent e) { if (e.getID() != SunDropTargetEvent.MOUSE_DROPPED) { Runnable runnable = new Runnable() { public void run() { e.getDispatcher().unregisterAllEvents(); } }; // NOTE: this PeerEvent must be a NORM_PRIORITY event to be // dispatched after this SunDropTargetEvent, but before the next // one, so we should pass zero flags. PeerEvent peerEvent = new PeerEvent(e.getSource(), runnable, 0); SunToolkit.executeOnEventHandlerThread(peerEvent); } }
Example 15
Source File: XDropTargetContextPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 16
Source File: XDropTargetContextPeer.java From hottub with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 17
Source File: XDropTargetContextPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 18
Source File: XDropTargetContextPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 19
Source File: XDropTargetContextPeer.java From jdk8u60 with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }
Example 20
Source File: XDropTargetContextPeer.java From dragonwell8_jdk with GNU General Public License v2.0 | 5 votes |
private boolean processSunDropTargetEvent(SunDropTargetEvent event) { Object source = event.getSource(); if (source instanceof Component) { ComponentPeer peer = ((Component)source).getPeer(); if (peer instanceof XEmbedCanvasPeer) { XEmbedCanvasPeer xEmbedCanvasPeer = (XEmbedCanvasPeer)peer; /* The native context is the pointer to the XClientMessageEvent structure. */ long ctxt = getNativeDragContext(); if (logger.isLoggable(PlatformLogger.Level.FINER)) { logger.finer(" processing " + event + " ctxt=" + ctxt + " consumed=" + event.isConsumed()); } /* If the event is not consumed, pass it to the XEmbedCanvasPeer for processing. */ if (!event.isConsumed()) { // NOTE: ctxt can be zero at this point. if (xEmbedCanvasPeer.processXEmbedDnDEvent(ctxt, event.getID())) { event.consume(); return true; } } } } return false; }