public class DropEvent extends MouseEvent
The component being dragged can be retrieved by getDragged()
.
The component that received the dragged component is Event.getTarget()
.
ALT_KEY, CTRL_KEY, LEFT_CLICK, META_KEY, MIDDLE_CLICK, RIGHT_CLICK, SHIFT_KEY
Constructor and Description |
---|
DropEvent(java.lang.String name,
Component target,
Component dragged,
int x,
int y,
int pageX,
int pageY,
int keys)
Constructs a drop event.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getArea()
Inherited from
MouseEvent , but not applicable 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.
|
getAreaComponent, getKeys, getMouseEvent, getPageX, getPageY, getX, getY
getData, getEvent, getName, getPage, getTarget, isPropagatable, stopPropagation, toString
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 static DropEvent getDropEvent(AuRequest request)
public final Component getDragged()
Event.getTarget()
.public java.lang.String getArea()
MouseEvent
, but not applicable to DropEvent
.
It always returns null.getArea
in class MouseEvent
MouseEvent.getAreaComponent()
Copyright © 2005-2023 Potix Corporation. All Rights Reserved.