|
|
||||||||||||||||||||||
Interface DragSourcepublic interface DragSource { // Fields public static final int CANCEL; public static final int CONTINUE; public static final int DEFAULT_ACTION; public static final int DROP; // Methods public Object queryDragCursor(int effect); public int queryDragStatus(int modifiers); } This interface defines constants and methods that can be used by the source object of a dragdrop data transfer session. This interface allows a source object to customize the behavior of a drag operation as it progresses. The queryDragStatus method can be used to query the current drag status of a dragged object. Drag status depends on whether the source object is able to transfer data from its current location to the current location of the mouse. The queryDragCursor method retrieves an appropriate cursor for the drag operation, depending on the drag status. The cursor for a drag operation that can transfer the object to the current location is different from a cursor that cannot transfer the object. MethodsqueryDragCursorpublic Object queryDragCursor(int effect); queryDragStatuspublic int queryDragStatus(int modifiers); Fields
|