zk
Class DnD

java.lang.Object
  extended by zk.DnD

public class DnD
extends java.lang.Object

Drag-and-drop utility. It is the low-level utility reserved for overriding for advanced customization.


Method Summary
static Widget getDrop(Draggable drag, Offset pt, Event evt)
          Returns the widget to drop to.
static DOMElement ghost(Draggable drag, Offset ofs, String msg)
          Ghost the DOM element being dragged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getDrop

public static Widget getDrop(Draggable drag,
                             Offset pt,
                             Event evt)
Returns the widget to drop to.

Parameters:
drag - the draggable controller
pt - the mouse pointer's position.
evt - the DOM event
Returns:
zk.Widget

ghost

public static DOMElement ghost(Draggable drag,
                               Offset ofs,
                               String msg)
Ghost the DOM element being dragged.

Parameters:
drag - the draggable controller
ofs - the offset of the returned element (left/top)
msg - the message to show inside the returned element
Returns:
DOMElement the element representing what is being dragged


Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo