Package net.i2p.desktopgui
Class TrayManager
- java.lang.Object
- 
- net.i2p.desktopgui.TrayManager
 
- 
- Direct Known Subclasses:
- ExternalTrayManager,- InternalTrayManager
 
 abstract class TrayManager extends Object Manages the tray icon life.
- 
- 
Field SummaryFields Modifier and Type Field Description protected I2PAppContext_appContextprotected Main_mainprotected boolean_useSwingprotected SystemTraytrayprotected TrayIcontrayIcon
 - 
Constructor SummaryConstructors Modifier Constructor Description protectedTrayManager(I2PAppContext ctx, Main main, boolean useSwing)Instantiate tray manager.
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected String_t(String s)protected String_t(String s, Object o)protected abstract PopupMenugetMainMenu()Build a popup menu, adding callbacks to the different items.protected abstract JPopupMenugetSwingMainMenu()Build a popup menu, adding callbacks to the different items.voidlanguageChanged()voidstartManager()Add the tray icon to the system tray and start everything up.voidstopManager()Remove the tray icon from the system trayprotected abstract voidupdateMenu()Update the menu
 
- 
- 
- 
Field Detail- 
_appContextprotected final I2PAppContext _appContext 
 - 
_mainprotected final Main _main 
 - 
_useSwingprotected final boolean _useSwing 
 - 
trayprotected SystemTray tray 
 - 
trayIconprotected TrayIcon trayIcon 
 
- 
 - 
Constructor Detail- 
TrayManagerprotected TrayManager(I2PAppContext ctx, Main main, boolean useSwing) Instantiate tray manager.
 
- 
 - 
Method Detail- 
startManagerpublic void startManager() throws AWTExceptionAdd the tray icon to the system tray and start everything up.- Throws:
- AWTException
 
 - 
stopManagerpublic void stopManager() Remove the tray icon from the system tray- Since:
- 0.9.26
 
 - 
languageChangedpublic void languageChanged() 
 - 
getMainMenuprotected abstract PopupMenu getMainMenu() Build a popup menu, adding callbacks to the different items.- Returns:
- popup menu
 
 - 
getSwingMainMenuprotected abstract JPopupMenu getSwingMainMenu() Build a popup menu, adding callbacks to the different items.- Returns:
- popup menu
- Since:
- 0.9.26
 
 - 
updateMenuprotected abstract void updateMenu() Update the menu- Since:
- 0.9.26
 
 
- 
 
-