Package ch.swingfx.twinkle.manager
Class SequentialNotificationManager
java.lang.Object
ch.swingfx.twinkle.manager.SequentialNotificationManager
I manage the notification windows and show the one after one
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final int
Delay before we show the notificationprivate static final Lock
our lock for synchronizationprivate static boolean
true if a window is open.private static final LinkedList
<JWindow> list of all windows we want to display. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static void
shows the next window on the stackprotected static void
showNotification
(JWindow window) Shows the notification
-
Field Details
-
DELAY
private static final int DELAYDelay before we show the notification- See Also:
-
sLock
our lock for synchronization -
sWindows
list of all windows we want to display. guarded by lock -
sWindowOpen
private static boolean sWindowOpentrue if a window is open. guarded by lock
-
-
Constructor Details
-
SequentialNotificationManager
private SequentialNotificationManager()
-
-
Method Details
-
showNotification
Shows the notification- Parameters:
window
- window to show
-
nextWindow
private static void nextWindow()shows the next window on the stack
-