CONTENTS | PREV | NEXT Drag and Drop


Appendix C : DropTargetContextPeer definition

Although not a normative part of this specification this definition is included for clarity:

public interface DropTargetContextPeer {
 
    DropTarget getDropTarget();
 
    DataFlavor[] getTransferDataFlavors();
 
    Transferable getTransferable()
	            throws InvalidDnDOperationException;
 
    boolean isTransferableJVMLocal();
 
    void acceptDrag(int dragAction);
 
    void rejectDrag();
 
    void acceptDrop(int dropAction);
 
    void rejectDrop();
 
    void dropComplete(boolean success);
}



CONTENTS | PREV | NEXT
Copyright © 1997 Sun Microsystems, Inc. All Rights Reserved.