public final class TrayMenuFactory
extends java.lang.Object
Constructor and Description |
---|
TrayMenuFactory() |
Modifier and Type | Method and Description |
---|---|
static void |
addPopupMenuListener(java.lang.Object trayMenu,
javax.swing.event.PopupMenuListener listener)
Adds a PopupMenuListener to the given trayMenu.
|
static org.apache.commons.lang3.tuple.Pair<java.lang.Object,java.lang.Object> |
createTrayMenu(SystrayServiceJdicImpl tray,
boolean swing,
boolean accountMenuSupported)
Creates a tray menu for the given system tray.
|
static boolean |
isVisible(java.lang.Object trayMenu)
Returns true if the given trayMenu is visible,
otherwise returns false.
|
public static void addPopupMenuListener(java.lang.Object trayMenu, javax.swing.event.PopupMenuListener listener)
trayMenu
- the tray menu to which to add a popup listenerlistener
- the listener to addpublic static org.apache.commons.lang3.tuple.Pair<java.lang.Object,java.lang.Object> createTrayMenu(SystrayServiceJdicImpl tray, boolean swing, boolean accountMenuSupported)
tray
- the system tray for which we're creating a menuswing
- indicates if we should create a Swing or an AWT menupublic static boolean isVisible(java.lang.Object trayMenu)
trayMenu
- the TrayMenu to check
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.