org.xnap.gui.util
Class DragFilesSupport

java.lang.Object
  extended by org.xnap.gui.util.DragFilesSupport
All Implemented Interfaces:
java.awt.dnd.DragGestureListener, java.awt.dnd.DragSourceListener, java.util.EventListener

public class DragFilesSupport
extends java.lang.Object
implements java.awt.dnd.DragSourceListener, java.awt.dnd.DragGestureListener

DragFilesSupport enables dragging of files for a component implementing the FileProvider interface.

See Also:
FileProvider

Constructor Summary
DragFilesSupport(java.awt.Component c, FileProvider fp)
          Constructs a new DragFilesSupport.
 
Method Summary
 void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
           
 void dragEnter(java.awt.dnd.DragSourceDragEvent event)
           
 void dragExit(java.awt.dnd.DragSourceEvent event)
           
 void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
          Called by the DragGestureRecognizer when a drag gesture is recognized.
 void dragOver(java.awt.dnd.DragSourceDragEvent event)
           
 void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragFilesSupport

public DragFilesSupport(java.awt.Component c,
                        FileProvider fp)
Constructs a new DragFilesSupport.

Parameters:
c -
fp -
Method Detail

dragDropEnd

public void dragDropEnd(java.awt.dnd.DragSourceDropEvent event)
Specified by:
dragDropEnd in interface java.awt.dnd.DragSourceListener

dragEnter

public void dragEnter(java.awt.dnd.DragSourceDragEvent event)
Specified by:
dragEnter in interface java.awt.dnd.DragSourceListener

dragExit

public void dragExit(java.awt.dnd.DragSourceEvent event)
Specified by:
dragExit in interface java.awt.dnd.DragSourceListener

dragOver

public void dragOver(java.awt.dnd.DragSourceDragEvent event)
Specified by:
dragOver in interface java.awt.dnd.DragSourceListener

dropActionChanged

public void dropActionChanged(java.awt.dnd.DragSourceDragEvent event)
Specified by:
dropActionChanged in interface java.awt.dnd.DragSourceListener

dragGestureRecognized

public void dragGestureRecognized(java.awt.dnd.DragGestureEvent event)
Called by the DragGestureRecognizer when a drag gesture is recognized.

Specified by:
dragGestureRecognized in interface java.awt.dnd.DragGestureListener


Copyright © 2001-2005 XNap Team. All Rights Reserved.