public abstract class BasicConferenceParticipantPanel<T> extends TransparentPanel implements Skinnable
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected T |
participant
The conference participant which is depicted by this instance.
|
protected SecurityStatusLabel |
securityStatusLabel
The security status of the peer
|
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Constructor and Description |
---|
BasicConferenceParticipantPanel(SwingCallRenderer callRenderer,
T participant,
boolean isVideo)
Initializes a new BasicConferenceParticipantPanel instance which
is to depict a specific conference participant.
|
Modifier and Type | Method and Description |
---|---|
void |
addToCenter(java.awt.Component component)
Adds the given component to the center below the sound bar.
|
void |
addToNameBar(java.awt.Component component)
Adds the given component to the name bar.
|
void |
addToStatusBar(java.awt.Component component)
Adds the given component to the status bar.
|
void |
enableVideoIndicator(boolean enable)
Enables or disabled video indicator in this conference participant
panel.
|
CallPanel |
getCallPanel()
Gets the CallPanel which contains this instances and uses it to
depict the associated conference participant.
|
SwingCallRenderer |
getCallRenderer()
Gets the CallRenderer which (directly or indirectly) initialized
this instance and which uses it to depict the associated conference
participant.
|
T |
getParticipant()
Gets the conference participant depicted by this instance.
|
java.lang.String |
getParticipantName()
Gets the name of the participant.
|
void |
initSecurityStatusLabel()
Creates SecurityStatusLabel and adds it to status bar.
|
void |
loadSkin()
Reloads default avatar icon.
|
void |
paintComponent(java.awt.Graphics g)
Overrides
JComponent.paintComponent(Graphics) in order to
customize the background of this panel. |
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.
|
protected void |
setErrorReason(java.lang.String reason)
Sets the reason of a call failure if one occurs.
|
void |
setParticipantImage(byte[] image)
Sets the image of the participant.
|
void |
setParticipantName(java.lang.String participantName)
Sets the name of the participant.
|
void |
setParticipantState(java.lang.String participantState)
Sets the state of the participant.
|
protected void |
setTitleBackground(java.awt.Color color)
Sets the background color of the title panel.
|
void |
updateSoundBar(int soundLevel)
Updates the sound level bar to reflect the new sound level value.
|
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
protected final T participant
protected SecurityStatusLabel securityStatusLabel
public BasicConferenceParticipantPanel(SwingCallRenderer callRenderer, T participant, boolean isVideo)
callRenderer
- the renderer for the callparticipant
- participantisVideo
- indicates if we're in a video interfacepublic void addToCenter(java.awt.Component component)
component
- the component to addpublic void addToNameBar(java.awt.Component component)
component
- the component to addpublic void addToStatusBar(java.awt.Component component)
component
- the component to addpublic CallPanel getCallPanel()
public SwingCallRenderer getCallRenderer()
public T getParticipant()
public java.lang.String getParticipantName()
public void initSecurityStatusLabel()
public void loadSkin()
public void paintComponent(java.awt.Graphics g)
JComponent.paintComponent(Graphics)
in order to
customize the background of this panel.paintComponent
in class javax.swing.JComponent
g
- the Graphics object used for paintingpublic void securityOff(CallPeerSecurityOffEvent evt)
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.
evt
- Details about the event that caused this message.public void securityPending()
protected void setErrorReason(java.lang.String reason)
reason
- the reason to displaypublic void setParticipantImage(byte[] image)
image
- the image to setpublic void setParticipantName(java.lang.String participantName)
participantName
- the name of the participantpublic void setParticipantState(java.lang.String participantState)
participantState
- the state of the participantprotected void setTitleBackground(java.awt.Color color)
color
- the background color to setpublic void updateSoundBar(int soundLevel)
soundLevel
- the new sound level valuepublic void enableVideoIndicator(boolean enable)
enable
- true to enable video indicator, false -
otherwise
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.