@Component public class SystemTraySupport extends Object
| Constructor and Description |
|---|
SystemTraySupport() |
| Modifier and Type | Method and Description |
|---|---|
List<TrayIcon> |
getTrayIcons() |
CompletionStage<io.vavr.control.Try<TrayIcon>> |
registerTrayIcon(SystemTrayIcon systemTrayIcon)
Loads the tray icon.
|
CompletionStage<Void> |
removeTrayIcon(TrayIcon trayIcon)
Removes the tray icon previously added.
|
public CompletionStage<io.vavr.control.Try<TrayIcon>> registerTrayIcon(SystemTrayIcon systemTrayIcon)
systemTrayIcon - The icon to loadCompletionStage that returns the awt-typed reference to the icon. This is to be kept if you
wish to call removeTrayIcon(TrayIcon) later.public CompletionStage<Void> removeTrayIcon(TrayIcon trayIcon)
trayIcon - The previously added TrayIcon (see registerTrayIcon(SystemTrayIcon)CompletionStage that finished upon effective removal.Copyright © 2018. All rights reserved.