public interface PsDropHandlerIf
Component
and then calls the drop listener DropListener#filesDropped.
Example:
Component myComp = new Component();
PsDropListenerIf myDropListener = new PsDropListener(); // implements PsDropListenerIf
PsDropHandlerIf myDropHandler = new PsDropHandler(); // implements PsDropHandlerIf
myDropHandler.configure(myComp, true, myDropListener);
myDropHandler calls:
myDropListener.filesDropped(files);
PsDropListenerIf| Modifier and Type | Method and Description |
|---|---|
boolean |
configure(java.awt.Component comp,
boolean bRecursive,
PsDropListenerIf dropListener)
Constructor with the option to recursively set drop targets.
|
boolean configure(java.awt.Component comp,
boolean bRecursive,
PsDropListenerIf dropListener)
Container, then each of its children
components will also listen for drops.comp - Component on which files will be dropped.bRecursive - Recursively set children as drop targets.dropListener - Listens for filesDropped.true if drag and drop is supported on current platform."