软件包 | 描述 |
---|---|
java.awt.datatransfer |
提供用于在应用程序中的数据之间传输数据的接口和类。
|
java.awt.dnd |
拖放是在许多图形用户界面系统中发现的一个直接的操作手势,它提供了一种机制,将两个实体之间的信息的逻辑与在图形用户界面中的表示元素关联。
|
Modifier and Type | Interface and Description |
---|---|
interface |
FlavorTable
一种放松传统的1对1的限制FlavorMap的Map。
|
Modifier and Type | Class and Description |
---|---|
class |
SystemFlavorMap
是一个可配置的systemflavormapMap之间的“土著”(字符串),对应于特定平台的数据格式,和“口味”(dataflavors),对应平台独立的MIME类型。
|
Modifier and Type | Method and Description |
---|---|
static FlavorMap |
SystemFlavorMap.getDefaultFlavorMap()
返回默认flavormap这个线程的类加载器。
|
Modifier and Type | Method and Description |
---|---|
FlavorMap |
DropTarget.getFlavorMap()
获取与此相关的
FlavorMap
DropTarget 。
|
FlavorMap |
DragSource.getFlavorMap()
此方法返回此
DragSource 的
FlavorMap 。
|
Modifier and Type | Method and Description |
---|---|
void |
DropTarget.setFlavorMap(FlavorMap fm)
设置与此相关的
FlavorMap
DropTarget 。
|
void |
DragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
开始拖动,鉴于启动拖动
DragGestureEvent ,初始
Cursor 使用的
Image 阻,偏移的
Image 起源的
Cursor 热点在触发瞬间的
Transferable 主题数据的拖累,该
DragSourceListener ,和
FlavorMap 。
|
void |
DragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
开始拖动,鉴于启动拖动
DragGestureEvent ,初始
Cursor 使用的
Transferable 主题数据的拖累,该
DragSourceListener ,和
FlavorMap 。
|
Constructor and Description |
---|
DropTarget(Component c, int ops, DropTargetListener dtl, boolean act, FlavorMap fm)
创建一个新的droptarget给予
Component 本身相关联,表示默认接受的行动
int (S)的支持,一个
DropTargetListener 处理事件的处理,一个
boolean 表示如果
DropTarget 目前正在接受滴,和
FlavorMap 使用(或默认为空值
FlavorMap )。
|
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.