edu.northwestern.at.utils.swing.notepad
Class Notepad.ClipboardObserver
java.lang.Object
edu.northwestern.at.utils.swing.notepad.Notepad.ClipboardObserver
- All Implemented Interfaces:
- java.awt.datatransfer.ClipboardOwner
- Enclosing class:
- Notepad
class Notepad.ClipboardObserver
- extends java.lang.Object
- implements java.awt.datatransfer.ClipboardOwner
Clipboard observer. Enable "paste" if clipboard has content.
It appears "lostOwnership" is called before the clipboard data
actually changes, so we wait half a second before checking for
new clipboard data.
Method Summary |
void |
lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Notepad.ClipboardObserver
Notepad.ClipboardObserver()
lostOwnership
public void lostOwnership(java.awt.datatransfer.Clipboard clipboard,
java.awt.datatransfer.Transferable contents)
- Specified by:
lostOwnership
in interface java.awt.datatransfer.ClipboardOwner