|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.mindprod.common11.ClipboardPoker
public final class ClipboardPoker
Lets us get and put the contents of the clipboard.
This class should never even be loaded if we are running as an Applet. Users of this class must: import java.awt.datatransfer.*; and implement java.awt.datatransfer.ClipboardOwner with at least a dummy lostOwnership method.
Constructor Summary | |
---|---|
ClipboardPoker()
|
Method Summary | |
---|---|
static java.lang.String |
getClip(java.awt.Component owner)
get current contents of the Clipboard as a String. |
static void |
setClip(java.lang.String s,
java.awt.Component owner)
Copy data into the Clipboard. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ClipboardPoker()
Method Detail |
---|
public static java.lang.String getClip(java.awt.Component owner)
owner
- this Applet containing the clipboard.
public static void setClip(java.lang.String s, java.awt.Component owner)
s
- new contents of clipboard, may be null or "". Not legal in an unsigned Applet.owner
- this Applet containing the clipboard.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |