| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
The DragSourceListener defines the 
 event interface for originators of
 Drag and Drop operations to track the state of the user's gesture, and to
 provide appropriate "drag over" 
 feedback to the user throughout the
 Drag and Drop operation.
| Method Summary | |
|  void | dragDropEnd(DragSourceDropEvent dsde)This method is invoked to signify that the Drag and Drop operation is complete. | 
|  void | dragEnter(DragSourceDragEvent dsde)Called as the hotspot enters a platform dependent drop site. | 
|  void | dragExit(DragSourceEvent dse)Called as the hotspot exits a platform dependent drop site. | 
|  void | dragOver(DragSourceDragEvent dsde)Called as the hotspot moves over a platform dependent drop site. | 
|  void | dropActionChanged(DragSourceDragEvent dsde)Called when the user has modified the drop gesture. | 
| Method Detail | 
public void dragEnter(DragSourceDragEvent dsde)
Component's  visible geometry.
 Component has an active 
 DropTarget associated with it.
 DropTarget's registered 
 DropTargetListener dragEnter() method is invoked and
 returns successfully.
 DropTargetListener invokes 
 the DropTargetDragEvent's acceptDrag() method to 
 accept the drag based upon interrogation of the source's 
 potential drop action(s) and available data types 
 (DataFlavors).
 dsde - the DragSourceDragEventpublic void dragOver(DragSourceDragEvent dsde)
Component
 associated with the previous dragEnter() invocation.
 Component still has a 
 DropTarget associated with it.
 DropTarget is still active.
 DropTarget's registered
 DropTargetListener dragOver() method 
 is invoked and returns successfully.
 DropTarget does not reject 
 the drag via rejectDrag()
 dsde - the DragSourceDragEventpublic void dropActionChanged(DragSourceDragEvent dsde)
dsde - the DragSourceDragEventpublic void dragExit(DragSourceEvent dse)
Component
 associated with the previous dragEnter() invocation.
 Component that the logical cursor's hotspot
 intersected that resulted in the previous dragEnter() invocation
 no longer has an active DropTarget or 
 DropTargetListener associated with it.
 DropTarget's 
 DropTargetListener has invoked rejectDrag()
 since the last dragEnter() or dragOver() invocation.
 dse - the DragSourceEventpublic void dragDropEnd(DragSourceDropEvent dsde)
DragSourceDropEvent can be used to 
 determine the termination state. The getDropAction() method
 returns the operation that the DropTarget
 selected (via the DropTargetDropEvent acceptDrop() parameter)
 to apply to the Drop operation. Once this method is complete, the
 current DragSourceContext and
 associated resources become invalid.
 dsde - the DragSourceDropEvent| 
 | JavaTM 2 Platform Std. Ed. v1.3.1 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Java, Java 2D, and JDBC are trademarks or registered trademarks of Oracle and/or its affiliates, in the US and other countries.
Copyright © 1995, 2010 Oracle and/or its affiliates.    All rights reserved.