public class StatusSelector
extends java.lang.Object
implements java.awt.event.ActionListener, java.awt.event.ItemListener
Constructor and Description |
---|
StatusSelector(ProtocolProviderService provider,
OperationSetPresence presence,
boolean swing)
Initializes a new StatusSelector instance.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Change the status of the protocol according to the menu item selected
|
java.lang.Object |
getMenu() |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Listens for changes in item state (CheckboxMenuItem)s.
|
void |
updateStatus(PresenceStatus presenceStatus) |
public StatusSelector(ProtocolProviderService provider, OperationSetPresence presence, boolean swing)
provider
- the protocol providerpresence
- the presence statusswing
- public java.lang.Object getMenu()
public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the event containing the menu item namepublic void updateStatus(PresenceStatus presenceStatus)
public void itemStateChanged(java.awt.event.ItemEvent e)
itemStateChanged
in interface java.awt.event.ItemListener
e
- the event.
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.