class InternalTrayManager extends TrayManager
_appContext, _jnotificationItem1, _jnotificationItem2, _notificationItem1, _notificationItem2, _showNotifications, _useSwing, PROP_NOTIFICATIONS, tray, trayIcon| Constructor and Description |
|---|
InternalTrayManager(RouterContext ctx,
Main main,
boolean useSwing)Create a new InternalTrayManager with full router context access. |
| Modifier and Type | Method and Description |
|---|---|
protected void | configureNotifications(boolean enable)Configure notification settings and save to router config. |
PopupMenu | getMainMenu()Build an AWT popup menu with router management controls. |
JPopupMenu | getSwingMainMenu()Build a Swing popup menu with router management controls. |
void | startManager()Add the tray icon to the system tray and start everything up. |
protected void | updateMenu()Update the menu |
_t, _t, displayMessage, initializeJNotificationItems, initializeNotificationItems, languageChanged, stopManagerpublic InternalTrayManager(RouterContext ctx, Main main, boolean useSwing)
ctx - the router contextmain - the main application instanceuseSwing - true to use Swing components, false for AWTprotected void configureNotifications(boolean enable)
configureNotifications in class TrayManagerenable - true to enable notifications, false to disablepublic PopupMenu getMainMenu()
getMainMenu in class TrayManagerpublic JPopupMenu getSwingMainMenu()
getSwingMainMenu in class TrayManagerpublic void startManager()
throws AWTExceptionTrayManagerstartManager in class TrayManagerAWTException - if the system tray is not supportedprotected void updateMenu()
updateMenu in class TrayManager