java.awt.dnd.peer
Interface DragSourceContextPeer


public interface DragSourceContextPeer

This interface is supplied by the underlying window system platform to expose the behaviors of the Drag and Drop system to an originator of the same

Since:
1.2

Method Summary
 Cursor getCursor()
          return the current drag cursor
 void setCursor(Cursor c)
          set the current drag cursor
 void startDrag(DragSourceContext dsc, Cursor c, Image dragImage, Point imageOffset)
          start a drag
 void transferablesFlavorsChanged()
          notify the peer that the Transferables DataFlavors have changed
 

Method Detail

startDrag

public void startDrag(DragSourceContext dsc,
                      Cursor c,
                      Image dragImage,
                      Point imageOffset)
               throws InvalidDnDOperationException
start a drag

Throws:
InvalidDnDOperationException

getCursor

public Cursor getCursor()
return the current drag cursor


setCursor

public void setCursor(Cursor c)
               throws InvalidDnDOperationException
set the current drag cursor

Throws:
InvalidDnDOperationException

transferablesFlavorsChanged

public void transferablesFlavorsChanged()
notify the peer that the Transferables DataFlavors have changed