|
|||||||||
| Home >> All >> java >> awt >> [ dnd overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.awt.dnd
Interface DragSourceListener

- All Superinterfaces:
- java.util.EventListener
- All Known Implementing Classes:
- DragSourceAdapter, DragSourceContext
- public interface DragSourceListener
- extends java.util.EventListener
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.
- Since:
- 1.2
| 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 |
dragEnter
public void dragEnter(DragSourceDragEvent e)
- Called when the cursor hotspot enters a drop site which will accept the
drag.
dragOver
public void dragOver(DragSourceDragEvent e)
- Called when the cursor hotspot moves inside of a drop site which will
accept the drag.
dropActionChanged
public void dropActionChanged(DragSourceDragEvent 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.
dragExit
public void dragExit(DragSourceEvent 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.
dragDropEnd
public void dragDropEnd(DragSourceDropEvent e)
- Called when the drag and drop operation is complete. After this event,
getDropSuccessof the event is valid, andgetDropActionholds the action requested by the drop site. Furthermore, theDragSourceContextis invalidated.
|
|||||||||
| Home >> All >> java >> awt >> [ dnd overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC