java.awt.dnd
Interface DropTargetListener

All Superinterfaces:
EventListener
All Known Implementing Classes:
DropTarget, DropTargetAdapter

public interface DropTargetListener
extends EventListener

Since:
1.2

Method Summary
 void dragEnter(DropTargetDragEvent e)
          Called when the cursor hotspot enters a drop site which will accept the drag.
 void dragExit(DropTargetEvent e)
          Called when the cursor hotspot moves outside of a drop site which will accept the drag.
 void dragOver(DropTargetDragEvent e)
          Called when the cursor hotspot moves inside of a drop site which will accept the drag.
 void drop(DropTargetDropEvent e)
          Called when the drag operation has terminated with a drop.
 void dropActionChanged(DropTargetDragEvent e)
          Called when the user modifies the drop gesture.
 

Method Detail

dragEnter

void dragEnter(DropTargetDragEvent e)
Called when the cursor hotspot enters a drop site which will accept the drag.

Parameters:
e - the drag source drag event

dragOver

void dragOver(DropTargetDragEvent e)
Called when the cursor hotspot moves inside of a drop site which will accept the drag.

Parameters:
e - the drag source drag event

dropActionChanged

void dropActionChanged(DropTargetDragEvent e)
Called when the user modifies the drop gesture. This is often the case when additional mouse or key events are received during the drag.

Parameters:
e - the drag source drag event

dragExit

void dragExit(DropTargetEvent e)
Called when the cursor hotspot moves outside of a drop site which will accept the drag. This could also happen if the drop site is no longer active, or no longer accepts the drag.

Parameters:
e - the drag source drag event

drop

void drop(DropTargetDropEvent e)
Called when the drag operation has terminated with a drop.

Parameters:
e - the drag source drag event