abstract class TrayManager extends Object
Modifier and Type | Field and Description |
---|---|
protected I2PAppContext |
_appContext |
protected Main |
_main |
protected boolean |
_useSwing |
protected SystemTray |
tray |
protected TrayIcon |
trayIcon |
Modifier | Constructor and Description |
---|---|
protected |
TrayManager(I2PAppContext ctx,
Main main,
boolean useSwing)
Instantiate tray manager.
|
Modifier and Type | Method and Description |
---|---|
protected String |
_t(String s) |
protected String |
_t(String s,
Object o) |
protected abstract PopupMenu |
getMainMenu()
Build a popup menu, adding callbacks to the different items.
|
protected abstract JPopupMenu |
getSwingMainMenu()
Build a popup menu, adding callbacks to the different items.
|
void |
languageChanged() |
void |
startManager()
Add the tray icon to the system tray and start everything up.
|
void |
stopManager()
Remove the tray icon from the system tray
|
protected abstract void |
updateMenu()
Update the menu
|
protected final I2PAppContext _appContext
protected final Main _main
protected final boolean _useSwing
protected SystemTray tray
protected TrayIcon trayIcon
protected TrayManager(I2PAppContext ctx, Main main, boolean useSwing)
public void startManager() throws AWTException
AWTException
public void stopManager()
public void languageChanged()
protected abstract PopupMenu getMainMenu()
protected abstract JPopupMenu getSwingMainMenu()
protected abstract void updateMenu()