All Packages Class Hierarchy This Package Previous Next Index
Class java.awt.datatransfer.StringSelection
java.lang.Object
|
+----java.awt.datatransfer.StringSelection
- public class StringSelection
- extends Object
- implements Transferable, ClipboardOwner
A class which implements the capability required to transfer a
simple java String in plain text format.
-
StringSelection(String)
- Creates a transferable object capable of transferring the
specified string in plain text format.
-
getTransferData(DataFlavor)
- If the data was requested in the "java.lang.String" flavor, return the
String representing the selection.
-
getTransferDataFlavors()
- Returns the array of flavors in which it can provide the data.
-
isDataFlavorSupported(DataFlavor)
- Returns whether the requested flavor is supported by this object.
-
lostOwnership(Clipboard, Transferable)
-
StringSelection
method StringSelection(data=String) public
- Creates a transferable object capable of transferring the
specified string in plain text format.
getTransferDataFlavors
method getTransferDataFlavors() returns DataFlavor[] public protect
- Returns the array of flavors in which it can provide the data.
isDataFlavorSupported
method isDataFlavorSupported(flavor=DataFlavor) returns boolean public
- Returns whether the requested flavor is supported by this object.
- Parameters:
- flavor - the requested flavor for the data
getTransferData
method getTransferData(flavor=DataFlavor) returns Object public protect Signals UnsupportedFlavorException, IOException
- If the data was requested in the "java.lang.String" flavor, return the
String representing the selection.
- Parameters:
- flavor - the requested flavor for the data
- Throws: UnsupportedFlavorException
- if the requested data flavor is
not supported in the "
java.lang.String" flavor.
lostOwnership
method lostOwnership(clipboard=Clipboard, -
contents=Transferable) public
All Packages Class Hierarchy This Package Previous Next Index