软件包 | 描述 |
---|---|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
Modifier and Type | Method and Description |
---|---|
protected DragSourceContext |
DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp, DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
创建
DragSourceContext 处理当前的拖动操作。
|
DragSourceContext |
DragSourceEvent.getDragSourceContext()
这个方法返回
DragSourceContext 起源事件。
|
Constructor and Description |
---|
DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers)
构建了一个
DragSourceDragEvent 。
|
DragSourceDragEvent(DragSourceContext dsc, int dropAction, int action, int modifiers, int x, int y)
构建了一个
DragSourceDragEvent 给指定的
DragSourceContext ,用户滴行动,目标降作用,改性剂和坐标。
|
DragSourceDropEvent(DragSourceContext dsc)
构建一个拖不在一滴一
DragSourceDropEvent 结果。
|
DragSourceDropEvent(DragSourceContext dsc, int action, boolean success)
构建一个
DragSourceDropEvent 下降,给
DragSourceContext ,下降动作,和一个
boolean 表示如果放弃是成功的。
|
DragSourceDropEvent(DragSourceContext dsc, int action, boolean success, int x, int y)
构建一个
DragSourceDropEvent 下降,给
DragSourceContext ,下降的动作,一个
boolean 表示如果放弃是成功的,和坐标。
|
DragSourceEvent(DragSourceContext dsc)
构建一个
DragSourceEvent 指定
DragSourceContext 。
|
DragSourceEvent(DragSourceContext dsc, int x, int y)
构建一个
DragSourceEvent 指定
DragSourceContext ,和光标的位置坐标。
|
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.