java.awt.dnd
Class DropTargetAdapter

java.lang.Object
  extended by java.awt.dnd.DropTargetAdapter
All Implemented Interfaces:
DropTargetListener, EventListener

public abstract class DropTargetAdapter
extends Object
implements DropTargetListener

This class implements DropTargetListener, and implements all methods with empty bodies. This allows a listener interested in implementing only a subset of these interfaces to extend this class and override only the desired methods.

Since:
1.4

Constructor Summary
DropTargetAdapter()
          Default constructor.
 
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 dropActionChanged(DropTargetDragEvent e)
          Called when the user modifies the drop gesture.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.awt.dnd.DropTargetListener
drop
 

Constructor Detail

DropTargetAdapter

public DropTargetAdapter()
Default constructor.

Method Detail

dragEnter

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

Specified by:
dragEnter in interface DropTargetListener
Parameters:
e - the event

dragOver

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

Specified by:
dragOver in interface DropTargetListener
Parameters:
e - the event

dropActionChanged

public 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.

Specified by:
dropActionChanged in interface DropTargetListener
Parameters:
e - the event

dragExit

public 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.

Specified by:
dragExit in interface DropTargetListener
Parameters:
e - the event