The DragSource Interface of the com.ms.object.dragdrop package 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.
public 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); }
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.