|
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
public abstract class StatusSelectorMenu
A parent class for all status selector boxes.
SimpleStatusMenu,
GlobalStatusSelectorBox,
Serialized Form| 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 | |
|---|---|
protected ProtocolProviderService |
protocolProvider
The ProtocolProviderService associated with this status menu. |
| 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 | |
|---|---|
StatusSelectorMenu()
Creates a StatusSelectorMenu. |
|
StatusSelectorMenu(String text,
Icon defaultIcon,
ProtocolProviderService protocolProvider)
Creates a StatusSelectorMenu by specifying the text and icon to show. |
|
| Method Summary | |
|---|---|
int |
getAccountIndex()
Returns the account index (In case of more than one account for one and the same protocol). |
ProtocolProviderService |
getProtocolProvider()
Returns the protocol provider associated with this status menu. |
boolean |
imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
Updates the menu icon. |
void |
loadSkin()
Load connecting icon. |
void |
paintComponent(Graphics g)
Paints this component. |
protected void |
saveStatusInformation(ProtocolProviderService protocolProvider,
String statusName)
Saves the last status for all accounts. |
void |
setAccountIndex(int index)
Sets the account index. |
void |
startConnecting()
Starts the connecting. |
void |
stopConnecting()
Stops the connecting. |
void |
updateStatus()
Updates the current status. |
| 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 |
| Field Detail |
|---|
protected ProtocolProviderService protocolProvider
| Constructor Detail |
|---|
public StatusSelectorMenu()
public StatusSelectorMenu(String text,
Icon defaultIcon,
ProtocolProviderService protocolProvider)
text - the text of the menudefaultIcon - the icon of the menuprotocolProvider - the ProtocolProviderService associated
with this status menu| Method Detail |
|---|
public void updateStatus()
public int getAccountIndex()
public void setAccountIndex(int index)
index -
protected void saveStatusInformation(ProtocolProviderService protocolProvider,
String statusName)
protocolProvider - the protocol provider to save status information
forstatusName - the name of the status to savepublic void paintComponent(Graphics g)
paintComponent in class SIPCommMenug - the Graphics object used for paintingpublic void startConnecting()
public void stopConnecting()
public boolean imageUpdate(Image img,
int infoflags,
int x,
int y,
int w,
int h)
imageUpdate in interface ImageObserverimageUpdate in class AbstractButtonimg - the image to updateinfoflags - the info flagsx - the x coordinatey - the y coordinatew - the widthh - the height
public ProtocolProviderService getProtocolProvider()
public void loadSkin()
loadSkin in interface Skinnable
|
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 | |||||||||