Uses of Interface
java.awt.datatransfer.Transferable
Packages that use Transferable
Package
Description
Provides interfaces and classes for transferring data between and within
applications.
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.
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of Transferable in java.awt.datatransfer
Classes in java.awt.datatransfer that implement TransferableModifier and TypeClassDescriptionclassATransferablewhich implements the capability required to transfer aString.Fields in java.awt.datatransfer declared as TransferableModifier and TypeFieldDescriptionprotected TransferableClipboard.contentsContents of the clipboard.Methods in java.awt.datatransfer that return TransferableModifier and TypeMethodDescriptionClipboard.getContents(Object requestor) Returns a transferable object representing the current contents of the clipboard.Methods in java.awt.datatransfer with parameters of type TransferableModifier and TypeMethodDescriptionDataFlavor.getReaderForText(Transferable transferable) Gets a Reader for a text flavor, decoded, if necessary, for the expected charset (encoding).voidClipboardOwner.lostOwnership(Clipboard clipboard, Transferable contents) Notifies this object that it is no longer the clipboard owner.voidStringSelection.lostOwnership(Clipboard clipboard, Transferable contents) voidClipboard.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. -
Uses of Transferable in java.awt.dnd
Classes in java.awt.dnd that implement TransferableModifier and TypeClassDescriptionprotected classTransferableProxyis a helper inner class that implementsTransferableinterface and serves as a proxy for anotherTransferableobject which represents data transfer for a particular drag-n-drop operation.Fields in java.awt.dnd declared as TransferableModifier and TypeFieldDescriptionprotected TransferableDropTargetContext.TransferableProxy.transferableThe encapsulatedTransferableobject.Methods in java.awt.dnd that return TransferableModifier and TypeMethodDescriptionprotected TransferableDropTargetContext.createTransferableProxy(Transferable t, boolean local) Creates a TransferableProxy to proxy for the specified Transferable.DragSourceContext.getTransferable()Returns theTransferableassociated with thisDragSourceContext.protected TransferableDropTargetContext.getTransferable()get the Transferable (proxy) operand of this operationDropTargetDragEvent.getTransferable()This method returns the Transferable object that represents the data associated with the current drag operation.DropTargetDropEvent.getTransferable()This method returns theTransferableobject associated with the drop.Methods in java.awt.dnd with parameters of type TransferableModifier and TypeMethodDescriptionprotected DragSourceContextDragSource.createDragSourceContext(DragGestureEvent dgl, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable t, DragSourceListener dsl) Creates theDragSourceContextto handle the current drag operation.protected TransferableDropTargetContext.createTransferableProxy(Transferable t, boolean local) Creates a TransferableProxy to proxy for the specified Transferable.voidDragGestureEvent.startDrag(Cursor dragCursor, Transferable transferable) Starts the drag operation given theCursorfor this drag operation and theTransferablerepresenting the source data for this drag operation.voidDragGestureEvent.startDrag(Cursor dragCursor, Transferable transferable, DragSourceListener dsl) Starts the drag given the initialCursorto display, theTransferableobject, and theDragSourceListenerto use.voidDragGestureEvent.startDrag(Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl) Start the drag given the initialCursorto display, a dragImage, the offset of theImage, theTransferableobject, and theDragSourceListenerto use.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, and theDragSourceListener.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point dragOffset, Transferable transferable, DragSourceListener dsl) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, the subject data of the drag, and theDragSourceListener.voidDragSource.startDrag(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point imageOffset, Transferable transferable, DragSourceListener dsl, FlavorMap flavorMap) Start a drag, given theDragGestureEventthat initiated the drag, the initialCursorto use, theImageto drag, the offset of theImageorigin from the hotspot of theCursorat the instant of the trigger, theTransferablesubject data of the drag, theDragSourceListener, and theFlavorMap.Constructors in java.awt.dnd with parameters of type TransferableModifierConstructorDescriptionDragSourceContext(DragGestureEvent trigger, Cursor dragCursor, Image dragImage, Point offset, Transferable t, DragSourceListener dsl) Called fromDragSource, this constructor creates a newDragSourceContextgiven theDragSourceContextPeerfor this Drag, theDragGestureEventthat triggered the Drag, the initialCursorto use for the Drag, an (optional)Imageto display while the Drag is taking place, the offset of theImageorigin from the hotspot at the instant of the triggering event, theTransferablesubject data, and theDragSourceListenerto use during the Drag and Drop operation. -
Uses of Transferable in javax.swing
Methods in javax.swing that return TransferableModifier and TypeMethodDescriptionprotected TransferableTransferHandler.createTransferable(JComponent c) Creates aTransferableto use as the source for a data transfer.TransferHandler.TransferSupport.getTransferable()Returns theTransferableassociated with this transfer.Methods in javax.swing with parameters of type TransferableModifier and TypeMethodDescriptionprotected voidTransferHandler.exportDone(JComponent source, Transferable data, int action) Invoked after data has been exported.TransferHandler.getVisualRepresentation(Transferable t) Returns an object that establishes the look of a transfer.booleanTransferHandler.importData(JComponent comp, Transferable t) Causes a transfer to a component from a clipboard or a DND drop operation.Constructors in javax.swing with parameters of type TransferableModifierConstructorDescriptionTransferSupport(Component component, Transferable transferable) Create aTransferSupportwithisDrop()falsefor the given component andTransferable.