Class ToastNotifier


  • public class ToastNotifier
    extends java.lang.Object
    A container for a toast notification. Can display a short warning message via send(java.lang.String)
    Author:
    Luna Otte
    • Constructor Summary

      Constructors 
      Constructor Description
      ToastNotifier​(sag.SAGPanel panel)
      Creates a new ToastNotifier and attaches it to the provided panel
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void send​(java.lang.String notification)
      Sends a notification that is displayed for 3 seconds and then gets removed
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ToastNotifier

        public ToastNotifier​(sag.SAGPanel panel)
        Creates a new ToastNotifier and attaches it to the provided panel
        Parameters:
        panel - The SAGPanel to attach it to
    • Method Detail

      • send

        public void send​(java.lang.String notification)
        Sends a notification that is displayed for 3 seconds and then gets removed
        Parameters:
        notification - The content of the notification