org.tbee.swing.tree
Class BeforeOnAfterTreeDropListener
java.lang.Object
org.tbee.swing.tree.BeforeOnAfterTreeDropListener
- All Implemented Interfaces:
- DropTargetListener, EventListener
public class BeforeOnAfterTreeDropListener
- extends Object
- implements DropTargetListener
This adds a enhanced DropTargetListener that gives the possibility to drop before, on or after a treenode.
For usage see the test code since processing the drop event is not trivial.
- Version:
- $Revision: 1.4 $
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SOURCECODE_VERSION
public static final String SOURCECODE_VERSION
- Standard variable for determining version of a class file.
- See Also:
- Constant Field Values
treePath
protected TreePath treePath
before
protected Boolean before
BeforeOnAfterTreeDropListener
public BeforeOnAfterTreeDropListener()
getBefore
public Boolean getBefore()
droppedBeforeNode
public boolean droppedBeforeNode()
droppedOnNode
public boolean droppedOnNode()
droppedAfterNode
public boolean droppedAfterNode()
dragEnter
public void dragEnter(DropTargetDragEvent dtde)
- Specified by:
dragEnter in interface DropTargetListener
dragOver
public void dragOver(DropTargetDragEvent dtde)
- Specified by:
dragOver in interface DropTargetListener
dropActionChanged
public void dropActionChanged(DropTargetDragEvent dtde)
- Specified by:
dropActionChanged in interface DropTargetListener
dragExit
public void dragExit(DropTargetEvent dte)
- Specified by:
dragExit in interface DropTargetListener
drop
public void drop(DropTargetDropEvent dtde)
- Specified by:
drop in interface DropTargetListener
main
public static void main(String[] args)
Copyright © 2012 KnowledgePlaza. All Rights Reserved.