util.ui
Class ListDragAndDropHandler
java.lang.Object
util.ui.ListDragAndDropHandler
- All Implemented Interfaces:
- DragGestureListener, DropTargetListener, EventListener
public class ListDragAndDropHandler
- extends Object
- implements DropTargetListener, DragGestureListener
A class for DnD in JLists and between two of them.
- Author:
- René Mach
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ListDragAndDropHandler
public ListDragAndDropHandler(JList list1,
JList list2,
ListDropAction action)
- Cunstructor of this class.
- Parameters:
list1 - The first list.list2 - The second list (can be the same like the first).action - The Interface for the drop action.
setPaintCueLine
public void setPaintCueLine(boolean list1,
boolean list2)
- Enable printing of cueLines in the lists on DnD.
- Parameters:
list1 - Set this false to disables cueLine for the first list.list2 - Set this false to disables cueLine for the second list.
dragGestureRecognized
public void dragGestureRecognized(DragGestureEvent e)
- Specified by:
dragGestureRecognized in interface DragGestureListener
dragEnter
public void dragEnter(DropTargetDragEvent e)
- Specified by:
dragEnter in interface DropTargetListener
dragOver
public void dragOver(DropTargetDragEvent e)
- Specified by:
dragOver in interface DropTargetListener
dropActionChanged
public void dropActionChanged(DropTargetDragEvent e)
- Specified by:
dropActionChanged in interface DropTargetListener
dragExit
public void dragExit(DropTargetEvent e)
- Specified by:
dragExit in interface DropTargetListener
drop
public void drop(DropTargetDropEvent e)
- Specified by:
drop in interface DropTargetListener
TV-Browser 2.7.5, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)