|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
net.java.sip.communicator.util.swing.TransparentPanel
net.java.sip.communicator.impl.gui.main.presence.AccountStatusPanel
public class AccountStatusPanel
The panel shown on the top of the contact list. It contains user name, current status menu and the avatar of the user.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JPanel |
|---|
JPanel.AccessibleJPanel |
| Nested classes/interfaces inherited from class javax.swing.JComponent |
|---|
JComponent.AccessibleJComponent |
| Nested classes/interfaces inherited from class java.awt.Container |
|---|
Container.AccessibleAWTContainer |
| Nested classes/interfaces inherited from class java.awt.Component |
|---|
Component.AccessibleAWTComponent, Component.BaselineResizeBehavior, Component.BltBufferStrategy, Component.FlipBufferStrategy |
| Field Summary |
|---|
| Fields inherited from class javax.swing.JComponent |
|---|
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
|---|
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface java.awt.image.ImageObserver |
|---|
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
|---|---|
AccountStatusPanel(MainFrame mainFrame)
Creates an instance of AccountStatusPanel by specifying the main window, where this panel is added. |
|
| Method Summary | |
|---|---|
void |
addAccount(ProtocolProviderService protocolProvider)
Adds the account given by protocolProvider in the contained status combo box. |
void |
avatarChanged(AvatarEvent event)
Called whenever a new avatar is defined for one of the protocols that we have subscribed for. |
boolean |
containsAccount(ProtocolProviderService protocolProvider)
Checks if an account corresponding to the given protocolProvider is contained in the contained status combo box. |
static byte[] |
getGlobalAccountImage()
Returns the global account image currently shown on the top of the application window. |
Object |
getLastPresenceStatus(ProtocolProviderService protocolProvider)
Returns the last used presence status for the given protocolProvider. |
String |
getLastStatusString(ProtocolProviderService protocolProvider)
Returns the last used status for the given protocolProvider as a String. |
boolean |
hasSelectedMenus()
Returns true if there are selected status selector boxes, otherwise returns false. |
void |
loadSkin()
Loads images for the account status panel. |
void |
paintComponent(Graphics g)
Paints this component. |
void |
pluginComponentAdded(PluginComponentEvent event)
Indicates that a plug-in component is registered to be added in a container. |
void |
pluginComponentRemoved(PluginComponentEvent event)
Indicates that a plug-in component is registered to be removed from a container. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
Updates account information when a protocol provider is registered. |
void |
removeAccount(ProtocolProviderService protocolProvider)
Removes the account given by protocolProvider from the contained status combo box. |
void |
serverStoredDetailsChanged(ServerStoredDetailsChangeEvent evt)
Registers a ServerStoredDetailsChangeListener with the operation sets of the providers, if a provider change its name we use it in the UI. |
void |
startConnecting(ProtocolProviderService protocolProvider)
Starts connecting user interface for the given protocolProvider. |
void |
stopConnecting(ProtocolProviderService protocolProvider)
Stops connecting user interface for the given protocolProvider. |
void |
updateImage(ImageIcon img)
Updates the image that is shown. |
void |
updateStatus(ProtocolProviderService protocolProvider)
Updates the current status of the protocolProvider. |
void |
updateStatus(ProtocolProviderService protocolProvider,
PresenceStatus newStatus)
Updates the current status of the protocolProvider with the newStatus. |
| Methods inherited from class javax.swing.JPanel |
|---|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AccountStatusPanel(MainFrame mainFrame)
mainFrame - the main window, where this panel is added| Method Detail |
|---|
public void addAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the account to addpublic void removeAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the account to removepublic boolean containsAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the account to check for
public Object getLastPresenceStatus(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the account we're looking for
public String getLastStatusString(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the account we're looking for
public void updateStatus(ProtocolProviderService protocolProvider,
PresenceStatus newStatus)
protocolProvider - the ProtocolProviderService to updatenewStatus - the new status to setpublic void updateStatus(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to updatepublic void updateImage(ImageIcon img)
img - the new image.public void startConnecting(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to start
connecting forpublic void stopConnecting(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to stop
connecting forpublic boolean hasSelectedMenus()
public void registrationStateChanged(RegistrationStateChangeEvent evt)
registrationStateChanged in interface RegistrationStateChangeListenerevt - the RegistrationStateChangeEvent that notified us
of the changepublic void paintComponent(Graphics g)
paintComponent in class JComponentg - the Graphics object used for paintingpublic void pluginComponentAdded(PluginComponentEvent event)
pluginComponentAdded in interface PluginComponentListenerevent - PluginComponentEvent that notified uspublic void pluginComponentRemoved(PluginComponentEvent event)
pluginComponentRemoved in interface PluginComponentListenerevent - PluginComponentEvent that notified uspublic static byte[] getGlobalAccountImage()
public void avatarChanged(AvatarEvent event)
avatarChanged in interface AvatarListenerevent - the event containing the new imagepublic void loadSkin()
loadSkin in interface Skinnablepublic void serverStoredDetailsChanged(ServerStoredDetailsChangeEvent evt)
serverStoredDetailsChanged in interface ServerStoredDetailsChangeListenerevt - the ServerStoredDetailsChangeEvent
the event for name change.
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||