|
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.PresenceStatusMenu
public class PresenceStatusMenu
The StatusSelectorBox is a SIPCommMenu that contains the list of statuses for a protocol provider. This is where the user could select its status.
| 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 | |
|---|---|
PresenceStatusMenu(ProtocolProviderService protocolProvider)
Initializes a new PresenceStatusMenu instance which is to depict and change the presence status of a specific ProtocolProviderService. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent e)
Handles the ActionEvent triggered when one of the items in the list is selected. |
PresenceStatus |
getLastSelectedStatus()
Returns the status that is currently selected. |
PresenceStatus |
getOfflineStatus()
Returns the Offline status in this selector box. |
PresenceStatus |
getOnlineStatus()
Returns the Online status in this selector box. |
void |
loadSkin()
Loads resources for this component. |
void |
setSelectedStatus(PresenceStatus status)
Selects the given status in the status menu. |
void |
updateStatus(PresenceStatus presenceStatus)
Selects a specific PresenceStatus in this instance and the ProtocolProviderService it depicts. |
| Methods inherited from class net.java.sip.communicator.impl.gui.main.presence.StatusSelectorMenu |
|---|
getAccountIndex, getProtocolProvider, imageUpdate, paintComponent, 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 PresenceStatusMenu(ProtocolProviderService protocolProvider)
protocolProvider - the ProtocolProviderService which is to
have its presence status depicted and changed by the new instance| Method Detail |
|---|
public void actionPerformed(ActionEvent e)
actionPerformed in interface ActionListenere - an ActionEvent which carries the data associated with
the performed actionpublic void updateStatus(PresenceStatus presenceStatus)
presenceStatus - the PresenceStatus to be selected in this
instance and the ProtocolProviderService it depictspublic void setSelectedStatus(PresenceStatus status)
status - the status to selectpublic PresenceStatus getOfflineStatus()
public PresenceStatus getOnlineStatus()
public PresenceStatus getLastSelectedStatus()
public 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 | |||||||||