Package wt.clients.dnd
Class SimpleFileDropListener
java.lang.Object
wt.clients.dnd.SimpleFileDropListener
- All Implemented Interfaces:
DropTargetListener,EventListener
A simple DropListener that listens for file drag-overs and drops and
signals drag-over state and file processing handlers accordingly. See
setDragStateListener() and setFileHandler().
Supported API: true
Extendable: false
Supported API: true
Extendable: false
-
Method Summary
Modifier and TypeMethodDescriptionstatic final voidregister(Component component, SimpleDragStateListener dragStateListener, FileHandler fileHandler) Create a new instance of this class with the given callbacks and register this new instance with the given component.
-
Method Details
-
register
public static final void register(Component component, SimpleDragStateListener dragStateListener, FileHandler fileHandler) Create a new instance of this class with the given callbacks and register this new instance with the given component.
Supported API: true- Parameters:
component- the component the drop listener is to be attached todragStateListener- callback for drag over state changesfileHandler- file processing callback
-