com.jivesoftware.spark.util
Class JNIPackFlashInvoker
java.lang.Object
com.jivesoftware.spark.util.JNIPackFlashInvoker
- All Implemented Interfaces:
- java.lang.Runnable
- public class JNIPackFlashInvoker
- extends java.lang.Object
- implements java.lang.Runnable
A Runnable implementation to invoke the jnipack windows native flashing. Per advice from the
jnipack people, this should be dumped in the swing thread as soon as possible, so correct
usage of this class would be something such as:
SwingUtilities.invokeLater(new JNIPackFlashInvoker(...))
- Author:
- Derek DeMoro
Constructor Summary |
JNIPackFlashInvoker(java.awt.Window w,
boolean foregroundDependent,
boolean stop)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
shouldStop
protected boolean shouldStop
windowToFlash
protected java.awt.Window windowToFlash
stopOnWindowActive
protected boolean stopOnWindowActive
JNIPackFlashInvoker
public JNIPackFlashInvoker(java.awt.Window w,
boolean foregroundDependent,
boolean stop)
- Parameters:
w
- the window to start or stop flashingforegroundDependent
- whether the flashing should stop on the window becoming active
for the time being, this is being ignoredstop
- whether the run of this instance should stop the flashing; if this is true
the value for foregroundDependent is ignored.
startFlashForWindow
protected void startFlashForWindow()
stopFlashForWindow
protected void stopFlashForWindow()
run
public void run()
- Specified by:
run
in interface java.lang.Runnable