wt.clients.dnd
Class SimpleFileDropListener

java.lang.Object
  extended by wt.clients.dnd.SimpleFileDropListener
All Implemented Interfaces:
DropTargetListener, EventListener

public class SimpleFileDropListener
extends Object
implements DropTargetListener

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


Method Summary
static 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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 to
dragStateListener - callback for drag over state changes
fileHandler - file processing callback