Package ch.swingfx.twinkle.manager
Class SequentialNotificationManager
- java.lang.Object
-
- ch.swingfx.twinkle.manager.SequentialNotificationManager
-
public class SequentialNotificationManager extends java.lang.Object
I manage the notification windows and show the one after one
-
-
Field Summary
Fields Modifier and Type Field Description private static int
DELAY
Delay before we show the notificationprivate static java.util.concurrent.locks.Lock
sLock
our lock for synchronizationprivate static boolean
sWindowOpen
true if a window is open.private static java.util.LinkedList<javax.swing.JWindow>
sWindows
list of all windows we want to display.
-
Constructor Summary
Constructors Modifier Constructor Description private
SequentialNotificationManager()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description private static void
nextWindow()
shows the next window on the stackprotected static void
showNotification(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
-
-