48 import java.util.Map;
49 import java.util.Arrays;
50
51 import sun.util.logging.PlatformLogger;
52
53 import java.io.IOException;
54 import java.io.InputStream;
55
56 import sun.awt.AppContext;
57 import sun.awt.AWTPermissions;
58 import sun.awt.SunToolkit;
59 import sun.awt.datatransfer.DataTransferer;
60 import sun.awt.datatransfer.ToolkitThreadBlockedHandler;
61
62 /**
63 * <p>
64 * The SunDropTargetContextPeer class is the generic class responsible for handling
65 * the interaction between a windowing systems DnD system and Java.
66 * </p>
67 *
68 * @since JDK1.3.1
69 *
70 */
71
72 public abstract class SunDropTargetContextPeer implements DropTargetContextPeer, Transferable {
73
74 /*
75 * A boolean constant that requires the peer to wait until the
76 * SunDropTargetEvent is processed and return the status back
77 * to the native code.
78 */
79 public static final boolean DISPATCH_SYNC = true;
80 private DropTarget currentDT;
81 private DropTargetContext currentDTC;
82 private long[] currentT;
83 private int currentA; // target actions
84 private int currentSA; // source actions
85 private int currentDA; // current drop action
86 private int previousDA;
87
88 private long nativeDragContext;
|
48 import java.util.Map;
49 import java.util.Arrays;
50
51 import sun.util.logging.PlatformLogger;
52
53 import java.io.IOException;
54 import java.io.InputStream;
55
56 import sun.awt.AppContext;
57 import sun.awt.AWTPermissions;
58 import sun.awt.SunToolkit;
59 import sun.awt.datatransfer.DataTransferer;
60 import sun.awt.datatransfer.ToolkitThreadBlockedHandler;
61
62 /**
63 * <p>
64 * The SunDropTargetContextPeer class is the generic class responsible for handling
65 * the interaction between a windowing systems DnD system and Java.
66 * </p>
67 *
68 * @since 1.3.1
69 *
70 */
71
72 public abstract class SunDropTargetContextPeer implements DropTargetContextPeer, Transferable {
73
74 /*
75 * A boolean constant that requires the peer to wait until the
76 * SunDropTargetEvent is processed and return the status back
77 * to the native code.
78 */
79 public static final boolean DISPATCH_SYNC = true;
80 private DropTarget currentDT;
81 private DropTargetContext currentDTC;
82 private long[] currentT;
83 private int currentA; // target actions
84 private int currentSA; // source actions
85 private int currentDA; // current drop action
86 private int previousDA;
87
88 private long nativeDragContext;
|