| 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 and Description |
|---|---|
class |
StringSelection
A
Transferable which implements the capability required to transfer a
String.
|
| Modifier and Type | Field and Description |
|---|---|
protected Transferable |
Clipboard.contents
|
| Modifier and Type | Method and Description |
|---|---|
Transferable |
Clipboard.getContents(Object
Returns a transferable object representing the current contents of the clipboard.
|
| Modifier and Type | Method and Description |
|---|---|
Reader |
DataFlavor.getReaderForText(Transferable
Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding).
|
void |
StringSelection.lostOwnership(Clipboard
|
void |
ClipboardOwner.lostOwnership(Clipboard
Notifies this object that it is no longer the clipboard owner.
|
void |
Clipboard.setContents(Transferable
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 and Description |
|---|---|
protected class |
DropTargetContext
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 and Description |
|---|---|
protected Transferable |
DropTargetContext.TransferableProxy.transferable
The encapsulated
Transferable object.
|
| Modifier and Type | Method and Description |
|---|---|
protected Transferable |
DropTargetContext.createTransferableProxy(Transferable
Creates a TransferableProxy to proxy for the specified Transferable.
|
Transferable |
DropTargetDragEvent.getTransferable()
This method returns the Transferable object that represents the data associated with the current drag operation.
|
protected Transferable |
DropTargetContext.getTransferable()
get the Transferable (proxy) operand of this operation
|
Transferable |
DragSourceContext.getTransferable()
Returns the
Transferable associated with this
DragSourceContext.
|
Transferable |
DropTargetDropEvent.getTransferable()
This method returns the
Transferable object associated with the drop.
|
| Modifier and Type | Method and Description |
|---|---|
protected DragSourceContext |
DragSource.createDragSourceContext(java
Creates the
DragSourceContext to handle the current drag operation.
|
protected Transferable |
DropTargetContext.createTransferableProxy(Transferable
Creates a TransferableProxy to proxy for the specified Transferable.
|
void |
DragGestureEvent.startDrag(Cursor
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
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
Starts the drag given the initial
Cursor to display, the
Transferable object, and the
DragSourceListener to use.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Image to drag, the offset of the
Image origin from the hotspot of the
Cursor at the instant of the trigger, the subject data of the drag, and the
DragSourceListener.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Image to drag, the offset of the
Image origin from the hotspot of the
Cursor at the instant of the trigger, the
Transferable subject data of the drag, the
DragSourceListener, and the
FlavorMap.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Transferable subject data of the drag, and the
DragSourceListener.
|
void |
DragSource.startDrag(DragGestureEvent
Start a drag, given the
DragGestureEvent that initiated the drag, the initial
Cursor to use, the
Transferable subject data of the drag, the
DragSourceListener, and the
FlavorMap.
|
| Constructor and Description | |
|---|---|
DragSourceContext(java
Called from
DragSource, this constructor creates a new
DragSourceContext given the
DragSourceContextPeer for this Drag, the
DragGestureEvent that triggered the Drag, the initial
Cursor to use for the Drag, an (optional)
Image to display while the Drag is taking place, the offset of the
Image origin from the hotspot at the instant of the triggering event, the
Transferable subject data, and the
DragSourceListener to use during the Drag and Drop operation.
|
| Modifier and Type | Class and Description |
|---|---|
class |
DataHandler
The DataHandler class provides a consistent interface to data available in many different sources and formats.
|
| Modifier and Type | Method and Description |
|---|---|
protected Transferable |
TransferHandler.createTransferable(JComponent
Creates a
Transferable to use as the source for a data transfer.
|
Transferable |
TransferHandler.TransferSupport.getTransferable()
Returns the
Transferable associated with this transfer.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
TransferHandler.exportDone(JComponent
Invoked after data has been exported.
|
Icon |
TransferHandler.getVisualRepresentation(Transferable
Returns an object that establishes the look of a transfer.
|
boolean |
TransferHandler.importData(JComponent
Causes a transfer to a component from a clipboard or a DND drop operation.
|
| Constructor and Description | |
|---|---|
TransferSupport(Component
Create a
TransferSupport with
isDrop()
false for the given component and
Transferable.
|