Package pl.com.external.essw.test
Class TextTransfer
- java.lang.Object
-
- pl.com.external.essw.test.TextTransfer
-
- All Implemented Interfaces:
java.awt.datatransfer.ClipboardOwner
public final class TextTransfer extends java.lang.Object implements java.awt.datatransfer.ClipboardOwner
-
-
Constructor Summary
Constructors Constructor Description TextTransfer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetClipboardContents()Get the String residing on the clipboard.voidlostOwnership(java.awt.datatransfer.Clipboard aClipboard, java.awt.datatransfer.Transferable aContents)Empty implementation of the ClipboardOwner interface.voidsetClipboardContents(java.lang.String copiedContent)Place a String on the clipboard, and make this class the owner of the Clipboard's contents.
-
-
-
Method Detail
-
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard aClipboard, java.awt.datatransfer.Transferable aContents)Empty implementation of the ClipboardOwner interface.- Specified by:
lostOwnershipin interfacejava.awt.datatransfer.ClipboardOwner
-
setClipboardContents
public void setClipboardContents(java.lang.String copiedContent)
Place a String on the clipboard, and make this class the owner of the Clipboard's contents.
-
getClipboardContents
public java.lang.String getClipboardContents()
Get the String residing on the clipboard.- Returns:
- any text found on the Clipboard; if none found, return an empty String.
-
-