64 * 65 */ 66 public abstract class SunDragSourceContextPeer implements DragSourceContextPeer { 67 68 private DragGestureEvent trigger; 69 private Component component; 70 private Cursor cursor; 71 private Image dragImage; 72 private Point dragImageOffset; 73 private long nativeCtxt; 74 private DragSourceContext dragSourceContext; 75 private int sourceActions; 76 77 private static boolean dragDropInProgress = false; 78 private static boolean discardingMouseEvents = false; 79 80 /* 81 * dispatch constants 82 */ 83 84 protected final static int DISPATCH_ENTER = 1; 85 protected final static int DISPATCH_MOTION = 2; 86 protected final static int DISPATCH_CHANGED = 3; 87 protected final static int DISPATCH_EXIT = 4; 88 protected final static int DISPATCH_FINISH = 5; 89 protected final static int DISPATCH_MOUSE_MOVED = 6; 90 91 /** 92 * construct a new SunDragSourceContextPeer 93 */ 94 95 public SunDragSourceContextPeer(DragGestureEvent dge) { 96 trigger = dge; 97 if (trigger != null) { 98 component = trigger.getComponent(); 99 } else { 100 component = null; 101 } 102 } 103 104 /** 105 * Synchro messages in AWT 106 */ 107 public void startSecondaryEventLoop(){} 108 public void quitSecondaryEventLoop(){} 109 | 64 * 65 */ 66 public abstract class SunDragSourceContextPeer implements DragSourceContextPeer { 67 68 private DragGestureEvent trigger; 69 private Component component; 70 private Cursor cursor; 71 private Image dragImage; 72 private Point dragImageOffset; 73 private long nativeCtxt; 74 private DragSourceContext dragSourceContext; 75 private int sourceActions; 76 77 private static boolean dragDropInProgress = false; 78 private static boolean discardingMouseEvents = false; 79 80 /* 81 * dispatch constants 82 */ 83 84 protected static final int DISPATCH_ENTER = 1; 85 protected static final int DISPATCH_MOTION = 2; 86 protected static final int DISPATCH_CHANGED = 3; 87 protected static final int DISPATCH_EXIT = 4; 88 protected static final int DISPATCH_FINISH = 5; 89 protected static final int DISPATCH_MOUSE_MOVED = 6; 90 91 /** 92 * construct a new SunDragSourceContextPeer 93 */ 94 95 public SunDragSourceContextPeer(DragGestureEvent dge) { 96 trigger = dge; 97 if (trigger != null) { 98 component = trigger.getComponent(); 99 } else { 100 component = null; 101 } 102 } 103 104 /** 105 * Synchro messages in AWT 106 */ 107 public void startSecondaryEventLoop(){} 108 public void quitSecondaryEventLoop(){} 109 |