cz.vity.freerapid.gui.managers
Class ClipboardMonitorManager

java.lang.Object
  extended by java.lang.Thread
      extended by cz.vity.freerapid.gui.managers.ClipboardMonitorManager
All Implemented Interfaces:
ClipboardOwner, Runnable

public class ClipboardMonitorManager
extends Thread
implements ClipboardOwner

Clipboard Monitoring je aktivni pouze, pokud je aplikace aktivni. Pri precvakavani oken dochazi k tomu, ze activeWindow je na jednu chvili null, proto se to kontroluje jeste v cyklu.

Author:
Vity

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
ClipboardMonitorManager(org.jdesktop.application.ApplicationContext context, ManagerDirector managerDirector)
           
 
Method Summary
 void lostOwnership(Clipboard clipboard, Transferable contents)
           
 void run()
           
 
Methods inherited from class java.lang.Thread
activeCount, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, checkAccess, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ClipboardMonitorManager

public ClipboardMonitorManager(org.jdesktop.application.ApplicationContext context,
                               ManagerDirector managerDirector)
Method Detail

run

public void run()
Specified by:
run in interface Runnable
Overrides:
run in class Thread

lostOwnership

public void lostOwnership(Clipboard clipboard,
                          Transferable contents)
Specified by:
lostOwnership in interface ClipboardOwner