public class CallPanel extends TransparentPanel implements java.awt.event.ActionListener, PluginComponentListener, Skinnable, ConferencePeerViewListener, ContactPresenceStatusListener
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
CallPanel(CallConference callConference,
CallContainer callWindow)
Initializes a new CallPanel which is to depict a specific
CallConference.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent evt)
Handles action events.
|
void |
actionPerformedOnHangupButton(boolean closeWait)
Executes the action associated with the "Hang up" button which may be
invoked by clicking the button in question or by 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 |
contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
Listens for contact status changes and updates the image of the
chat message button.
|
(package private) void |
dispose()
Releases the resources acquired by this instance which require explicit
disposal (e.g.
|
void |
disposeCallInfoFrame()
Disposes the call info frame if it exists.
|
CallConference |
getCallConference()
Returns the CallConference depicted by this CallPanel
|
java.lang.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.
|
boolean |
isCallTimerStarted()
Returns
true if the call timer has been started, otherwise
returns false . |
boolean |
isCloseWaitAfterHangup()
Indicates if this call panel should be closed immediately after hang up
or should wait some time so that the user can be notified of the last
state.
|
(package private) boolean |
isConference()
Checks if the contained call is a conference call.
|
(package private) boolean |
isFullScreen()
Determines whether this view is displayed in full-screen or windowed
mode.
|
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.
|
void |
loadSkin()
Reloads icons.
|
(package private) void |
onCallEvent(CallEvent ev)
Notifies this CallPanel about a specific CallEvent
(received by CallManager).
|
protected void |
onPluginComponentEvent(PluginComponentEvent ev)
Adds/removes the Component of the PluginComponent
specified by a PluginComponentEvent to/from
settingsPanel (if it is appropriate for this
Container). |
void |
peerViewAdded(ConferencePeerViewEvent ev)
Indicates that the peer panel was added.
|
void |
peerViewRemoved(ConferencePeerViewEvent ev)
Indicates that the peer panel was removed.
|
void |
pluginComponentAdded(PluginComponentEvent ev)
Indicates that a plugin component has been successfully added
to the container.
|
void |
pluginComponentRemoved(PluginComponentEvent ev)
Indicates that a plugin component has been successfully removed
from the container.
|
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.
|
(package private) void |
setFullScreen(boolean fullScreen)
Sets the display of this view to full-screen or windowed mode.
|
void |
setVideoButtonSelected(boolean isSelected)
Selects or unselects the video button in this call dialog.
|
void |
showThumbnailsList(boolean show)
Shows/hides the thumbnails list in the case of video conference.
|
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.
|
getAccessibleContext, getUI, getUIClassID, paramString, setUI, updateUI
addAncestorListener, addNotify, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAncestorListeners, getAutoscrolls, getBaseline, getBaselineResizeBehavior, getBorder, getBounds, getClientProperty, getComponentGraphics, getComponentPopupMenu, getConditionForKeyStroke, getDebugGraphicsOptions, getDefaultLocale, getFontMetrics, getGraphics, getHeight, getInheritsPopupMenu, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPopupLocation, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getToolTipText, getTopLevelAncestor, getTransferHandler, getVerifyInputWhenFocusTarget, getVetoableChangeListeners, getVisibleRect, getWidth, getX, getY, grabFocus, hide, isDoubleBuffered, isLightweightComponent, isManagingFocus, isOpaque, isOptimizedDrawingEnabled, isPaintingForPrint, isPaintingOrigin, isPaintingTile, isRequestFocusEnabled, isValidateRoot, paint, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processKeyBinding, processKeyEvent, processMouseEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setComponentPopupMenu, setDebugGraphicsOptions, setDefaultLocale, setDoubleBuffered, setEnabled, setFocusTraversalKeys, setFont, setForeground, setInheritsPopupMenu, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setTransferHandler, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update
add, add, add, add, add, addContainerListener, addImpl, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalKeys, getFocusTraversalPolicy, getLayout, getMousePosition, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusCycleRoot, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setLayout, transferFocusDownCycle, validate, validateTree
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, createVolatileImage, createVolatileImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getForeground, getGraphicsConfiguration, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocale, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setFocusable, setFocusTraversalKeysEnabled, setIgnoreRepaint, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
public CallPanel(CallConference callConference, CallContainer callWindow)
callConference
- the CallConference to be depicted by the
new instancecallWindow
- the parent window in which the new instance will be
addedpublic void actionPerformed(java.awt.event.ActionEvent evt)
actionPerformed
in interface java.awt.event.ActionListener
evt
- the ActionEvent that was triggeredpublic void actionPerformedOnHangupButton(boolean closeWait)
closeWait
- true to close this instance with a few seconds
of delay or false to close it immediatelypublic boolean isCloseWaitAfterHangup()
public void addCallTitleListener(CallTitleListener l)
l
- the CallTitleListener to addpublic void addRemoteVideoSpecificComponents(CallPeer callPeer)
callPeer
- the CallPeervoid dispose()
public void disposeCallInfoFrame()
public CallConference getCallConference()
public java.lang.String getCallTitle()
public CallContainer getCallWindow()
public CallRenderer getCurrentCallRenderer()
public int getMinimumButtonWidth()
public boolean isCallTimerStarted()
true
if the call timer has been started, otherwise
returns false
.true
if the call timer has been started, otherwise
returns false
boolean isConference()
true
if the contained Call is a conference
call, otherwise - returns false
.boolean isFullScreen()
public boolean isRecordingStarted()
public boolean isShowHideVideoButtonSelected()
void onCallEvent(CallEvent ev)
ev
- a CallEvent which specifies the Call which
caused this instance to be notified and the exact type of the
notification eventprotected void onPluginComponentEvent(PluginComponentEvent ev)
settingsPanel
(if it is appropriate for this
Container).ev
- a PluginComponentEvent which specifies the
PluginComponent whose Component is to be added/removed
to/from settingsPanel
public void peerViewAdded(ConferencePeerViewEvent ev)
peerViewAdded
in interface ConferencePeerViewListener
ev
- the event.public void peerViewRemoved(ConferencePeerViewEvent ev)
peerViewRemoved
in interface ConferencePeerViewListener
ev
- the event.public void pluginComponentAdded(PluginComponentEvent ev)
settingsPanel
(if it is
appropriate for this Container).pluginComponentAdded
in interface PluginComponentListener
ev
- the PluginComponentEvent containing the corresponding
plugin componentpublic void pluginComponentRemoved(PluginComponentEvent ev)
settingsPanel
(if it
is appropriate for this Container).pluginComponentRemoved
in interface PluginComponentListener
ev
- the PluginComponentEvent containing the corresponding
plugin componentpublic void removeCallTitleListener(CallTitleListener l)
l
- the CallTitleListener to removepublic void removeRemoteVideoSpecificComponents()
void setFullScreen(boolean fullScreen)
fullScreen
- true to display this view in full-screen mode
or false for windowed modepublic void showThumbnailsList(boolean show)
show
- true to show the thumbnails list, false
to hide itpublic void setVideoButtonSelected(boolean isSelected)
isSelected
- indicates if the video button should be selected or notpublic void startCallTimer()
public void stopCallTimer()
public void updateHoldButtonState()
public void contactPresenceStatusChanged(ContactPresenceStatusChangeEvent evt)
contactPresenceStatusChanged
in interface ContactPresenceStatusListener
evt
- the ContactPresenceStatusChangeEvent describing the status
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.