net.sourceforge.java.feednread.frontend.tray
Class TrayNotificationHandler.AutoCloseNotificationThread

java.lang.Object
  extended byjava.lang.Thread
      extended bynet.sourceforge.java.feednread.frontend.tray.TrayNotificationHandler.AutoCloseNotificationThread
All Implemented Interfaces:
Runnable
Enclosing class:
TrayNotificationHandler

private class TrayNotificationHandler.AutoCloseNotificationThread
extends Thread

Internal class to handle the automatic closing of the notification Shell. The display time of a notification is configured using the ConfigurationManager.NOTIFICATION_DISPLAY_TIME_KEY field.

Author:
Sebastian Machhausen

Field Summary
private  long lastNewsNotificationTime
           
private  boolean paused
           true if paused; false if running (unpaused)
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Constructor Summary
private TrayNotificationHandler.AutoCloseNotificationThread()
           
 
Method Summary
private  void fadeOutNotification()
           Slowly fades out the notification Shell.
 void pause()
           Pauses this AutoCloseNotificationThread.
 void run()
           Invoked when this AutoCloseNotificationThread starts.
 void unpause()
           Unpauses, i.e. resumes this AutoCloseNotificationThread.
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getContextClassLoader, getName, getPriority, getThreadGroup, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setName, setPriority, 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
 

Field Detail

lastNewsNotificationTime

private long lastNewsNotificationTime

paused

private boolean paused

true if paused; false if running (unpaused)

Constructor Detail

TrayNotificationHandler.AutoCloseNotificationThread

private TrayNotificationHandler.AutoCloseNotificationThread()
Method Detail

pause

public void pause()

Pauses this AutoCloseNotificationThread.


unpause

public void unpause()

Unpauses, i.e. resumes this AutoCloseNotificationThread.


run

public void run()

Invoked when this AutoCloseNotificationThread starts.


fadeOutNotification

private void fadeOutNotification()

Slowly fades out the notification Shell.