|
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.AbstractButton
javax.swing.JMenuItem
javax.swing.JMenu
net.java.sip.communicator.util.swing.SIPCommMenu
net.java.sip.communicator.impl.gui.main.presence.StatusSelectorMenu
net.java.sip.communicator.impl.gui.main.presence.GlobalStatusSelectorBox
public class GlobalStatusSelectorBox
The GlobalStatusSelectorBox is a global status selector box, which appears in the status panel, when the user has more than one account. It allows to the user to change globally its status with only one click, instead of going through all accounts and selecting the desired status for every one of them.
By default the GlobalStatusSelectorBox will show the most connected status of all registered accounts.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class javax.swing.JMenu |
|---|
JMenu.AccessibleJMenu, JMenu.WinListener |
| Nested classes/interfaces inherited from class javax.swing.JMenuItem |
|---|
JMenuItem.AccessibleJMenuItem |
| Nested classes/interfaces inherited from class javax.swing.AbstractButton |
|---|
AbstractButton.AccessibleAbstractButton, AbstractButton.ButtonChangeListener |
| 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 net.java.sip.communicator.impl.gui.main.presence.StatusSelectorMenu |
|---|
protocolProvider |
| Fields inherited from class javax.swing.JMenu |
|---|
popupListener |
| 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 |
| Fields inherited from interface javax.swing.SwingConstants |
|---|
BOTTOM, CENTER, EAST, HORIZONTAL, LEADING, LEFT, NEXT, NORTH, NORTH_EAST, NORTH_WEST, PREVIOUS, RIGHT, SOUTH, SOUTH_EAST, SOUTH_WEST, TOP, TRAILING, VERTICAL, WEST |
| Constructor Summary | |
|---|---|
GlobalStatusSelectorBox(MainFrame mainFrame)
Creates an instance of SimpleStatusSelectorBox. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handles the ActionEvent triggered when one of the items in the list is selected. |
void |
addAccount(ProtocolProviderService protocolProvider)
Adds a status menu for the account given by protocolProvider. |
boolean |
containsAccount(ProtocolProviderService protocolProvider)
Checks if a menu for the given protocolProvider exists. |
PresenceStatus |
getLastPresenceStatus(ProtocolProviderService protocolProvider)
Returns the last status that was stored in the configuration xml for the given protocol provider. |
String |
getLastStatusString(ProtocolProviderService protocolProvider)
Returns the last contact status saved in the configuration. |
boolean |
hasSelectedMenus()
Returns true if there are selected status selector boxes, otherwise returns false. |
void |
loadSkin()
Loads all icons and updates global status. |
void |
paintComponent(Graphics g)
Overwrites the paintComponent(Graphics g) method in order to provide a new look and the mouse moves over this component. |
void |
removeAccount(ProtocolProviderService protocolProvider)
Removes the status menu corresponding to the account given by protocolProvider. |
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 |
updateStatus(ProtocolProviderService protocolProvider)
Updates the status of the given protocolProvider. |
void |
updateStatus(ProtocolProviderService protocolProvider,
PresenceStatus presenceStatus)
Updates the status of the given protocolProvider with the given presenceStatus. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.presence.StatusSelectorMenu |
|---|
getAccountIndex, getProtocolProvider, imageUpdate, saveStatusInformation, setAccountIndex, startConnecting, stopConnecting, updateStatus |
| Methods inherited from class net.java.sip.communicator.util.swing.SIPCommMenu |
|---|
addItem, getSelectedObject, setMouseOver, setSelected, setSelectedObject |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface javax.swing.MenuElement |
|---|
processKeyEvent, processMouseEvent |
| Constructor Detail |
|---|
public GlobalStatusSelectorBox(MainFrame mainFrame)
mainFrame - The main application window.| Method Detail |
|---|
public void addAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService, for which
to add a status menupublic void removeAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService, which
menu to removepublic boolean containsAccount(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService to check
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 actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - the ActionEvent that notified uspublic void updateStatus(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService
corresponding to the menu to update
public void updateStatus(ProtocolProviderService protocolProvider,
PresenceStatus presenceStatus)
protocolProvider - the ProtocolProviderService
corresponding to the menu to updatepresenceStatus - the new status to setpublic PresenceStatus getLastPresenceStatus(ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider
public String getLastStatusString(ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider to which the status
corresponds
public void paintComponent(Graphics g)
paintComponent in class StatusSelectorMenug - the Graphics object used for paintingpublic void loadSkin()
loadSkin in interface SkinnableloadSkin in class StatusSelectorMenu
|
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 | |||||||||