|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--java.awt.datatransfer.StringSelection
A class which implements the capability required to transfer a simple java String in plain text format.
| Constructor Summary | |
StringSelection(String data)
Creates a transferable object capable of transferring the specified string in plain text format. |
|
| Method Summary | |
Object |
getTransferData(DataFlavor flavor)
If the data was requested in the "java.lang.String" flavor, return the String representing the selection. |
DataFlavor[] |
getTransferDataFlavors()
Returns the array of flavors in which it can provide the data. |
boolean |
isDataFlavorSupported(DataFlavor flavor)
Returns whether the requested flavor is supported by this object. |
void |
lostOwnership(Clipboard clipboard,
Transferable contents)
Notifies this object that it is no longer the owner of the contents of the clipboard. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public StringSelection(String data)
| Method Detail |
public DataFlavor[] getTransferDataFlavors()
public boolean isDataFlavorSupported(DataFlavor flavor)
flavor - the requested flavor for the data
public Object getTransferData(DataFlavor flavor)
throws UnsupportedFlavorException,
IOException
flavor - the requested flavor for the datajava.lang.String" flavor.
public void lostOwnership(Clipboard clipboard,
Transferable contents)
clipboard - the clipboard that is no longer ownedcontents - the contents which this owner had placed on the clipboard
|
JavaTM 2 Platform Standard Edition |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||