com.maryanovsky.gwtutils.client.ui.dnd
Class DragAndDrop
java.lang.Object
com.maryanovsky.gwtutils.client.ui.dnd.DragAndDrop
public class DragAndDrop
- extends Object
A utility class for drag-and-drop support.
- Author:
- Maryanovsky Alexander
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DragAndDrop
public DragAndDrop()
makeDraggable
public static Object makeDraggable(Draggable draggable,
Collection<? extends DropTarget> targets,
Collection<? extends DndListener> listeners)
- Makes the specified
Draggable
actually draggable into the
specified set of DropTarget
s. The specified set of
DndListener
s will be notified of the various events ocurring
during the drag-and-drop gesture.
The method returns a "drag manager" object which can then be passed to
makeUndraggable(Object)
to disable the effect of this method
on the draggable.
makeUndraggable
public static void makeUndraggable(Object dragManager)
- Makes the Draggable