|
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.call.CallPanel
public class CallPanel
The dialog created for a given call. Ordered buttons we are adding/removing, numbers are the index we have set. And the order that will be kept. 0 dialButton 1 conferenceButton 2 holdButton 3 recordButton 4 mergeButton 5 transferCallButton 6 localLevel 7 remoteLevel 8 desktopSharingButton 9 resizeVideoButton 10 fullScreenButton 11 videoButton 12 showHideVideoButton 19 chatButton 20 infoButton
| 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 | |
|---|---|
CallPanel()
Creates an empty constructor allowing to extend this panel. |
|
CallPanel(Call call,
CallContainer callWindow)
Creates a CallDialog by specifying the underlying call panel. |
|
| Method Summary | |
|---|---|
void |
actionPerformed(ActionEvent evt)
Handles action events. |
void |
actionPerformedOnHangupButton(boolean isCloseWait)
Executes the action associated with the "Hang up" button which may be invoked by clicking the button in question or closing this dialog. |
void |
addCallTitleListener(CallTitleListener l)
Adds the given CallTitleListener to the list of listeners, notified for call title changes. |
void |
addRemoteVideoSpecificComponents(CallPeer callPeer)
Adds remote video specific components. |
void |
callEnded(CallEvent event)
Indicates that all peers have left the source call and that it has been ended. |
void |
callPeerAdded(CallPeerEvent evt)
Implements the CallChangeListener.callPeerAdded method. |
void |
callPeerRemoved(CallPeerEvent evt)
Implements the CallChangeListener.callPeerRemoved method. |
void |
callStateChanged(CallChangeEvent evt)
Indicates that a change has occurred in the state of the source call. |
void |
conferenceFocusChanged(CallPeerConferenceEvent conferenceEvent)
Updates CallPeer related components to fit the new focus state. |
void |
conferenceMemberAdded(CallPeerConferenceEvent conferenceEvent)
Notifies this listener about the addition of a specific ConferenceMember to the list of ConferenceMembers of a specific CallPeer acting as a conference focus. |
void |
conferenceMemberRemoved(CallPeerConferenceEvent conferenceEvent)
Notifies this listener about the removal of a specific ConferenceMember from the list of ConferenceMembers of a specific CallPeer acting as a conference focus. |
void |
disposeCallInfoFrame()
Disposes the call info frame if it exists. |
void |
enableButtons(boolean enable)
Enables or disable all setting buttons. |
void |
enableButtonsWhileOnHold(boolean hold)
Enables or disable some setting buttons when we get on/off hold. |
Call |
getCall()
Returns the Call corresponding to this CallDialog. |
String |
getCallTitle()
Returns the initial call title. |
CallContainer |
getCallWindow()
Returns the parent call window. |
CallRenderer |
getCurrentCallRenderer()
Returns the currently used CallRenderer. |
int |
getMinimumButtonWidth()
Returns the minimum width needed to show buttons. |
void |
incomingCallReceived(CallEvent event)
This method is called by a protocol provider whenever an incoming call is received. |
boolean |
isCallTimerStarted()
Returns true if the call timer has been started, otherwise
returns false. |
boolean |
isConference()
Checks if the contained call is a conference call. |
boolean |
isRecordingStarted()
Checks whether recording is currently enabled or not, state retrieved from call record button state. |
boolean |
isShowHideVideoButtonSelected()
Returns true if the show/hide video button is currently selected, false - otherwise. |
boolean |
isVideoButtonSelected()
Returns true if the video button is currently selected, false - otherwise. |
void |
loadSkin()
Reloads icons. |
void |
outgoingCallCreated(CallEvent event)
This method is called by a protocol provider upon initiation of an outgoing call. |
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 |
refreshContainer()
Refreshes the content of this dialog. |
void |
removeCallTitleListener(CallTitleListener l)
Removes the given CallTitleListener to the list of listeners, notified for call title changes. |
void |
removeRemoteVideoSpecificComponents()
Remove remote video specific components. |
void |
setDesktopSharingButtonSelected(boolean isSelected)
Selects or unselects the desktop sharing button in this call dialog. |
void |
setShowHideVideoButtonSelected(boolean isSelected)
Selects or unselects the show/hide video button in this call dialog. |
void |
setVideoButtonSelected(boolean isSelected)
Selects or unselects the video button in this call dialog. |
void |
startCallTimer()
Starts the timer that counts call duration. |
void |
stopCallTimer()
Stops the timer that counts call duration. |
void |
updateHoldButtonState()
Updates the state of the general hold button. |
void |
updateMergeButtonState()
Updates the mergeButton visible status. |
| 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 CallPanel()
public CallPanel(Call call,
CallContainer callWindow)
call - the call that this dialog representscallWindow - the parent call window, where this container is added| Method Detail |
|---|
public void actionPerformed(ActionEvent evt)
actionPerformed in interface ActionListenerevt - the ActionEvent that was triggeredpublic void actionPerformedOnHangupButton(boolean isCloseWait)
isCloseWait - true to schedule close after some seconds, false to
close immediatelypublic Call getCall()
public CallContainer getCallWindow()
public void updateHoldButtonState()
public void setVideoButtonSelected(boolean isSelected)
isSelected - indicates if the video button should be selected or notpublic boolean isVideoButtonSelected()
public void setShowHideVideoButtonSelected(boolean isSelected)
isSelected - indicates if the show/hide video button should be
selected or notpublic boolean isShowHideVideoButtonSelected()
public void setDesktopSharingButtonSelected(boolean isSelected)
isSelected - indicates if the video button should be selected or notpublic void enableButtonsWhileOnHold(boolean hold)
hold - true if we are on hold, false otherwisepublic void enableButtons(boolean enable)
enable - true to enable all setting buttons, false to disable thempublic void callPeerAdded(CallPeerEvent evt)
callPeerAdded in interface CallChangeListenerevt - the CallPeerEvent that notifies us for the changepublic void callPeerRemoved(CallPeerEvent evt)
callPeerRemoved in interface CallChangeListenerevt - the CallPeerEvent that has been triggeredpublic void callStateChanged(CallChangeEvent evt)
CallChangeListener
callStateChanged in interface CallChangeListenerevt - the CallChangeEvent instance containing the source
calls and its old and new state.public void conferenceFocusChanged(CallPeerConferenceEvent conferenceEvent)
conferenceFocusChanged in interface CallPeerConferenceListenerconferenceEvent - the event that notified us of the changepublic void conferenceMemberAdded(CallPeerConferenceEvent conferenceEvent)
CallPeerConferenceListener
conferenceMemberAdded in interface CallPeerConferenceListenerconferenceEvent - a CallPeerConferenceEvent with ID
CallPeerConferenceEvent#CONFERENCE_MEMBER_ADDED
and conferenceMember property specifying the
ConferenceMember which was addedpublic void conferenceMemberRemoved(CallPeerConferenceEvent conferenceEvent)
CallPeerConferenceListener
conferenceMemberRemoved in interface CallPeerConferenceListenerconferenceEvent - a CallPeerConferenceEvent with ID
CallPeerConferenceEvent#CONFERENCE_MEMBER_REMOVED
and conferenceMember property specifying the
ConferenceMember which was removedpublic boolean isConference()
true if the contained Call is a conference
call, otherwise - returns false.public void startCallTimer()
public void stopCallTimer()
public boolean isCallTimerStarted()
true if the call timer has been started, otherwise
returns false.
true if the call timer has been started, otherwise
returns falsepublic void loadSkin()
loadSkin in interface Skinnablepublic String getCallTitle()
public void refreshContainer()
public CallRenderer getCurrentCallRenderer()
public void addRemoteVideoSpecificComponents(CallPeer callPeer)
callPeer - the CallPeerpublic void removeRemoteVideoSpecificComponents()
public void pluginComponentAdded(PluginComponentEvent event)
pluginComponentAdded in interface PluginComponentListenerevent - the PluginComponentEvent containing the corresponding
plugin componentpublic void pluginComponentRemoved(PluginComponentEvent event)
pluginComponentRemoved in interface PluginComponentListenerevent - the PluginComponentEvent containing the corresponding
plugin componentpublic boolean isRecordingStarted()
public void addCallTitleListener(CallTitleListener l)
l - the CallTitleListener to addpublic void removeCallTitleListener(CallTitleListener l)
l - the CallTitleListener to removepublic void disposeCallInfoFrame()
public void incomingCallReceived(CallEvent event)
incomingCallReceived in interface CallListenerevent - a CallEvent instance describing the new incoming callpublic void outgoingCallCreated(CallEvent event)
outgoingCallCreated in interface CallListenerevent - a CalldEvent instance describing the new incoming call.public void callEnded(CallEvent event)
callEnded in interface CallListenerevent - the CallEvent containing the source call.public void updateMergeButtonState()
public int getMinimumButtonWidth()
|
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 | |||||||||