Uses of Interface
java.awt.datatransfer.Transferable
-
Packages that use Transferable 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.swing 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 Transferable Modifier and Type Class Description classStringSelectionATransferablewhich implements the capability required to transfer aString.Fields in java.awt.datatransfer declared as Transferable Modifier and Type Field Description protected TransferableClipboard. contentsContents of the clipboard.Methods in java.awt.datatransfer that return Transferable Modifier and Type Method Description TransferableClipboard. getContents(Object requestor)Returns a transferable object representing the current contents of the clipboard.Methods in java.awt.datatransfer with parameters of type Transferable Modifier and Type Method Description ReaderDataFlavor. 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.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 Transferable Modifier and Type Class Description protected classDropTargetContext.TransferableProxyTransferableProxyis 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 Transferable Modifier and Type Field Description protected TransferableDropTargetContext.TransferableProxy. transferableThe encapsulatedTransferableobject.Methods in java.awt.dnd that return Transferable Modifier and Type Method Description protected TransferableDropTargetContext. createTransferableProxy(Transferable t, boolean local)Creates a TransferableProxy to proxy for the specified Transferable.TransferableDragSourceContext. getTransferable()Returns theTransferableassociated with thisDragSourceContext.protected TransferableDropTargetContext. getTransferable()get the Transferable (proxy) operand of this operationTransferableDropTargetDragEvent. getTransferable()This method returns the Transferable object that represents the data associated with the current drag operation.TransferableDropTargetDropEvent. getTransferable()This method returns theTransferableobject associated with the drop.Methods in java.awt.dnd with parameters of type Transferable Modifier and Type Method Description protected 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 Transferable Constructor Description DragSourceContext(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 Transferable Modifier and Type Method Description protected TransferableTransferHandler. createTransferable(JComponent c)Creates aTransferableto use as the source for a data transfer.TransferableTransferHandler.TransferSupport. getTransferable()Returns theTransferableassociated with this transfer.Methods in javax.swing with parameters of type Transferable Modifier and Type Method Description protected voidTransferHandler. exportDone(JComponent source, Transferable data, int action)Invoked after data has been exported.IconTransferHandler. 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 Transferable Constructor Description TransferSupport(Component component, Transferable transferable)Create aTransferSupportwithisDrop()falsefor the given component andTransferable.
-