com.jivesoftware.spark.util
Class JNIPackFlashInvoker

java.lang.Object
  extended bycom.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

Field Summary
protected  boolean shouldStop
           
protected  boolean stopOnWindowActive
           
protected  java.awt.Window windowToFlash
           
 
Constructor Summary
JNIPackFlashInvoker(java.awt.Window w, boolean foregroundDependent, boolean stop)
           
 
Method Summary
 void run()
           
protected  void startFlashForWindow()
           
protected  void stopFlashForWindow()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

shouldStop

protected boolean shouldStop

windowToFlash

protected java.awt.Window windowToFlash

stopOnWindowActive

protected boolean stopOnWindowActive
Constructor Detail

JNIPackFlashInvoker

public JNIPackFlashInvoker(java.awt.Window w,
                           boolean foregroundDependent,
                           boolean stop)
Parameters:
w - the window to start or stop flashing
foregroundDependent - whether the flashing should stop on the window becoming active for the time being, this is being ignored
stop - whether the run of this instance should stop the flashing; if this is true the value for foregroundDependent is ignored.
Method Detail

startFlashForWindow

protected void startFlashForWindow()

stopFlashForWindow

protected void stopFlashForWindow()

run

public void run()
Specified by:
run in interface java.lang.Runnable