org.argouml.ui.explorer
Class DnDExplorerTree.ArgoDropTargetListener

java.lang.Object
  extended byorg.argouml.ui.explorer.DnDExplorerTree.ArgoDropTargetListener
All Implemented Interfaces:
DropTargetListener, EventListener
Enclosing class:
DnDExplorerTree

class DnDExplorerTree.ArgoDropTargetListener
extends Object
implements DropTargetListener


Constructor Summary
(package private) DnDExplorerTree.ArgoDropTargetListener()
           
 
Method Summary
 void dragEnter(DropTargetDragEvent dropTargetDragEvent)
           
 void dragExit(DropTargetEvent dropTargetEvent)
           
 void dragOver(DropTargetDragEvent dropTargetDragEvent)
          set correct cursor.
 void drop(DropTargetDropEvent dropTargetDropEvent)
          what is done when drag is released.
 void dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
          empty implementation - not used.
private  String isValidDropTarget(TreePath destinationPath, TreePath sourceTreePath)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DnDExplorerTree.ArgoDropTargetListener

DnDExplorerTree.ArgoDropTargetListener()
Method Detail

dragEnter

public void dragEnter(DropTargetDragEvent dropTargetDragEvent)
Specified by:
dragEnter in interface DropTargetListener

dragExit

public void dragExit(DropTargetEvent dropTargetEvent)
Specified by:
dragExit in interface DropTargetListener

dragOver

public void dragOver(DropTargetDragEvent dropTargetDragEvent)
set correct cursor.

Specified by:
dragOver in interface DropTargetListener

drop

public void drop(DropTargetDropEvent dropTargetDropEvent)
what is done when drag is released.

Specified by:
drop in interface DropTargetListener

isValidDropTarget

private String isValidDropTarget(TreePath destinationPath,
                                 TreePath sourceTreePath)
Returns:
a string message if dest is valid, else returns null.

dropActionChanged

public void dropActionChanged(DropTargetDragEvent dropTargetDragEvent)
empty implementation - not used.

Specified by:
dropActionChanged in interface DropTargetListener


ArgoUML © 1996-2004 (20050222)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook