|
SIP Communicator: 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.call.MainCallPanel
public class MainCallPanel
The panel containing the call field and button, serving to make calls.
| 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 | |
|---|---|
MainCallPanel(MainFrame mainFrame)
Initializes and constructs this panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Handles the ActionEvent generated when user presses one of the buttons in this panel. |
void |
addCallAccount(ProtocolProviderService pps)
Adds the given call account to the list of call via accounts. |
boolean |
containsCallAccount(ProtocolProviderService pps)
Returns TRUE if the account corresponding to the given protocol provider is already contained in the call via selector box, otherwise returns FALSE. |
AccountSelectorBox |
getAccountSelectorBox()
Returns the account selector box. |
ProtocolProviderService |
getCallProvider()
Gets the protocol provider used for making calls. |
MainFrame |
getMainFrame()
Returns the main application window, which is the parent of this panel. |
String |
getPhoneNumberComboText()
Returns the content of the phone number combo box. |
void |
mouseClicked(MouseEvent e)
|
void |
mouseEntered(MouseEvent e)
|
void |
mouseExited(MouseEvent e)
|
void |
mousePressed(MouseEvent e)
|
void |
mouseReleased(MouseEvent e)
|
void |
pluginComponentAdded(PluginComponentEvent event)
Indicates that a plugin component has been successfully added to the container. |
void |
pluginComponentRemoved(PluginComponentEvent event)
Indicates that a plugin component has been successfully removed from the container. |
void |
registrationStateChanged(RegistrationStateChangeEvent evt)
The method is called by a ProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred. |
void |
removeCallAccount(ProtocolProviderService pps)
Removes the account corresponding to the given protocol provider from the call via selector box. |
void |
requestFocusInPhoneCombo()
Requests the focus in the phone number combo box. |
void |
setCallButtonEnabled(boolean isEnabled)
Enables or disabled the call button. |
void |
setCallMetaContact(boolean isCallMetaContact)
Sets the isCallMetaContact variable to TRUE or FALSE. |
void |
setCallProvider(ProtocolProviderService protocolProvider)
Sets the protocol provider to be used for making calls. |
void |
setPhoneNumberComboText(String phoneNumber)
Sets the given phoneNumber to the phone number combo box. |
void |
updateCallAccountStatus(ProtocolProviderService pps)
Updates the call via account status. |
void |
valueChanged(ListSelectionEvent e)
Implements ListSelectionListener.valueChanged. |
| 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 MainCallPanel(MainFrame mainFrame)
mainFrame - the main application window| Method Detail |
|---|
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerpublic MainFrame getMainFrame()
public ProtocolProviderService getCallProvider()
public void setCallProvider(ProtocolProviderService protocolProvider)
protocolProvider - the protocol provider to be used for making calls.public void setCallMetaContact(boolean isCallMetaContact)
isCallMetaContact - TRUE to define this call as a call to an
internal meta contact and FALSE to define it as a call to an
external contact or phone number.public void setCallButtonEnabled(boolean isEnabled)
isEnabled - true to enable the call button and
false otherwise.public void setPhoneNumberComboText(String phoneNumber)
phoneNumber - the phone number to set.public String getPhoneNumberComboText()
public void requestFocusInPhoneCombo()
public void addCallAccount(ProtocolProviderService pps)
pps - the protocol provider service corresponding to the accountpublic void removeCallAccount(ProtocolProviderService pps)
pps - the protocol provider service to removepublic boolean containsCallAccount(ProtocolProviderService pps)
pps - the protocol provider service for the account
public void updateCallAccountStatus(ProtocolProviderService pps)
pps - the protocol provider service for the accountpublic AccountSelectorBox getAccountSelectorBox()
public void valueChanged(ListSelectionEvent e)
valueChanged in interface ListSelectionListenerpublic void registrationStateChanged(RegistrationStateChangeEvent evt)
RegistrationStateChangeListenerProtocolProviderService
implementation whenever a change in the registration state of the
corresponding provider had occurred.
registrationStateChanged in interface RegistrationStateChangeListenerevt - the event describing the status change.public void pluginComponentAdded(PluginComponentEvent event)
PluginComponentListener
pluginComponentAdded in interface PluginComponentListenerevent - the PluginComponentEvent containing the corresponding
plugin componentpublic void pluginComponentRemoved(PluginComponentEvent event)
PluginComponentListener
pluginComponentRemoved in interface PluginComponentListenerevent - the PluginComponentEvent containing the corresponding
plugin componentpublic void mouseClicked(MouseEvent e)
mouseClicked in interface MouseListenerpublic void mousePressed(MouseEvent e)
mousePressed in interface MouseListenerpublic void mouseReleased(MouseEvent e)
mouseReleased in interface MouseListenerpublic void mouseEntered(MouseEvent e)
mouseEntered in interface MouseListenerpublic void mouseExited(MouseEvent e)
mouseExited in interface MouseListener
|
SIP Communicator: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||