com.maryanovsky.gwtutils.client.ui.dnd
Class DragAndDrop

java.lang.Object
  extended by com.maryanovsky.gwtutils.client.ui.dnd.DragAndDrop

public class DragAndDrop
extends Object

A utility class for drag-and-drop support.

Author:
Maryanovsky Alexander

Constructor Summary
DragAndDrop()
           
 
Method Summary
static Object makeDraggable(Draggable draggable, Collection<? extends DropTarget> targets, Collection<? extends DndListener> listeners)
          Makes the specified Draggable actually draggable into the specified set of DropTargets.
static void makeUndraggable(Object dragManager)
          Makes the Draggable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DragAndDrop

public DragAndDrop()
Method Detail

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 DropTargets. The specified set of DndListeners 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