org.argouml.ui.explorer
Class DnDExplorerTree.ArgoDropTargetListener
java.lang.Object
org.argouml.ui.explorer.DnDExplorerTree.ArgoDropTargetListener
- All Implemented Interfaces:
- DropTargetListener, EventListener
- Enclosing class:
- DnDExplorerTree
- class DnDExplorerTree.ArgoDropTargetListener
- extends Object
- implements DropTargetListener
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DnDExplorerTree.ArgoDropTargetListener
DnDExplorerTree.ArgoDropTargetListener()
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