jv.objectGui
Interface PsDropHandlerIf
-
public interface PsDropHandlerIfHandles drag and drop events from the operating system onto aComponentand then calls the drop listenerDropListener#filesDropped.Example:
Following a drop event onto the component, the handler calls the listener: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);- Since:
- JavaView v.4.81.001
- See Also:
PsDropListenerIf- Author:
- Konrad Polthier
- Version:
- 05.05.17, 1.00 created (kp) JavaView interface to package FileDrop by Robert Harder.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method and Description booleanconfigure(java.awt.Component comp, boolean bRecursive, PsDropListenerIf dropListener)Constructor with the option to recursively set drop targets.
-
-
-
Method Detail
-
configure
boolean configure(java.awt.Component comp, boolean bRecursive, PsDropListenerIf dropListener)Constructor with the option to recursively set drop targets. If the component is aContainer, then each of its children components will also listen for drops.- Parameters:
comp- Component on which files will be dropped.bRecursive- Recursively set children as drop targets.dropListener- Listens forfilesDropped.- Returns:
trueif drag and drop is supported on current platform.- Since:
- 1.0
-
-
"