sun.awt.dnd.SunDragSourceContextPeer Java Examples
The following examples show how to use
sun.awt.dnd.SunDragSourceContextPeer.
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: EventDispatchThread.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #2
Source File: XMouseDragGestureRecognizer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #3
Source File: WMouseDragGestureRecognizer.java From hottub with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #4
Source File: XDragSourceContextPeer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #5
Source File: EventDispatchThread.java From dragonwell8_jdk with GNU General Public License v2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #6
Source File: XDragSourceContextPeer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #7
Source File: XDragSourceContextPeer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #8
Source File: EventDispatchThread.java From TencentKona-8 with GNU General Public License v2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #9
Source File: EventDispatchThread.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #10
Source File: XMouseDragGestureRecognizer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #11
Source File: WMouseDragGestureRecognizer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #12
Source File: XMouseDragGestureRecognizer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #13
Source File: XDragSourceContextPeer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #14
Source File: EventDispatchThread.java From JDKSourceCode1.8 with MIT License | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #15
Source File: WMouseDragGestureRecognizer.java From jdk8u-jdk with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #16
Source File: XMouseDragGestureRecognizer.java From jdk8u60 with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #17
Source File: WMouseDragGestureRecognizer.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #18
Source File: WMouseDragGestureRecognizer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #19
Source File: XMouseDragGestureRecognizer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #20
Source File: WMouseDragGestureRecognizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #21
Source File: XDragSourceContextPeer.java From openjdk-jdk8u with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #22
Source File: EventDispatchThread.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #23
Source File: XMouseDragGestureRecognizer.java From jdk8u_jdk with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #24
Source File: WMouseDragGestureRecognizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #25
Source File: XMouseDragGestureRecognizer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #26
Source File: XMouseDragGestureRecognizer.java From openjdk-jdk9 with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Do not allow right mouse button drag since Motif DnD does not // terminate drag operation on right mouse button release. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }
Example #27
Source File: XDragSourceContextPeer.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #28
Source File: EventDispatchThread.java From Bytecoder with Apache License 2.0 | 6 votes |
boolean filterAndCheckEvent(AWTEvent event) { boolean eventOK = true; synchronized (eventFilters) { for (int i = eventFilters.size() - 1; i >= 0; i--) { EventFilter f = eventFilters.get(i); EventFilter.FilterAction accept = f.acceptEvent(event); if (accept == EventFilter.FilterAction.REJECT) { eventOK = false; break; } else if (accept == EventFilter.FilterAction.ACCEPT_IMMEDIATELY) { break; } } } return eventOK && SunDragSourceContextPeer.checkEvent(event); }
Example #29
Source File: XDragSourceContextPeer.java From openjdk-8-source with GNU General Public License v2.0 | 6 votes |
public void handleDragReply(int action, int x, int y, int modifiers) { if (action == DnDConstants.ACTION_NONE && targetAction != DnDConstants.ACTION_NONE) { dragExit(x, y); } else if (action != DnDConstants.ACTION_NONE) { int type = 0; if (targetAction == DnDConstants.ACTION_NONE) { type = SunDragSourceContextPeer.DISPATCH_ENTER; } else { type = SunDragSourceContextPeer.DISPATCH_MOTION; } // Note that we use the modifiers state a postDragSourceDragEvent(action, modifiers, x, y, type); } targetAction = action; }
Example #30
Source File: WMouseDragGestureRecognizer.java From openjdk-8 with GNU General Public License v2.0 | 6 votes |
/** * determine the drop action from the event */ protected int mapDragOperationFromModifiers(MouseEvent e) { int mods = e.getModifiersEx(); int btns = mods & ButtonMask; // Prohibit multi-button drags. if (!(btns == InputEvent.BUTTON1_DOWN_MASK || btns == InputEvent.BUTTON2_DOWN_MASK || btns == InputEvent.BUTTON3_DOWN_MASK)) { return DnDConstants.ACTION_NONE; } return SunDragSourceContextPeer.convertModifiersToDropAction(mods, getSourceActions()); }