Class TrayManager

    • Field Detail

      • _main

        protected final Main _main
      • _useSwing

        protected final boolean _useSwing
    • Constructor Detail

      • TrayManager

        protected TrayManager​(I2PAppContext ctx,
                              Main main,
                              boolean useSwing)
        Instantiate tray manager.
    • Method Detail

      • startManager

        public void startManager()
                          throws AWTException
        Add the tray icon to the system tray and start everything up.
        Throws:
        AWTException
      • stopManager

        public void stopManager()
        Remove the tray icon from the system tray
        Since:
        0.9.26
      • languageChanged

        public void languageChanged()
      • getMainMenu

        protected abstract PopupMenu getMainMenu()
        Build a popup menu, adding callbacks to the different items.
        Returns:
        popup menu
      • getSwingMainMenu

        protected abstract JPopupMenu getSwingMainMenu()
        Build a popup menu, adding callbacks to the different items.
        Returns:
        popup menu
        Since:
        0.9.26
      • updateMenu

        protected abstract void updateMenu()
        Update the menu
        Since:
        0.9.26