Uses of Interface
java.awt.dnd.DropTargetListener
| Package | Description |
|---|---|
| java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical User
Interface systems that provides a mechanism to transfer information between
two entities logically associated with presentation elements in the GUI.
|
-
Uses of DropTargetListener in java.awt.dnd
Classes in java.awt.dnd that implement DropTargetListener Modifier and Type Class Description classDropTargetTheDropTargetis associated with aComponentwhen thatComponentwishes to accept drops during Drag and Drop operations.classDropTargetAdapterAn abstract adapter class for receiving drop target events.Methods in java.awt.dnd with parameters of type DropTargetListener Modifier and Type Method Description voidDropTarget. addDropTargetListener(DropTargetListener dtl)Adds a newDropTargetListener(UNICAST SOURCE).voidDropTarget. removeDropTargetListener(DropTargetListener dtl)Removes the currentDropTargetListener(UNICAST SOURCE).Constructors in java.awt.dnd with parameters of type DropTargetListener Constructor Description DropTarget(Component c, int ops, DropTargetListener dtl)Creates aDropTargetgiven theComponentto associate itself with, anintrepresenting the default acceptable action(s) to support, and aDropTargetListenerto handle event processing.DropTarget(Component c, int ops, DropTargetListener dtl, boolean act)Creates aDropTargetgiven theComponentto associate itself with, anintrepresenting the default acceptable action(s) to support, aDropTargetListenerto handle event processing, and abooleanindicating if theDropTargetis currently accepting drops.DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)Creates a new DropTarget given theComponentto associate itself with, anintrepresenting the default acceptable action(s) to support, aDropTargetListenerto handle event processing, abooleanindicating if theDropTargetis currently accepting drops, and aFlavorMapto use (or null for the defaultFlavorMap).DropTarget(Component c, DropTargetListener dtl)Creates aDropTargetgiven theComponentto associate itself with, and theDropTargetListenerto handle event processing.