java.lang.Object
net.i2p.desktopgui.TrayManager
net.i2p.desktopgui.ExternalTrayManager

class ExternalTrayManagerextends TrayManager
Tray manager for external use without router context access. Provides minimal I2P management when started before the router. Limited to starting I2P and basic notification controls. Not fully supported - use InternalTrayManager when possible.
  • Constructor Details

    • ExternalTrayManager

      public ExternalTrayManager(I2PAppContext ctx, boolean useSwing)
      Create a new ExternalTrayManager.
      Parameters:
      ctx - the I2P application context
      useSwing - true to use Swing components, false for AWT
  • Method Details

    • getMainMenu

      public PopupMenu getMainMenu()
      Build an AWT popup menu with start and notification controls.
      Specified by:
      getMainMenu in class TrayManager
      Returns:
      the AWT popup menu
    • getSwingMainMenu

      public JPopupMenu getSwingMainMenu()
      Build a Swing popup menu with notification controls.
      Specified by:
      getSwingMainMenu in class TrayManager
      Returns:
      the Swing popup menu
    • updateMenu

      protected void updateMenu()
      Update the menu.
      Specified by:
      updateMenu in class TrayManager