Class SimpleFileDropListener

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