org.zkoss.zk.ui.event
Class DropEvent
java.lang.Object
org.zkoss.zk.ui.event.Event
org.zkoss.zk.ui.event.MouseEvent
org.zkoss.zk.ui.event.DropEvent
- All Implemented Interfaces:
- java.io.Serializable
public class DropEvent
- extends MouseEvent
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()
.
- Author:
- tomyeh
- See Also:
- Serialized Form
Constructor Summary |
DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
int pageX,
int pageY,
int keys)
Constructs a drop event. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
DropEvent
public DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
int pageX,
int pageY,
int keys)
- Constructs a drop event.
- Parameters:
dragged
- The component being dragged and drop to Event.getTarget()
.- Since:
- 5.0.0
getDropEvent
public static DropEvent getDropEvent(AuRequest request)
- Converts an AU request to a drop event.
- Since:
- 5.0.0
getDragged
public final Component getDragged()
- Returns the component being dragged and drop to
Event.getTarget()
.
getArea
public java.lang.String getArea()
- Inheirted from
MouseEvent
, but not appliable to DropEvent
.
It always returns null.
- Overrides:
getArea
in class MouseEvent
- See Also:
MouseEvent.getAreaComponent()
Copyright © 2005-2011 Potix Corporation. All Rights Reserved.