java.awt.dnd
public abstract class DragSourceAdapter extends Object implements DragSourceListener, DragSourceMotionListener
DragSourceListener
and
DragSourceMotionListener
, 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
See Also: DragSourceEvent DragSourceListener DragSourceMotionListener
UNKNOWN: updated to 1.4
Constructor Summary | |
---|---|
DragSourceAdapter()
Default constructor. |
Method Summary | |
---|---|
void | dragDropEnd(DragSourceDropEvent e)
Called when the drag and drop operation is complete. |
void | dragEnter(DragSourceDragEvent e)
Called when the cursor hotspot enters a drop site which will accept the
drag.
|
void | dragExit(DragSourceEvent e)
Called when the cursor hotspot moves outside of a drop site which will
accept the drag. |
void | dragMouseMoved(DragSourceDragEvent e)
Called whenever the mouse is moved during a drag-and-drop operation.
|
void | dragOver(DragSourceDragEvent e)
Called when the cursor hotspot moves inside of a drop site which will
accept the drag.
|
void | dropActionChanged(DragSourceDragEvent e)
Called when the user modifies the drop gesture. |
getDropSuccess
of the event is valid, and
getDropAction
holds the action requested by the drop site.
Furthermore, the DragSourceContext
is invalidated.
Parameters: e the event
Parameters: e the event
Parameters: e the event
Parameters: e the event
Parameters: e the event
Parameters: e the event