Uses of Interface
java.awt.dnd.DragGestureListener
-
Packages that use DragGestureListener 软件包 描述 java.awt 包含用于创建用户界面和绘制图形和图像的所有类。java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,其提供了在GUI中与表示元素逻辑相关联的两个实体之间传递信息的机制。 -
-
Uses of DragGestureListener in java.awt
Methods in java.awt with parameters of type DragGestureListener 变量和类型 方法 描述 <T extends DragGestureRecognizer>
TToolkit. createDragGestureRecognizer(类<T> abstractRecognizerClass, DragSource ds, Component c, int srcActions, DragGestureListener dgl)
创建请求的抽象DragGestureRecognizer类的具体的,平台相关的子类,并将其与指定的DragSource,Component和DragGestureListener相关联。 -
Uses of DragGestureListener in java.awt.dnd
Fields in java.awt.dnd declared as DragGestureListener 变量和类型 字段 描述 protected DragGestureListener
DragGestureRecognizer. dragGestureListener
DragGestureListener
与此DragGestureRecognizer
相关联。Methods in java.awt.dnd with parameters of type DragGestureListener 变量和类型 方法 描述 void
DragGestureRecognizer. addDragGestureListener(DragGestureListener dgl)
注册一个新的DragGestureListener
。DragGestureRecognizer
DragSource. createDefaultDragGestureRecognizer(Component c, int actions, DragGestureListener dgl)
创建一个新的DragGestureRecognizer
实现的默认抽象子类DragGestureRecognizer
这个DragSource
,并设置指定Component
和DragGestureListener
新创建的对象上。<T extends DragGestureRecognizer>
TDragSource. createDragGestureRecognizer(类<T> recognizerAbstractClass, Component c, int actions, DragGestureListener dgl)
创建一个新的DragGestureRecognizer
,它实现指定的抽象子类DragGestureRecognizer
,并在新创建的对象上设置指定的Component
和DragGestureListener
。void
DragGestureRecognizer. removeDragGestureListener(DragGestureListener dgl)
取消注册当前的DragGestureListenerConstructors in java.awt.dnd with parameters of type DragGestureListener 构造器 描述 DragGestureRecognizer(DragSource ds, Component c, int sa, DragGestureListener dgl)
构造一个新的DragGestureRecognizer
给定DragSource
用于此拖放操作,Component
这个DragGestureRecognizer
应该“观察”拖动启动手势,支持此拖放操作的动作,以及DragGestureListener
通知一次已检测到拖动启动手势。MouseDragGestureRecognizer(DragSource ds, Component c, int act, DragGestureListener dgl)
给出DragSource
(Component
)的Component
,观察Component
,允许进行此拖动操作的动作,以及DragGestureListener
在检测到拖动手势时通知,构造新的MouseDragGestureRecognizer
。
-