jdk/src/solaris/classes/sun/awt/X11/XDragSourceProtocol.java
changeset 24538 25bf8153fbfe
parent 21278 ef8a3a2a72f2
equal deleted inserted replaced
24537:ecad2d59bc19 24538:25bf8153fbfe
    24  */
    24  */
    25 
    25 
    26 package sun.awt.X11;
    26 package sun.awt.X11;
    27 
    27 
    28 import java.awt.datatransfer.Transferable;
    28 import java.awt.datatransfer.Transferable;
       
    29 import java.awt.datatransfer.DataFlavor;
    29 
    30 
    30 import java.awt.dnd.DnDConstants;
    31 import java.awt.dnd.DnDConstants;
    31 import java.awt.dnd.InvalidDnDOperationException;
    32 import java.awt.dnd.InvalidDnDOperationException;
    32 
    33 
    33 import java.util.Map;
    34 import java.util.Map;
    82      * initialized.
    83      * initialized.
    83      * @throws IllegalArgumentException if some argument has invalid value.
    84      * @throws IllegalArgumentException if some argument has invalid value.
    84      * @throws XException if some X call failed.
    85      * @throws XException if some X call failed.
    85      */
    86      */
    86     public final void initializeDrag(int actions, Transferable contents,
    87     public final void initializeDrag(int actions, Transferable contents,
    87                                      Map formatMap, long[] formats)
    88                                      Map<Long, DataFlavor> formatMap, long[] formats)
    88       throws InvalidDnDOperationException,
    89       throws InvalidDnDOperationException,
    89              IllegalArgumentException, XException {
    90              IllegalArgumentException, XException {
    90         XToolkit.awtLock();
    91         XToolkit.awtLock();
    91         try {
    92         try {
    92             try {
    93             try {
   108     }
   109     }
   109 
   110 
   110     /* The caller must hold AWT_LOCK. */
   111     /* The caller must hold AWT_LOCK. */
   111     protected abstract void initializeDragImpl(int actions,
   112     protected abstract void initializeDragImpl(int actions,
   112                                                Transferable contents,
   113                                                Transferable contents,
   113                                                Map formatMap, long[] formats)
   114                                                Map<Long, DataFlavor> formatMap,
       
   115                                                long[] formats)
   114       throws InvalidDnDOperationException, IllegalArgumentException, XException;
   116       throws InvalidDnDOperationException, IllegalArgumentException, XException;
   115 
   117 
   116     /**
   118     /**
   117      * Terminates the current drag operation (if any) and resets the internal
   119      * Terminates the current drag operation (if any) and resets the internal
   118      * state of this object.
   120      * state of this object.