软件包 | 描述 |
---|---|
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 DragGestureListener |
DragGestureRecognizer.dragGestureListener
与此相关的
DragGestureListener
DragGestureRecognizer 。
|
Modifier and Type | Method and Description |
---|---|
void |
DragGestureRecognizer.addDragGestureListener(DragGestureListener dgl)
登记一个新的
DragGestureListener 。
|
DragGestureRecognizer |
DragSource.createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现这
DragSource
DragGestureRecognizer 默认的抽象类,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
<T extends DragGestureRecognizer> |
DragSource.createDragGestureRecognizer(类<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)
创建一个新的
DragGestureRecognizer 实现指定的抽象类
DragGestureRecognizer ,并将新创建的对象指定的
Component 和
DragGestureListener 。
|
void |
DragGestureRecognizer.removeDragGestureListener(DragGestureListener dgl)
注销当前DragGestureListener
|
Constructor and Description |
---|
DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
构建一个新的
DragGestureRecognizer 给予
DragSource 用于拖放操作,这
DragGestureRecognizer 应该“观察”引发的
Component 拖动手势,动作(S)这个拖放操作的支持,和
DragGestureListener 通知一旦拖启动手势已经被发现。
|
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.