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
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
|
Constructor Summary |
DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
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 keys)
- Constructs a drop event.
- Parameters:
dragged - The component being dragged and drop to Event.getTarget().
getDragged
public final Component getDragged()
- Returns the component being dragged and drop to
Event.getTarget().
getArea
public java.lang.String getArea()
- Not appliable to
DropEvent.
It always returns null if you drag and drop a component to
components that partition itself into several areas, such
as imagemap
- Overrides:
getArea in class MouseEvent
Copyright © 2005-2007 Potix Corporation. All Rights Reserved.