wjhk.jupload2.gui
Class DnDListener

java.lang.Object
  extended by wjhk.jupload2.gui.DnDListener
All Implemented Interfaces:
DropTargetListener, EventListener

public class DnDListener
extends Object
implements DropTargetListener

Our implementation of DND.

Version:
$Release$
Author:
William JinHua Kwong

Constructor Summary
DnDListener(JUploadPanel uploadPanel, UploadPolicy uploadPolicy)
          Creates a new instance.
 
Method Summary
 void dragEnter(DropTargetDragEvent e)
           
 void dragExit(DropTargetEvent e)
           
 void dragOver(DropTargetDragEvent e)
           
 void drop(DropTargetDropEvent e)
           
 void dropActionChanged(DropTargetDragEvent e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnDListener

public DnDListener(JUploadPanel uploadPanel,
                   UploadPolicy uploadPolicy)
Creates a new instance.

Parameters:
uploadPanel - The corresponding upload panel.
uploadPolicy -
Method Detail

dragEnter

public void dragEnter(DropTargetDragEvent e)
Specified by:
dragEnter in interface DropTargetListener
See Also:
DropTargetListener.dragEnter(java.awt.dnd.DropTargetDragEvent)

dragOver

public void dragOver(DropTargetDragEvent e)
Specified by:
dragOver in interface DropTargetListener
See Also:
DropTargetListener.dragOver(java.awt.dnd.DropTargetDragEvent)

dropActionChanged

public void dropActionChanged(DropTargetDragEvent e)
Specified by:
dropActionChanged in interface DropTargetListener
See Also:
DropTargetListener.dropActionChanged(java.awt.dnd.DropTargetDragEvent)

drop

public void drop(DropTargetDropEvent e)
Specified by:
drop in interface DropTargetListener
See Also:
DropTargetListener.drop(java.awt.dnd.DropTargetDropEvent)

dragExit

public void dragExit(DropTargetEvent e)
Specified by:
dragExit in interface DropTargetListener
See Also:
DropTargetListener.dragExit(java.awt.dnd.DropTargetEvent)