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 {

    int  getTargetActions();
    void setTargetActions(int actions);
 
    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