public class ClipboardMonitor
extends java.util.Observable
implements java.awt.datatransfer.ClipboardOwner
Constructor and Description |
---|
ClipboardMonitor() |
Modifier and Type | Method and Description |
---|---|
void |
addObserver(java.util.Observer o) |
void |
deleteObserver(java.util.Observer o) |
java.awt.datatransfer.Clipboard |
getClipboard() |
static ClipboardMonitor |
getMonitor() |
java.lang.String |
getString() |
boolean |
hasString() |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents) |
void |
put(java.lang.String data) |
void |
put(java.lang.String data,
java.lang.String type) |
public java.awt.datatransfer.Clipboard getClipboard()
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard, java.awt.datatransfer.Transferable contents)
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner
public static final ClipboardMonitor getMonitor()
public void put(java.lang.String data)
public void put(java.lang.String data, java.lang.String type)
public java.lang.String getString()
public boolean hasString()
public void addObserver(java.util.Observer o)
addObserver
in class java.util.Observable
public void deleteObserver(java.util.Observer o)
deleteObserver
in class java.util.Observable