Package net.i2p.desktopgui
Class InternalTrayManager
- java.lang.Object
-
- net.i2p.desktopgui.TrayManager
-
- net.i2p.desktopgui.InternalTrayManager
-
class InternalTrayManager extends TrayManager
java -cp i2p.jar:router.jar:desktopgui.jar net.i2p.desktopgui.Main Full access to router context.
-
-
Field Summary
-
Fields inherited from class net.i2p.desktopgui.TrayManager
_appContext, _jnotificationItem1, _jnotificationItem2, _notificationItem1, _notificationItem2, _showNotifications, _useSwing, PROP_NOTIFICATIONS, tray, trayIcon
-
-
Constructor Summary
Constructors Constructor Description InternalTrayManager(RouterContext ctx, Main main, boolean useSwing)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
configureNotifications(boolean enable)
Does not save.PopupMenu
getMainMenu()
Build a popup menu, adding callbacks to the different items.JPopupMenu
getSwingMainMenu()
Build a popup menu, adding callbacks to the different items.void
startManager()
Add the tray icon to the system tray and start everything up.protected void
updateMenu()
Update the menu-
Methods inherited from class net.i2p.desktopgui.TrayManager
_t, _t, addMenu, disableMenu, displayMessage, enableMenu, hideMenu, initializeJNotificationItems, initializeNotificationItems, languageChanged, removeMenu, showMenu, stopManager, updateMenu
-
-
-
-
Constructor Detail
-
InternalTrayManager
public InternalTrayManager(RouterContext ctx, Main main, boolean useSwing)
-
-
Method Detail
-
startManager
public void startManager() throws AWTException
Description copied from class:TrayManager
Add the tray icon to the system tray and start everything up.- Overrides:
startManager
in classTrayManager
- Throws:
AWTException
- Since:
- 0.9.53
-
getMainMenu
public PopupMenu getMainMenu()
Description copied from class:TrayManager
Build a popup menu, adding callbacks to the different items.- Specified by:
getMainMenu
in classTrayManager
- Returns:
- popup menu
-
getSwingMainMenu
public JPopupMenu getSwingMainMenu()
Description copied from class:TrayManager
Build a popup menu, adding callbacks to the different items.- Specified by:
getSwingMainMenu
in classTrayManager
- Returns:
- popup menu
-
updateMenu
protected void updateMenu()
Update the menu- Specified by:
updateMenu
in classTrayManager
- Since:
- 0.9.26
-
configureNotifications
protected void configureNotifications(boolean enable)
Description copied from class:TrayManager
Does not save. See InternalTrayManager.- Overrides:
configureNotifications
in classTrayManager
- Since:
- 0.9.53
-
-