Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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

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 `DropTarget`s.
`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 `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

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD