|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.awt.dnd.DragSourceAdapter
public abstract class DragSourceAdapter
This class implements 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.
DragSourceEvent,
DragSourceListener,
DragSourceMotionListener| 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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DragSourceAdapter()
| Method Detail |
|---|
public void dragEnter(DragSourceDragEvent e)
dragEnter in interface DragSourceListenere - the eventpublic void dragOver(DragSourceDragEvent e)
dragOver in interface DragSourceListenere - the eventpublic void dragMouseMoved(DragSourceDragEvent e)
dragMouseMoved in interface DragSourceMotionListenere - the eventpublic void dropActionChanged(DragSourceDragEvent e)
dropActionChanged in interface DragSourceListenere - the eventpublic void dragExit(DragSourceEvent e)
dragExit in interface DragSourceListenere - the eventpublic void dragDropEnd(DragSourceDropEvent e)
getDropSuccess of the event is valid, and
getDropAction holds the action requested by the drop site.
Furthermore, the DragSourceContext is invalidated.
dragDropEnd in interface DragSourceListenere - the event
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||