Package | Description |
---|---|
java.awt.datatransfer |
Provides interfaces and classes for transferring data
between and within applications.
|
java.awt.dnd |
Drag and Drop is a direct manipulation gesture found in many Graphical
User Interface systems that provides a mechanism to transfer
information between two entities logically associated with presentation
elements in the GUI.
|
javax.activation | |
javax.swing |
Provides a set of "lightweight"
(all-Java language) components that,
to the maximum degree possible, work the same on all platforms.
|
Modifier and Type | Class | Description |
---|---|---|
class |
StringSelection
A
Transferable which implements the capability required
to transfer a String . |
Modifier and Type | Field | Description |
---|---|---|
protected Transferable |
Clipboard.contents |
Modifier and Type | Method | Description |
---|---|---|
Transferable |
Clipboard.getContents(Object requestor)
Returns a transferable object representing the current contents
of the clipboard.
|
Modifier and Type | Method | Description |
---|---|---|
Reader |
DataFlavor.getReaderForText(Transferable transferable)
Gets a Reader for a text flavor, decoded, if necessary, for the expected
charset (encoding).
|
|
void |
StringSelection.lostOwnership(Clipboard clipboard,
Transferable contents) |
|
void |
ClipboardOwner.lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the clipboard owner.
|
|
void |
Clipboard.setContents(Transferable contents,
ClipboardOwner owner)
Sets the current contents of the clipboard to the specified
transferable object and registers the specified clipboard owner
as the owner of the new contents.
|
Modifier and Type | Class | Description |
---|---|---|
protected class |
DropTargetContext.TransferableProxy
TransferableProxy is a helper inner class that implements
Transferable interface and serves as a proxy for another
Transferable object which represents data transfer for
a particular drag-n-drop operation. |
Modifier and Type | Field | Description |
---|---|---|
protected Transferable |
DropTargetContext.TransferableProxy.transferable
The encapsulated
Transferable object. |
Modifier and Type | Method | Description |
---|---|---|
protected Transferable |
DropTargetContext.createTransferableProxy(Transferable t,
boolean local)
Creates a TransferableProxy to proxy for the specified
Transferable.
|
|
Transferable |
DragSourceContext.getTransferable()
Returns the
Transferable associated with
this DragSourceContext . |
|
protected Transferable |
DropTargetContext.getTransferable()
get the Transferable (proxy) operand of this operation
|
|
Transferable |
DropTargetDropEvent.getTransferable()
This method returns the
Transferable object
associated with the drop. |
|
Transferable |
DropTargetDragEvent.getTransferable()
This method returns the Transferable object that represents
the data associated with the current drag operation.
|
Modifier and Type | Method | Description |
---|---|---|
protected DragSourceContext |
DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
DragGestureEvent dgl,
Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable t,
DragSourceListener dsl)
Creates the
DragSourceContext to handle the current drag
operation. |
|
protected Transferable |
DropTargetContext.createTransferableProxy(Transferable t,
boolean local)
Creates a TransferableProxy to proxy for the specified
Transferable.
|
|
void |
DragGestureEvent.startDrag(Cursor dragCursor,
Image dragImage,
Point imageOffset,
Transferable transferable,
DragSourceListener dsl)
Start the drag given the initial
Cursor to display,
a drag Image , the offset of
the Image ,
the Transferable object, and
the DragSourceListener to use. |
|
void |
DragGestureEvent.startDrag(Cursor dragCursor,
Transferable transferable)
Starts the drag operation given the
Cursor for this drag
operation and the Transferable representing the source data
for this drag operation. |
|
void |
DragGestureEvent.startDrag(Cursor dragCursor,
Transferable transferable,
DragSourceListener dsl)
Starts the drag given the initial
Cursor to display,
the Transferable object,
and the DragSourceListener to use. |
|
void |
DragSource.startDrag(DragGestureEvent trigger,
Cursor dragCursor,
Image dragImage,
|