Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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

java.lang.Object
  extended by net.java.sip.communicator.impl.osdependent.jdic.StatusSelector
All Implemented Interfaces:
ActionListener, EventListener

public class StatusSelector
extends Object
implements ActionListener

The StatusSelector is a submenu which allows to select a status for a protocol provider which supports the OperationSetPresence.

Author:
Nicolas Chamouard, Lubomir Marinov

Constructor Summary
StatusSelector(SystrayServiceJdicImpl jdicSystray, ProtocolProviderService provider, OperationSetPresence presence, boolean swing)
          Creates an instance of StatusSelector
 
Method Summary
 void actionPerformed(ActionEvent evt)
          Change the status of the protocol according to the menu item selected
 Object getMenu()
           
 void updateStatus(PresenceStatus presenceStatus)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatusSelector

public StatusSelector(SystrayServiceJdicImpl jdicSystray,
                      ProtocolProviderService provider,
                      OperationSetPresence presence,
                      boolean swing)
Creates an instance of StatusSelector

Parameters:
jdicSystray - a reference of the parent Systray
provider - the protocol provider
presence - the presence status
Method Detail

getMenu

public Object getMenu()

actionPerformed

public void actionPerformed(ActionEvent evt)
Change the status of the protocol according to the menu item selected

Specified by:
actionPerformed in interface ActionListener
Parameters:
evt - the event containing the menu item name

updateStatus

public void updateStatus(PresenceStatus presenceStatus)

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

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