站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

Drag and Drop DropTargetContextPeer definition - JDK 5 Documentation v1.2.2, Java 2 SDK 英文文档

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
Copyright © 1997, 1998 Sun Microsystems, Inc. All Rights Reserved.