37 |
|
|
38 |
package java.awt.dnd.peer; |
package java.awt.dnd.peer; |
39 |
|
|
40 |
|
import java.awt.dnd.DropTarget; |
41 |
|
import java.awt.datatransfer.DataFlavor; |
42 |
|
import java.awt.datatransfer.Transferable; |
43 |
|
import java.awt.dnd.InvalidDnDOperationException; |
44 |
|
|
45 |
|
|
46 |
/** |
/** |
47 |
|
* Used to control state of recipient protocol from the |
48 |
|
* <code>DropTargetListener</code>. Occurs when a <code>Component</code> |
49 |
|
* with an associated <code>DropTarget</code> and visible geometry is first |
50 |
|
* intersected by a logical cursor. |
51 |
|
* |
52 |
* @author Michael Koch <konqueror@gmx.de> |
* @author Michael Koch <konqueror@gmx.de> |
53 |
*/ |
*/ |
54 |
public interface DropTargetContextPeer |
public interface DropTargetContextPeer |
55 |
{ |
{ |
56 |
} // interface DropTargetContextPeer |
public void setTargetActions(int actions); |
57 |
|
public int getTargetActions(); |
58 |
|
public DropTarget getDropTarget(); |
59 |
|
public DataFlavor[] getTransferDataFlavors(); |
60 |
|
public Transferable getTransferable() throws InvalidDnDOperationException; |
61 |
|
public boolean isTransferableJVMLocal(); |
62 |
|
public void acceptDrag(int dragAction); |
63 |
|
public void rejectDrag(); |
64 |
|
public void acceptDrop(int dropAction); |
65 |
|
public void rejectDrop(); |
66 |
|
public void dropComplete(boolean success); |
67 |
|
} |