Package ch.swingfx.twinkle.manager
Class SequentialNotificationManager
- java.lang.Object
-
- ch.swingfx.twinkle.manager.SequentialNotificationManager
-
public class SequentialNotificationManager extends java.lang.ObjectI manage the notification windows and show the one after one
-
-
Field Summary
Fields Modifier and Type Field Description private static intDELAYDelay before we show the notificationprivate static java.util.concurrent.locks.LocksLockour lock for synchronizationprivate static booleansWindowOpentrue if a window is open.private static java.util.LinkedList<javax.swing.JWindow>sWindowslist of all windows we want to display.
-
Constructor Summary
Constructors Modifier Constructor Description privateSequentialNotificationManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static voidnextWindow()shows the next window on the stackprotected static voidshowNotification(javax.swing.JWindow window)Shows the notification
-
-
-
Field Detail
-
DELAY
private static final int DELAY
Delay before we show the notification- See Also:
- Constant Field Values
-
sLock
private static final java.util.concurrent.locks.Lock sLock
our lock for synchronization
-
sWindows
private static final java.util.LinkedList<javax.swing.JWindow> sWindows
list of all windows we want to display. guarded by lock
-
sWindowOpen
private static boolean sWindowOpen
true if a window is open. guarded by lock
-
-