| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
| Packages that use Transferable | |
|---|---|
| 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. | 
| Uses of Transferable in java.awt.datatransfer | 
|---|
| Classes in java.awt.datatransfer that implement Transferable | |
|---|---|
|  class | StringSelectionA Transferablewhich implements the capability required
 to transfer aString. | 
| Fields in java.awt.datatransfer declared as Transferable | |
|---|---|
| protected  Transferable | Clipboard.contents | 
| Methods in java.awt.datatransfer that return Transferable | |
|---|---|
|  Transferable | Clipboard.getContents(Object requestor)Returns a transferable object representing the current contents of the clipboard. | 
| Methods in java.awt.datatransfer with parameters of type Transferable | |
|---|---|
|  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. | 
| Uses of Transferable in java.awt.dnd | 
|---|
| Classes in java.awt.dnd that implement Transferable | |
|---|---|
| protected  class | DropTargetContext.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 | |
|---|---|
| protected  Transferable | DropTargetContext.TransferableProxy.transferableThe encapsulated Transferableobject. | 
| Methods in java.awt.dnd that return Transferable | |
|---|---|
| protected  Transferable | DropTargetContext.createTransferableProxy(Transferable t,
                        boolean local)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 | DropTargetDropEvent.getTransferable()This method returns the Transferableobject 
 associated with the drop. | 
|  Transferable | DragSourceContext.getTransferable()Returns the Transferableassociated with
 thisDragSourceContext. | 
| Methods in java.awt.dnd with parameters of type Transferable | |
|---|---|
| protected  DragSourceContext | DragSource.createDragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
                        DragGestureEvent dgl,
                        Cursor dragCursor,
                        Image dragImage,
                        Point imageOffset,
                        Transferable t,
                        DragSourceListener dsl)Creates the DragSourceContextto handle this drag. | 
| 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 Cursorto display,
 a dragImage, the offset of 
 theImage, 
 theTransferableobject, and 
 theDragSourceListenerto use. | 
|  void | DragGestureEvent.startDrag(Cursor dragCursor,
          Transferable transferable)Starts the drag operation given the Cursorfor this drag
 operation and theTransferablerepresenting the source data
 for this drag operation. | 
|  void | DragGestureEvent.startDrag(Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl)Starts the drag given the initial Cursorto display, 
 theTransferableobject, 
 and theDragSourceListenerto use. | 
|  void | DragSource.startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Image dragImage,
          Point dragOffset,
          Transferable transferable,
          DragSourceListener dsl)Start a drag, given the DragGestureEventthat 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. | 
|  void | DragSource.startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Image dragImage,
          Point imageOffset,
          Transferable transferable,
          DragSourceListener dsl,
          FlavorMap flavorMap)Start a drag, given the DragGestureEventthat 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. | 
|  void | DragSource.startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl)Start a drag, given the DragGestureEventthat initiated the drag, the initialCursorto 
 use, 
 theTransferablesubject data 
 of the drag, and theDragSourceListener. | 
|  void | DragSource.startDrag(DragGestureEvent trigger,
          Cursor dragCursor,
          Transferable transferable,
          DragSourceListener dsl,
          FlavorMap flavorMap)Start a drag, given the DragGestureEventthat initiated the drag, the initialCursorto use,
 theTransferablesubject data 
 of the drag, theDragSourceListener, 
 and theFlavorMap. | 
| Constructors in java.awt.dnd with parameters of type Transferable | |
|---|---|
| DragSourceContext(java.awt.dnd.peer.DragSourceContextPeer dscp,
                  DragGestureEvent trigger,
                  Cursor dragCursor,
                  Image dragImage,
                  Point offset,
                  Transferable t,
                  DragSourceListener dsl)Called from DragSource, 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.activation | 
|---|
| Classes in javax.activation that implement Transferable | |
|---|---|
|  class | DataHandlerThe DataHandler class provides a consistent interface to data available in many different sources and formats. | 
| Uses of Transferable in javax.swing | 
|---|
| Methods in javax.swing that return Transferable | |
|---|---|
| protected  Transferable | TransferHandler.createTransferable(JComponent c)Creates a Transferableto use as the source for
 a data transfer. | 
|  Transferable | TransferHandler.TransferSupport.getTransferable()Returns the Transferableassociated with this transfer. | 
| Methods in javax.swing with parameters of type Transferable | |
|---|---|
| protected  void | TransferHandler.exportDone(JComponent source,
           Transferable data,
           int action)Invoked after data has been exported. | 
|  Icon | TransferHandler.getVisualRepresentation(Transferable t)Returns an object that establishes the look of a transfer. | 
|  boolean | TransferHandler.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 | |
|---|---|
| TransferHandler.TransferSupport(Component component,
                                Transferable transferable)Create a TransferSupportwithisDrop()falsefor the given component andTransferable. | |
| 
 | Java™ Platform Standard Ed. 6 | |||||||||
| PREV NEXT | FRAMES NO FRAMES | |||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.