public class ListDragAndDropHandler extends Object implements DropTargetListener, DragGestureListener
Constructor and Description |
---|
ListDragAndDropHandler(JList list1,
JList list2,
ListDropAction action)
Cunstructor of this class.
|
Modifier and Type | Method and Description |
---|---|
void |
dragEnter(DropTargetDragEvent e) |
void |
dragExit(DropTargetEvent e) |
void |
dragGestureRecognized(DragGestureEvent e) |
void |
dragOver(DropTargetDragEvent e) |
void |
drop(DropTargetDropEvent e) |
void |
dropActionChanged(DropTargetDragEvent e) |
void |
setPaintCueLine(boolean list1,
boolean list2)
Enable printing of cueLines in the lists on DnD.
|
public ListDragAndDropHandler(JList list1, JList list2, ListDropAction action)
list1
- The first list.list2
- The second list (can be the same like the first).action
- The Interface for the drop action.public void setPaintCueLine(boolean list1, boolean list2)
list1
- Set this false to disables cueLine for the first list.list2
- Set this false to disables cueLine for the second list.public void dragGestureRecognized(DragGestureEvent e)
dragGestureRecognized
in interface DragGestureListener
public void dragEnter(DropTargetDragEvent e)
dragEnter
in interface DropTargetListener
public void dragOver(DropTargetDragEvent e)
dragOver
in interface DropTargetListener
public void dropActionChanged(DropTargetDragEvent e)
dropActionChanged
in interface DropTargetListener
public void dragExit(DropTargetEvent e)
dragExit
in interface DropTargetListener
public void drop(DropTargetDropEvent e)
drop
in interface DropTargetListener
TV-Browser 2.7.6, Copyright (C) 04-2003 Martin Oberhauser (martin@tvbrowser.org)