public class ConferencePeerPanel extends BasicConferenceParticipantPanel<java.lang.Object> implements ConferenceCallPeerRenderer, Skinnable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
participant, securityStatusLabel
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
ConferencePeerPanel(BasicConferenceCallPanel callRenderer,
Call call,
boolean video)
Initializes a new ConferencePeerPanel which is to depict the
local peer represented by a specific Call on behalf of a
specific BasicConferenceCallPanel i.e.
|
ConferencePeerPanel(BasicConferenceCallPanel callRenderer,
CallPeer callPeer)
Initializes a new ConferencePeerPanel which is to depict a
specific CallPeer on behalf of a specific
BasicConferenceCallPanel i.e.
|
ConferencePeerPanel(BasicConferenceCallPanel callRenderer,
CallPeer callPeer,
boolean video)
Initializes a new ConferencePeerPanel which is to depict a
specific CallPeer on behalf of a specific
BasicConferenceCallPanel i.e.
|
Modifier and Type | Method and Description |
---|---|
void |
dispose()
Releases the resources (which require explicit disposal) acquired by this
CallPeerRenderer throughout its lifetime and prepares it for
garbage collection.
|
Call |
getCall()
Gets the Call associated with this instance.
|
java.lang.String |
getCallPeerContactAddress()
Returns CallPeer contact address.
|
java.awt.Component |
getComponent()
Returns the AWT Component which is the user interface equivalent
of this CallPeerRenderer.
|
boolean |
isDtmfToneEnabled() |
boolean |
isLocalVideoVisible()
Indicates if the local video component is currently visible.
|
(package private) static boolean |
isSoundLevelIndicatorEnabled()
Determines whether the indicator which depicts the sound/audio levels (of
the local or remote peer in a call) is to be enabled.
|
void |
loadSkin()
Reloads style information.
|
void |
printDTMFTone(char dtmfChar)
Prints the given DTMG character through this CallPeerRenderer.
|
void |
securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent securityNegotiationStartedEvent)
The handler for the security event received.
|
void |
securityOff(CallPeerSecurityOffEvent evt)
Indicates that the security has gone off.
|
void |
securityOn(CallPeerSecurityOnEvent evt)
Indicates that the security is turned on.
|
void |
securityPending()
Indicates that the security status is pending confirmation.
|
void |
securityTimeout(CallPeerSecurityTimeoutEvent evt)
Indicates that the security is timeouted, is not supported by the
other end.
|
void |
setDtmfToneEnabled(boolean enabled)
Enable or disable DTMF tone handle
|
void |
setErrorReason(java.lang.String reason)
Sets the reason of a call failure if one occurs.
|
void |
setLocalVideoVisible(boolean isVisible)
Shows/hides the local video component.
|
void |
setMute(boolean isMute)
Sets the mute status icon to the status panel.
|
void |
setOnHold(boolean isOnHold)
Sets the "on hold" property value.
|
void |
setPeerImage(byte[] icon)
Sets the icon of the peer.
|
void |
setPeerName(java.lang.String name)
Sets the name of the peer.
|
void |
setPeerState(CallPeerState oldState,
CallPeerState newState,
java.lang.String stateString)
Sets the state of the contained call peer by specifying the
state name.
|
void |
setSecurityPanelVisible(boolean isVisible)
Shows/hides the security panel.
|
addToCenter, addToNameBar, addToStatusBar, enableVideoIndicator, getCallPanel, getCallRenderer, getParticipant, getParticipantName, initSecurityStatusLabel, paintComponent, setParticipantImage, setParticipantName, setParticipantState, setTitleBackground, updateSoundBar
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, 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
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getCallPanel
getCallRenderer
public ConferencePeerPanel(BasicConferenceCallPanel callRenderer, Call call, boolean video)
callRenderer
- the BasicConferenceCallPanel which requests
the initialization of the new instance and which will use the new
instance to depict the local peer represented by the specified
Callcall
- the Call which represents the local peer to be
depicted by the new instancevideo
- true if the new instance will be associated with a
display of video (e.g. which will be streaming to the CallPeers
associated with the specified call); otherwise, falsejava.lang.NullPointerException
- if call is nullpublic ConferencePeerPanel(BasicConferenceCallPanel callRenderer, CallPeer callPeer)
callRenderer
- the BasicConferenceCallPanel which requests
the initialization of the new instance and which will use the new
instance to depict the specified CallPeercallPeer
- the CallPeer to be depicted by the new instancepublic ConferencePeerPanel(BasicConferenceCallPanel callRenderer, CallPeer callPeer, boolean video)
callRenderer
- the BasicConferenceCallPanel which requests
the initialization of the new instance and which will use the new
instance to depict the specified CallPeercallPeer
- the CallPeer to be depicted by the new instancevideo
- true if the new instance will be associated with a
display of video (e.g. which will be streaming from the specified
callPeer); otherwise, falsejava.lang.NullPointerException
- if callPeer is nullpublic void dispose()
dispose
in interface CallPeerRenderer
public Call getCall()
public java.lang.String getCallPeerContactAddress()
public java.awt.Component getComponent()
getComponent
in interface SwingCallPeerRenderer
public boolean isLocalVideoVisible()
isLocalVideoVisible
in interface CallPeerRenderer
static boolean isSoundLevelIndicatorEnabled()
public void loadSkin()
loadSkin
in interface Skinnable
loadSkin
in class BasicConferenceParticipantPanel<java.lang.Object>
public void printDTMFTone(char dtmfChar)
printDTMFTone
in interface CallPeerRenderer
dtmfChar
- the DTMF char to printpublic void securityNegotiationStarted(CallPeerSecurityNegotiationStartedEvent securityNegotiationStartedEvent)
securityNegotiationStarted
in interface CallPeerRenderer
securityNegotiationStartedEvent
- the security started event receivedpublic void securityOff(CallPeerSecurityOffEvent evt)
securityOff
in interface CallPeerRenderer
securityOff
in class BasicConferenceParticipantPanel<java.lang.Object>
evt
- Details about the event that caused this message.public void securityOn(CallPeerSecurityOnEvent evt)
Sets the secured status icon to the status panel and initializes/updates the corresponding security details.
securityOn
in interface CallPeerRenderer
securityOn
in class BasicConferenceParticipantPanel<java.lang.Object>
evt
- Details about the event that caused this message.public void securityPending()
securityPending
in interface CallPeerRenderer
securityPending
in class BasicConferenceParticipantPanel<java.lang.Object>
public void securityTimeout(CallPeerSecurityTimeoutEvent evt)
securityTimeout
in interface CallPeerRenderer
evt
- Details about the event that caused this message.public void setErrorReason(java.lang.String reason)
setErrorReason
in interface CallPeerRenderer
setErrorReason
in class BasicConferenceParticipantPanel<java.lang.Object>
reason
- the reason to displaypublic void setLocalVideoVisible(boolean isVisible)
setLocalVideoVisible
in interface CallPeerRenderer
isVisible
- true to show the local video, false -
otherwisepublic void setMute(boolean isMute)
setMute
in interface CallPeerRenderer
isMute
- indicates if the call with this peer is
mutedpublic void setOnHold(boolean isOnHold)
setOnHold
in interface CallPeerRenderer
isOnHold
- indicates if the call with this peer is put on holdpublic void setPeerImage(byte[] icon)
setPeerImage
in interface CallPeerRenderer
icon
- the icon to setpublic void setPeerName(java.lang.String name)
setPeerName
in interface CallPeerRenderer
name
- the name of the peerpublic void setPeerState(CallPeerState oldState, CallPeerState newState, java.lang.String stateString)
setPeerState
in interface CallPeerRenderer
oldState
- the previous state of the peernewState
- the new state of the peerstateString
- the state of the contained call peerpublic void setSecurityPanelVisible(boolean isVisible)
setSecurityPanelVisible
in interface CallPeerRenderer
isVisible
- true to show the security panel, false
to hide itpublic void setDtmfToneEnabled(boolean enabled)
CallPeerRenderer
setDtmfToneEnabled
in interface CallPeerRenderer
enabled
- - if true DTMF tone is enabled and disabled if falsepublic boolean isDtmfToneEnabled()
isDtmfToneEnabled
in interface CallPeerRenderer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.