java.lang.Objectjava.util.EventObject
java.awt.dnd.DropTargetEvent
public class DropTargetEvent
DropTargetEvent 是 DropTargetDragEvent 和 DropTargetDropEvent 的基类。它封装了 Drag 和 Drop 操作的当前状态,特别是当前的 DropTargetContext。
| 字段摘要 | |
|---|---|
protected DropTargetContext |
context 与此 DropTargetEvent 相关的 DropTargetContext。 |
| 从类 java.util.EventObject 继承的字段 |
|---|
source |
| 构造方法摘要 | |
|---|---|
DropTargetEvent(DropTargetContext dtc) 构造一个具有指定 DropTargetContext 的 DropTargetEvent。 |
|
| 方法摘要 | |
|---|---|
DropTargetContext |
getDropTargetContext() 此方法返回与该 DropTargetEvent 相关的 DropTargetContext。 |
| 从类 java.util.EventObject 继承的方法 |
|---|
getSource, toString |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 字段详细信息 |
|---|
protected DropTargetContext context
DropTargetEvent 相关的
DropTargetContext。
| 构造方法详细信息 |
|---|
public DropTargetEvent(DropTargetContext dtc)
DropTargetContext 的
DropTargetEvent。
dtc -
DropTargetContext
| 方法详细信息 |
|---|
public DropTargetContext getDropTargetContext()
DropTargetEvent 相关的
DropTargetContext。
DropTargetContext