public abstract class SystemTray
extends java.lang.Object
Constructor and Description |
---|
SystemTray() |
Modifier and Type | Method and Description |
---|---|
abstract void |
addTrayIcon(TrayIcon trayIcon)
Adds a TrayIcon to this system tray implementation.
|
abstract 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
addTrayIcon(TrayIcon) . |
static SystemTray |
getSystemTray()
Gets or creates the supported SystemTray implementations.
|
static java.lang.String |
getSystemTrayMode() |
abstract boolean |
supportsDynamicMenu()
Determines if the tray icon supports dynamic menus.
|
abstract boolean |
useSwingPopupMenu()
Determines if the popup menu for the icon is to be a Swing
JPopupMenu or an AWT PopupMenu
|
public static final SystemTray getSystemTray()
public static java.lang.String getSystemTrayMode()
public abstract void addTrayIcon(TrayIcon trayIcon)
trayIcon
- the TrayIcon to addpublic abstract TrayIcon createTrayIcon(javax.swing.ImageIcon icon, java.lang.String tooltip, java.lang.Object popup)
addTrayIcon(TrayIcon)
.image
- the Image to be usedtooltip
- 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 abstract boolean useSwingPopupMenu()
public abstract boolean supportsDynamicMenu()
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.