public class DnD
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static Widget |
getDrop(Draggable drag,
Offset pt,
Event evt)
Returns the widget to drop to.
|
static Widget |
getDropTarget(Event evt,
Draggable drag)
Returns the drop target from the event, or the element from the event's
ClientX and ClientY.
|
static DOMElement |
ghost(Draggable drag,
Offset ofs,
String msg)
Ghost the DOM element being dragged.
|
public static Widget getDropTarget(Event evt, Draggable drag)
evt
- the DOM eventdrag
- the draggable controllerpublic static Widget getDrop(Draggable drag, Offset pt, Event evt)
drag
- the draggable controllerpt
- the mouse pointer's position.evt
- the DOM eventpublic static DOMElement ghost(Draggable drag, Offset ofs, String msg)
drag
- the draggable controllerofs
- the offset of the returned element (left/top)msg
- the message to show inside the returned elementCopyright © 2005-2023 Potix Corporation. All Rights Reserved.