软件包 | 描述 |
---|---|
java.awt |
包含创建用户界面和绘制图形和图像的所有类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
Modifier and Type | Method and Description |
---|---|
<T extends DragGestureRecognizer> |
Toolkit.createDragGestureRecognizer(类<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
创建一个具体的平台依赖性,要求draggesturerecognizer抽象类的子类,并与DragSource联合,组成和DragGestureListener指定。
|
Modifier and Type | Field and Description |
---|---|
protected DragSource |
DragGestureRecognizer.dragSource
与此相关的
DragSource
DragGestureRecognizer 。
|
Modifier and Type | Method and Description |
---|---|
static DragSource |
DragSource.getDefaultDragSource()
获取与底层平台相关的
DragSource 对象。
|
DragSource |
DragGestureEvent.getDragSource()
返回
DragSource 。
|
DragSource |
DragGestureRecognizer.getDragSource()
这个方法返回
DragSource 这
DragGestureRecognizer 将用以处理拖放操作。
|
DragSource |
DragSourceContext.getDragSource()
返回
DragSource 实例化这个
DragSourceContext 。
|
Constructor and Description |
---|
DragGestureRecognizer(DragSource ds)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作。
|
DragGestureRecognizer(DragSource ds, Component c)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,和
Component 这
DragGestureRecognizer 应该“观察”拖动起始姿势。
|
DragGestureRecognizer(DragSource ds, Component c, int sa)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,这
DragGestureRecognizer 应该“观察”引发的
Component 拖动手势,和行动(S)支持这个拖放操作。
|
DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,这
DragGestureRecognizer 应该“观察”引发的
Component 拖动手势,动作(S)这个拖放操作的支持,和
DragGestureListener 通知一旦拖启动手势已经被发现。
|
MouseDragGestureRecognizer(DragSource ds)
构建一个新的
MouseDragGestureRecognizer 给
Component 的
DragSource 。
|
MouseDragGestureRecognizer(DragSource ds, Component c)
构建一个新的
MouseDragGestureRecognizer 给
Component C
DragSource ,和
Component 观察。
|
MouseDragGestureRecognizer(DragSource ds, Component c, int act)
构建一个新的
MouseDragGestureRecognizer 给
Component C的
DragSource ,
Component 观察和行动(S)这个拖动操作允许的。
|
MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
构建一个新的
MouseDragGestureRecognizer 给
Component C的
DragSource ,
Component 观察、行动(S)这个拖动操作允许,和
DragGestureListener 通知时,拖动手势检测。
|
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.