public class StatusSubMenu extends java.lang.Object implements ProviderPresenceStatusListener, RegistrationStateChangeListener, java.awt.event.ActionListener, java.awt.event.ItemListener
STATUS_MESSAGE
Constructor and Description |
---|
StatusSubMenu(boolean swing,
boolean accountMenuSupported)
Initializes a new StatusSubMenu 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
|
(package private) static void |
addMenuItem(java.lang.Object menu,
java.lang.Object menuItem) |
java.lang.Object |
getMenu() |
void |
itemStateChanged(java.awt.event.ItemEvent e)
Listens for changes in item state (CheckboxMenuItem)s.
|
void |
providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
Fired when an account has changed its status.
|
void |
providerStatusMessageChanged(java.beans.PropertyChangeEvent evt)
The method is called by a ProtocolProvider implementation whenever a
change in the status message of the corresponding provider has occurred
and has been confirmed by the server.
|
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProviderService implementation
whenever a change in its registration state has occurred.
|
public StatusSubMenu(boolean swing, boolean accountMenuSupported)
swing
- true to represent this instance with a Swing
JMenu; false to use an AWT Menupublic java.lang.Object getMenu()
static void addMenuItem(java.lang.Object menu, java.lang.Object menuItem)
public void providerStatusChanged(ProviderPresenceStatusChangeEvent evt)
providerStatusChanged
in interface ProviderPresenceStatusListener
evt
- public void providerStatusMessageChanged(java.beans.PropertyChangeEvent evt)
ProviderPresenceStatusListener
providerStatusMessageChanged
in interface ProviderPresenceStatusListener
evt
- a PropertyChangeEvent with a STATUS_MESSAGE property name,
containing the old and new status messages.public void registrationStateChanged(RegistrationStateChangeEvent evt)
RegistrationStateChangeListener
registrationStateChanged
in interface RegistrationStateChangeListener
evt
- a RegistrationStateChangeEvent which describes the
registration state change.public void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the event containing the menu item namepublic 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.