Uses of Interface
java.awt.datatransfer.Transferable
-
Packages that use Transferable 软件包 描述 java.awt.datatransfer 提供用于在应用程序之间和之间传输数据的接口和类。java.awt.dnd 拖放是在许多图形用户界面系统中发现的直接操纵手势,它提供了一种在逻辑上与GUI中的表示元素相关联的实体之间传递信息的机制。javax.activation javax.jnlp JNLP API旨在为Java Plugin中运行的JNLP应用程序提供附加服务,或者由Java Web Start启动。javax.swing 提供一套“轻量级”(全Java语言)组件,尽可能地在所有平台上工作。 -
-
Uses of Transferable in java.awt.datatransfer
Classes in java.awt.datatransfer that implement Transferable Modifier and Type Class 描述 class
StringSelection
ATransferable
,其实现传送String
所需的能力。Fields in java.awt.datatransfer declared as Transferable Modifier and Type Field 描述 protected Transferable
Clipboard. contents
剪贴板的内容。Methods in java.awt.datatransfer that return Transferable Modifier and Type 方法 描述 Transferable
Clipboard. getContents(Object requestor)
返回表示剪贴板当前内容的可转移对象。Methods in java.awt.datatransfer with parameters of type Transferable Modifier and Type 方法 描述 Reader
DataFlavor. getReaderForText(Transferable transferable)
获取一个文本风味的阅读器,如有必要,解码为预期的字符集(编码)。void
ClipboardOwner. lostOwnership(Clipboard clipboard, Transferable contents)
通知此对象不再是剪贴板所有者。void
StringSelection. 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 Modifier and Type Class 描述 protected class
DropTargetContext.TransferableProxy
TransferableProxy
是一个助手内部类,它实现Transferable
接口,并作为代表另一个Transferable
对象的代理,代表特定的拖放操作的数据传输。Fields in java.awt.dnd declared as Transferable Modifier and Type Field 描述 protected Transferable
DropTargetContext.TransferableProxy. transferable
封装Transferable
对象。Methods in java.awt.dnd that return Transferable Modifier and Type 方法 描述 protected Transferable
DropTargetContext. createTransferableProxy(Transferable t, boolean local)
创建一个TransferableProxy代理指定的Transferable。Transferable
DragSourceContext. getTransferable()
返回Transferable
与此相关DragSourceContext
。protected Transferable
DropTargetContext. getTransferable()
获取此操作的可转移(代理)操作数Transferable
DropTargetDragEvent. getTransferable()
此方法返回表示与当前拖动操作相关联的数据的Transferable对象。Transferable
DropTargetDropEvent. getTransferable()
此方法返回与该drop相关联的Transferable
对象。Methods in java.awt.dnd with parameters of type Transferable Modifier and Type 方法 描述 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)
开始拖动操作,给出Cursor
用于此拖动操作,Transferable
表示此拖动操作的源数据。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 Constructor 描述 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.activation
Classes in javax.activation that implement Transferable Modifier and Type Class 描述 class
DataHandler
DataHandler类为许多不同来源和格式的数据提供了一致的界面。 -
Uses of Transferable in javax.jnlp
Methods in javax.jnlp that return Transferable Modifier and Type 方法 描述 Transferable
ClipboardService. getContents()
返回表示剪贴板当前内容的Transferable
对象。Methods in javax.jnlp with parameters of type Transferable Modifier and Type 方法 描述 void
ClipboardService. setContents(Transferable contents)
将剪贴板的当前内容设置为指定的Transferable
对象。 -
Uses of Transferable in javax.swing
Methods in javax.swing that return Transferable Modifier and Type 方法 描述 protected Transferable
TransferHandler. createTransferable(JComponent c)
创建一个Transferable
作为数据传输的来源。Transferable
TransferHandler.TransferSupport. getTransferable()
返回与此传输相关联的Transferable
。Methods in javax.swing with parameters of type Transferable Modifier and Type 方法 描述 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 Constructor 描述 TransferSupport(Component component, Transferable transferable)
为给定的组件和Transferable
创建一个TransferSupport
,isDrop()
false
为Transferable
。
-