java.lang.Object | +--java.awt.datatransfer.Clipboard
Unsafe:
Transferable
getContents(Object requestor)
void
setContents(Transferable contents,
ClipboardOwner owner)
String name
protected ClipboardOwner owner
protected Transferable contents
public Clipboard(String name)
java.awt.Toolkit#getSystemClipboard
public String getName()
java.awt.Toolkit#getSystemClipboard
public void setContents(Transferable contents, ClipboardOwner owner)
IllegalStateException
if the clipboard is currently
unavailable. For example, on some platforms, the system clipboard is
unavailable while it is accessed by another application.
owner
- the object which owns the clipboard content
IllegalStateException
- if the clipboard is currently unavailablejava.awt.Toolkit#getSystemClipboard
public Transferable getContents(Object requestor)
null
. The parameter Object requestor is
not currently used. The method throws
IllegalStateException
if the clipboard is currently
unavailable. For example, on some platforms, the system clipboard is
unavailable while it is accessed by another application.
requestor
- the object requesting the clip data (not used)
IllegalStateException
- if the clipboard is currently unavailablejava.awt.Toolkit#getSystemClipboard