de.scheisseichfindemalkeinen.clipboard
Class ClipboardObserver

java.lang.Object
  extended by de.scheisseichfindemalkeinen.clipboard.ClipboardObserver
All Implemented Interfaces:
java.awt.datatransfer.FlavorListener, java.util.EventListener

public class ClipboardObserver
extends java.lang.Object
implements java.awt.datatransfer.FlavorListener

Class for observing the clipboard


Method Summary
 void flavorsChanged(java.awt.datatransfer.FlavorEvent e)
           
 void forceClipboardCheck()
          Force Clipboard Check -> workaround -> javavm bug
 void init()
          activate clipboard monitoring
static ClipboardObserver instance()
          Returns the singleton
 void shutdown()
          deactivate clipboard monitoring
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ClipboardObserver instance()
Returns the singleton

Returns:
Singleton

forceClipboardCheck

public void forceClipboardCheck()
Force Clipboard Check -> workaround -> javavm bug


flavorsChanged

public void flavorsChanged(java.awt.datatransfer.FlavorEvent e)
Specified by:
flavorsChanged in interface java.awt.datatransfer.FlavorListener

init

public void init()
activate clipboard monitoring


shutdown

public void shutdown()
deactivate clipboard monitoring