API Overview API Index Package Overview Direct link to this page
JDK 1.6
  java.awt.datatransfer. StringSelection View Source
Author(s)
Since
Version
Serial
Hierarchy
 Object
      StringSelection
Implements
 Transferable
 ClipboardOwner
Subclasses
Description
public class StringSelection
  A Transferable which implements the capability required to transfer a String.
Constructors
public StringSelection (String data)
Creates a Transferable capable of transferring the specified String.
Methods
Hide/Show inherited methods
public Object getTransferData (DataFlavor flavor) throws UnsupportedFlavorException IOException [Specified in Transferable]
  Returns the Transferable's data in the requested DataFlavor if possible.
public DataFlavor getTransferDataFlavors () [Specified in Transferable]
  Returns an array of flavors in which this Transferable can provide the data.
public boolean isDataFlavorSupported (DataFlavor flavor) [Specified in Transferable]
  Returns whether the requested flavor is supported by this Transferable.
public void lostOwnership (Clipboard clipboard, Transferable contents) [Specified in ClipboardOwner]
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar