Uses of Interface
java.awt.datatransfer.Transferable
-
Packages that use Transferable 软件包 描述 java.awt.datatransfer 提供用于在应用程序之间和之内传输数据的接口和类。java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,其提供了在GUI中与表示元素逻辑相关联的两个实体之间传递信息的机制。javax.swing 提供一组“轻量级”(全Java语言)组件,这些组件在所有平台上尽可能地工作。 -
-
Uses of Transferable in java.awt.datatransfer
Classes in java.awt.datatransfer that implement Transferable 变量和类型 类 描述 class
StringSelection
Transferable
,它实现了传输String
所需的功能。Fields in java.awt.datatransfer declared as Transferable 变量和类型 字段 描述 protected Transferable
Clipboard. 目录
剪贴板的内容。Methods in java.awt.datatransfer that return Transferable 变量和类型 方法 描述 Transferable
Clipboard. getContents(Object requestor)
返回表示剪贴板当前内容的可传输对象。Methods in java.awt.datatransfer with parameters of type Transferable 变量和类型 方法 描述 Reader
DataFlavor. getReaderForText(Transferable transferable)
获取文本flavor的Reader,如果需要,为预期的charset(编码)解码。void
ClipboardOwner. lostOwnership(Clipboard clipboard, Transferable contents)
通知此对象它不再是剪贴板所有者。void
Clipboard. setContents(Transferable contents, ClipboardOwner owner)
将剪贴板的当前内容设置为指定的可传输对象,并将指定的剪贴板所有者注册为新内容的所有者。 -
Uses of Transferable in java.awt.dnd
Classes in java.awt.dnd that implement Transferable 变量和类型 类 描述 protected class
DropTargetContext.TransferableProxy
TransferableProxy
是一个辅助内部类,它实现Transferable
接口,并充当另一个Transferable
对象的代理,该对象表示特定拖放操作的数据传输。Fields in java.awt.dnd declared as Transferable 变量和类型 字段 描述 protected Transferable
DropTargetContext.TransferableProxy. transferable
封装的Transferable
对象。Methods in java.awt.dnd that return Transferable 变量和类型 方法 描述 protected Transferable
DropTargetContext. createTransferableProxy(Transferable t, boolean local)
创建TransferableProxy以代理指定的Transferable。Transferable
DragSourceContext. getTransferable()
返回Transferable
与此相关DragSourceContext
。protected Transferable
DropTargetContext. getTransferable()
获取此操作的Transferable(代理)操作数Transferable
DropTargetDragEvent. getTransferable()
此方法返回Transferable对象,该对象表示与当前拖动操作关联的数据。Transferable
DropTargetDropEvent. getTransferable()
此方法返回与Transferable
关联的Transferable
对象。Methods in java.awt.dnd with parameters of type Transferable 变量和类型 方法 描述 protected DragSourceContext
DragSource. createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl)
创建DragSourceContext
以处理当前拖动操作。protected Transferable
DropTargetContext. createTransferableProxy(Transferable t, boolean local)
创建TransferableProxy以代理指定的Transferable。void
DragGestureEvent. startDrag(Cursor dragCursor, Transferable transferable)
给定此拖动操作的Transferable
表示此拖动操作的源数据的Cursor
,启动拖动操作。void
DragGestureEvent. startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
开始给出的初始拖拽Cursor
要显示,则Transferable
对象和DragSourceListener
使用。void
DragGestureEvent. startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl)
启动给定的初始拖拽Cursor
显示,拖动Image
,所述的偏移Image
,所述Transferable
对象和DragSourceListener
使用。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Transferable
拖动的目标数据和DragSourceListener
。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Transferable
拖动的目标数据,该DragSourceListener
和FlavorMap
。void
DragSource. startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl)
开始一拖,考虑到DragGestureEvent
启动拖动,初步Cursor
用,Image
拖动时,该偏移Image
从的热点起源Cursor
在触发,拖动的目标数据的瞬间,和DragSourceListener
。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
。Constructors in java.awt.dnd with parameters of type Transferable 构造器 描述 DragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl)
从名为DragSource
,该构造函数创建一个新DragSourceContext
给出的DragSourceContextPeer
这个拖累,DragGestureEvent
触发该Drag的初始Cursor
以用于拖动,(可选的)Image
当拖动正在发生显示的偏移Image
来自触发事件瞬间的热点,Transferable
主题数据,以及在拖放操作期间使用的DragSourceListener
。 -
Uses of Transferable in javax.swing
Methods in javax.swing that return Transferable 变量和类型 方法 描述 protected Transferable
TransferHandler. createTransferable(JComponent c)
创建Transferable
以用作数据传输的源。Transferable
TransferHandler.TransferSupport. getTransferable()
返回与此传输关联的Transferable
。Methods in javax.swing with parameters of type Transferable 变量和类型 方法 描述 protected void
TransferHandler. exportDone(JComponent source, Transferable data, int action)
导出数据后调用。Icon
TransferHandler. getVisualRepresentation(Transferable t)
返回一个建立传输外观的对象。boolean
TransferHandler. importData(JComponent comp, Transferable t)
导致从剪贴板或DND删除操作转移到组件。Constructors in javax.swing with parameters of type Transferable 构造器 描述 TransferSupport(Component component, Transferable transferable)
为给定组件创建TransferSupport
,isDrop()
false
为false
为Transferable
。
-