Class SystrayService

  • All Implemented Interfaces:
    de.willuhn.boot.Bootable

    public class SystrayService
    extends java.lang.Object
    implements de.willuhn.boot.Bootable
    Service, der sich um das Systay kümmert.
    • Constructor Summary

      Constructors 
      Constructor Description
      SystrayService()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Class<de.willuhn.boot.Bootable>[] depends()  
      void init​(de.willuhn.boot.BootLoader loader, de.willuhn.boot.Bootable caller)  
      boolean isEnabled()
      Liefert true, wenn das Systray aktiviert werden soll.
      boolean isMinimizeToSystray()
      Liefert true, wenn die Anwendung in das System-Tray minimiert werden soll.
      void setEnabled​(boolean enabled)
      Liefert true, wenn das Systray aktiviert werden soll.
      void setMinimizeToSystray​(boolean enabled)
      Legt fest, ob die Anwendung in das System-Tray minimiert werden soll.
      void setNewActivity​(boolean b)
      Legt fest, ob das Symbol neue Aktivität anzeigen soll.
      void shutdown()  
      void update()
      Aktualisiert den Systray-Status.
      • Methods inherited from class java.lang.Object

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

      • SystrayService

        public SystrayService()
    • Method Detail

      • depends

        public java.lang.Class<de.willuhn.boot.Bootable>[] depends()
        Specified by:
        depends in interface de.willuhn.boot.Bootable
        See Also:
        Bootable.depends()
      • init

        public void init​(de.willuhn.boot.BootLoader loader,
                         de.willuhn.boot.Bootable caller)
                  throws de.willuhn.boot.SkipServiceException
        Specified by:
        init in interface de.willuhn.boot.Bootable
        Throws:
        de.willuhn.boot.SkipServiceException
        See Also:
        Bootable.init(de.willuhn.boot.BootLoader, de.willuhn.boot.Bootable)
      • setNewActivity

        public void setNewActivity​(boolean b)
        Legt fest, ob das Symbol neue Aktivität anzeigen soll.
        Parameters:
        b - true, wenn neue Aktivität angezeigt werden soll.
      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface de.willuhn.boot.Bootable
        See Also:
        Bootable.shutdown()
      • isEnabled

        public boolean isEnabled()
        Liefert true, wenn das Systray aktiviert werden soll.
        Returns:
        true, wenn das Systray aktiviert werden soll.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Liefert true, wenn das Systray aktiviert werden soll.
        Parameters:
        enabled - true, wenn das Systray aktiviert werden soll.
      • isMinimizeToSystray

        public boolean isMinimizeToSystray()
        Liefert true, wenn die Anwendung in das System-Tray minimiert werden soll.
        Returns:
        true, wenn die Anwendung in das System-Tray minimiert werden soll.
      • setMinimizeToSystray

        public void setMinimizeToSystray​(boolean enabled)
        Legt fest, ob die Anwendung in das System-Tray minimiert werden soll.
        Parameters:
        enabled - wenn die Anwendung in das System-Tray minimiert werden soll.
      • update

        public void update()
        Aktualisiert den Systray-Status.