Class 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 notification
      private static java.util.concurrent.locks.Lock sLock
      our lock for synchronization
      private 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.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      private static void nextWindow()
      shows the next window on the stack
      protected static void showNotification​(javax.swing.JWindow window)
      Shows the notification
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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
    • Constructor Detail

      • SequentialNotificationManager

        private SequentialNotificationManager()
    • Method Detail

      • showNotification

        protected static void showNotification​(javax.swing.JWindow window)
        Shows the notification
        Parameters:
        window - window to show
      • nextWindow

        private static void nextWindow()
        shows the next window on the stack