|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface DragSourceListener
This class allows an object to listen for drag and drop events. It can
be used to provide appropriate feedback for "drag over" actions. You can
also use a DragSourceAdapter
to filter the events you are
interested in.
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 |
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. |
Method Detail |
---|
void dragEnter(DragSourceDragEvent e)
e
- the drag source drag eventvoid dragOver(DragSourceDragEvent e)
e
- the drag source drag eventvoid dropActionChanged(DragSourceDragEvent e)
e
- the drag source drag eventvoid dragExit(DragSourceEvent e)
e
- the drag source drag eventvoid dragDropEnd(DragSourceDropEvent e)
getDropSuccess
of the event is valid, and
getDropAction
holds the action requested by the drop site.
Furthermore, the DragSourceContext
is invalidated.
e
- the drag source drag event
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |