public class DropTargetEvent extends EventObject
DropTargetEvent是
DropTargetDragEvent和
DropTargetDropEvent基类。它封装了拖放操作的当前状态,特别是当前
DropTargetContext。
| Modifier and Type | Field and Description |
|---|---|
protected DropTargetContext |
context
与此相关的
DropTargetContext
DropTargetEvent。
|
source| Constructor and Description |
|---|
DropTargetEvent(DropTargetContext dtc)
构建一个
DropTargetEvent对象指定的
DropTargetContext。
|
| Modifier and Type | Method and Description |
|---|---|
DropTargetContext |
getDropTargetContext()
此方法返回与此相关的
DropTargetContext
DropTargetEvent。
|
getSource, toStringprotected DropTargetContext context
DropTargetContext
DropTargetEvent。
public DropTargetEvent(DropTargetContext dtc)
DropTargetEvent对象指定的
DropTargetContext。
dtc -
DropTargetContext
NullPointerException -如果
dtc等于
null。
EventObject.getSource(),
getDropTargetContext()
public DropTargetContext getDropTargetContext()
DropTargetContext
DropTargetEvent。
DropTargetContext
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2014, Oracle and/or its affiliates. All rights reserved.