|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.MouseEvent
org.zkoss.zk.ui.event.DropEvent
public class DropEvent
Represents an event cause by user's dragging and dropping a component.
The component being dragged can be retrieved by getDragged()
.
The component that received the dragged component is Event.getTarget()
.
Field Summary |
---|
Fields inherited from class org.zkoss.zk.ui.event.MouseEvent |
---|
ALT_KEY, CTRL_KEY, LEFT_CLICK, MIDDLE_CLICK, RIGHT_CLICK, SHIFT_KEY |
Constructor Summary | |
---|---|
DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
int keys)
Deprecated. As of release 5.0.0, replaced with DropEvent(String,Component,Component,int,int,int) . |
|
DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
int pageX,
int pageY,
int keys)
Constructs a drop event. |
Method Summary | |
---|---|
java.lang.String |
getArea()
Not appliable to DropEvent . |
Component |
getDragged()
Returns the component being dragged and drop to Event.getTarget() . |
static DropEvent |
getDropEvent(AuRequest request)
Converts an AU request to a drop event. |
Methods inherited from class org.zkoss.zk.ui.event.MouseEvent |
---|
getKeys, getMouseEvent, getPageX, getPageY, getX, getY |
Methods inherited from class org.zkoss.zk.ui.event.Event |
---|
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DropEvent(java.lang.String name, Component target, Component dragged, int x, int y, int pageX, int pageY, int keys)
dragged
- The component being dragged and drop to Event.getTarget()
.public DropEvent(java.lang.String name, Component target, Component dragged, int x, int y, int keys)
DropEvent(String,Component,Component,int,int,int)
.
Method Detail |
---|
public static DropEvent getDropEvent(AuRequest request)
public final Component getDragged()
Event.getTarget()
.
public java.lang.String getArea()
DropEvent
.
It always returns null if you drag and drop a component to
components that partition itself into several areas, such
as imagemap
getArea
in class MouseEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |