|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.awt.datatransfer.Clipboard
Unsafe:
Field Summary | |
protected Transferable |
contents
|
(package private) String |
name
|
protected ClipboardOwner |
owner
|
Constructor Summary | |
Clipboard(String name)
Enabled: Creates a clipboard object. |
Method Summary | |
Transferable |
getContents(Object requestor)
Enabled: Returns a transferable object representing the current contents of the clipboard. |
String |
getName()
Enabled: Returns the name of this clipboard object. |
void |
setContents(Transferable contents,
ClipboardOwner owner)
Enabled: Sets the current contents of the clipboard to the specified transferable object and registers the specified clipboard owner as the owner of the new contents. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
String name
protected ClipboardOwner owner
protected Transferable contents
Constructor Detail |
public Clipboard(String name)
java.awt.Toolkit#getSystemClipboard
Method Detail |
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
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |