Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.osdependent.jdic
Class TrayMenuFactory

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.jdic.TrayMenuFactory

public final class TrayMenuFactory
extends Object

The TrayMenu is the menu that appears when the user right-click on the Systray icon.

Author:
Nicolas Chamouard, Lubomir Marinov, Yana Stamcheva

Constructor Summary
TrayMenuFactory()
           
 
Method Summary
static void addPopupMenuListener(Object trayMenu, PopupMenuListener listener)
          Adds a PopupMenuListener to the given trayMenu.
static Object createTrayMenu(SystrayServiceJdicImpl tray, boolean swing)
          Creates a tray menu for the given system tray.
static boolean isVisible(Object trayMenu)
          Returns true if the given trayMenu is visible, otherwise returns false.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TrayMenuFactory

public TrayMenuFactory()
Method Detail

addPopupMenuListener

public static void addPopupMenuListener(Object trayMenu,
                                        PopupMenuListener listener)
Adds a PopupMenuListener to the given trayMenu.

Parameters:
trayMenu - the tray menu to which to add a popup listener
listener - the listener to add

createTrayMenu

public static Object createTrayMenu(SystrayServiceJdicImpl tray,
                                    boolean swing)
Creates a tray menu for the given system tray.

Parameters:
tray - the system tray for which we're creating a menu
swing - indicates if we should create a Swing or an AWT menu
Returns:
a tray menu for the given system tray

isVisible

public static boolean isVisible(Object trayMenu)
Returns true if the given trayMenu is visible, otherwise returns false.

Parameters:
trayMenu - the TrayMenu to check
Returns:
true if the given trayMenu is visible, otherwise returns false

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.