public class AppIndicatorTray extends SystemTray
Constructor and Description |
---|
AppIndicatorTray(boolean dynamicMenu) |
Modifier and Type | Method and Description |
---|---|
void |
addTrayIcon(TrayIcon trayIcon)
Adds a TrayIcon to this system tray implementation.
|
TrayIcon |
createTrayIcon(javax.swing.ImageIcon icon,
java.lang.String tooltip,
java.lang.Object popup)
Creates an implementation specific TrayIcon that can later be
added with
SystemTray.addTrayIcon(TrayIcon) . |
boolean |
supportsDynamicMenu()
Determines if the tray icon supports dynamic menus.
|
boolean |
useSwingPopupMenu()
Determines if the popup menu for the icon is to be a Swing
JPopupMenu or an AWT PopupMenu
|
getSystemTray, getSystemTrayMode
public AppIndicatorTray(boolean dynamicMenu) throws java.lang.Exception
java.lang.Exception
public void addTrayIcon(TrayIcon trayIcon)
SystemTray
addTrayIcon
in class SystemTray
trayIcon
- the TrayIcon to addpublic TrayIcon createTrayIcon(javax.swing.ImageIcon icon, java.lang.String tooltip, java.lang.Object popup)
SystemTray
SystemTray.addTrayIcon(TrayIcon)
.createTrayIcon
in class SystemTray
tooltip
- the string to be used as tooltip text; if the value is
null no tooltip is shownpopup
- the menu to be used for the tray icon's popup menu; if the
value is null no popup menu is shownpublic boolean useSwingPopupMenu()
SystemTray
useSwingPopupMenu
in class SystemTray
public boolean supportsDynamicMenu()
SystemTray
supportsDynamicMenu
in class SystemTray
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.