public abstract class BasicConferenceCallPanel extends javax.swing.JPanel implements SwingCallRenderer
javax.swing.JPanel.AccessibleJPanel
javax.swing.JComponent.AccessibleJComponent
Modifier and Type | Field and Description |
---|---|
protected CallConference |
callConference
The CallConference which is depicted by this
BasicConferenceCallPanel i.e.
|
protected CallPanel |
callPanel
The CallPanel which has created this instance and uses it to
depict
callConference . |
listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW
Modifier | Constructor and Description |
---|---|
protected |
BasicConferenceCallPanel(CallPanel callPanel,
CallConference callConference)
Initializes a new BasicConferenceCallPanel instance which is to
be used by a specific CallPanel to depict a specific
CallConference.
|
Modifier and Type | Method and Description |
---|---|
void |
addDelayedCallPeer(CallPeer peer)
Creates a timer for the call peer and adds the timer and the call peer to
delayedCallPeers list.
|
void |
addPeerViewlListener(ConferencePeerViewListener listener)
Adds new ConferencePeerViewListener listener if the listener
is not already added.
|
protected void |
callPeerAdded(CallPeerEvent ev)
Notifies this instance that a CallPeer was added to a
Call participating in the telephony conference depicted by this
instance.
|
protected void |
callPeerRemoved(CallPeerEvent ev)
Notifies this instance that a CallPeer was removed from a
Call participating in the telephony conference depicted by this
instance.
|
protected void |
callStateChanged(CallChangeEvent ev)
Notifies this instance that there was a change in the CallState
of a Call participating in the telephony conference depicted by
this instance.
|
protected void |
conferenceFocusChanged(CallPeerConferenceEvent ev)
Notifies this instance that a CallPeer associated with a
Call participating in the telephony conference depicted by this
instance changed its conferenceFocus state/property.
|
protected void |
conferenceMemberAdded(CallPeerConferenceEvent ev)
Notifies this instance that a CallPeer associated with a
Call participating in the telephony conference depicted by this
instance added a ConferenceMember (to its list).
|
protected void |
conferenceMemberErrorReceived(CallPeerConferenceEvent ev)
Notifies this instance that a CallPeer associated with a
Call participating in the telephony conference received a error
packet.
|
protected void |
conferenceMemberRemoved(CallPeerConferenceEvent ev)
Notifies this instance that a CallPeer associated with a
Call participating in the telephony conference depicted by this
instance removed a ConferenceMember (from its list).
|
void |
dispose()
Releases the resources acquired by this instance which require explicit
disposal (e.g.
|
void |
fireConferencePeerViewEvent(int eventID,
CallPeer callPeer,
ConferenceCallPeerRenderer callPeerView)
Creates and fires ConferencePeerViewEvent event.
|
CallPanel |
getCallContainer()
Returns the parent, container which created this CallRenderer
and in which this CallRenderer is added
|
SwingCallPeerRenderer |
getCallPeerRenderer(CallPeer callPeer)
Returns the CallPeerRenderer corresponding to the given
callPeer.
|
boolean |
hasDelayedCallPeers()
Check if the list with the delayed call peers is empty.
|
protected void |
initializeComplete()
Notifies this instance that it has been fully initialized and the view
that it implements is ready to be updated from its model.
|
boolean |
isCallTimerStarted()
Returns
true if the call timer has been started, otherwise
returns false . |
protected boolean |
isDisposed()
Returns true if
dispose() has already been invoked on
this instance; otherwise, false. |
protected void |
onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
Notifies this instance about a specific CallPeerConferenceEvent
fired in the telephony conference depicted by this instance.
|
protected void |
onCallPeerEvent(CallPeerEvent ev)
Notifies this instance about a specific CallPeerEvent fired in
the telephony conference depicted by this instance.
|
void |
removeDelayedCallPeer(CallPeer peer,
boolean stopTimer)
Removes a call peer from delayedCallPeers list.
|
void |
removePeerViewListener(ConferencePeerViewListener listener)
Removes ConferencePeerViewListener listener.
|
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.
|
protected void |
updateViewFromModel()
Updates this view i.e.
|
protected void |
updateViewFromModel(CallPeer callPeer)
Updates the ConferenceCallPeerRenderer which is to depict a
specific CallPeer.
|
protected abstract ConferenceCallPeerRenderer |
updateViewFromModel(ConferenceCallPeerRenderer callPeerPanel,
CallPeer callPeer)
Updates the ConferenceCallPeerRenderer which is to depict a
specific CallPeer.
|
protected void |
updateViewFromModelInEventDispatchThread()
Updates this view i.e.
|
protected abstract void |
viewForModelAdded(ConferenceCallPeerRenderer callPeerPanel,
CallPeer callPeer)
Notifies this instance that a ConferenceCallPeerRenderer was
added to depict a specific CallPeer.
|
protected abstract void |
viewForModelRemoved(ConferenceCallPeerRenderer callPeerPanel,
CallPeer callPeer)
Notifies this instance that a ConferenceCallPeerRenderer was
removed to no longer depict a specific CallPeer.
|
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
protected final CallPanel callPanel
callConference
.protected final CallConference callConference
protected BasicConferenceCallPanel(CallPanel callPanel, CallConference callConference)
callPanel
- the CallPanel which will use the new instance
to depict the specified CallConference.callConference
- the CallConference to be depicted by the
new instancepublic void addDelayedCallPeer(CallPeer peer)
peer
- the peer to be added.public void addPeerViewlListener(ConferencePeerViewListener listener)
listener
- the listener to be added.protected void callPeerAdded(CallPeerEvent ev)
ev
- a CallPeerEvent which specifies the CallPeer
which was added and the Call to which it was addedprotected void callPeerRemoved(CallPeerEvent ev)
ev
- a CallPeerEvent which specifies the CallPeer
which was removed and the Call from which it was removedprotected void callStateChanged(CallChangeEvent ev)
ev
- a CallChangeEvent which specifies the Call
whose CallState was changed and the old and new
CallStatesprotected void conferenceFocusChanged(CallPeerConferenceEvent ev)
ev
- a CallPeerConferenceEvent which specifies the
CallPeer which changed its conferenceFocus
state/propertyprotected void conferenceMemberAdded(CallPeerConferenceEvent ev)
ev
- a CallPeerConferenceEvent which specifies the
ConferenceMember which was added and the CallPeer which
added that ConferenceMember (to its list)protected void conferenceMemberErrorReceived(CallPeerConferenceEvent ev)
ev
- a CallPeerConferenceEvent which specifies the
CallPeer which sent the error packet and an error message.protected void conferenceMemberRemoved(CallPeerConferenceEvent ev)
ev
- a CallPeerConferenceEvent which specifies the
ConferenceMember which was removed and the CallPeer
which removed that ConferenceMember (from its list)public void dispose()
dispose
in interface CallRenderer
public void fireConferencePeerViewEvent(int eventID, CallPeer callPeer, ConferenceCallPeerRenderer callPeerView)
addPeerViewlListener(net.java.sip.communicator.impl.gui.main.call.conference.ConferencePeerViewListener)
method.eventID
- the ID of this event which may be
ConferencePeerViewEvent.CONFERENCE_PEER_VIEW_ADDED
or
ConferencePeerViewEvent.CONFERENCE_PEER_VIEW_REMOVED
callPeer
- the call peer associated with the event.callPeerView
- the peer view associated with the event.public CallPanel getCallContainer()
SwingCallRenderer.getCallContainer()
.getCallContainer
in interface SwingCallRenderer
public SwingCallPeerRenderer getCallPeerRenderer(CallPeer callPeer)
CallRenderer.getCallPeerRenderer(CallPeer)
.getCallPeerRenderer
in interface CallRenderer
callPeer
- the CallPeer, for which we're looking for a
rendererpublic boolean hasDelayedCallPeers()
protected void initializeComplete()
updateViewFromModel()
.protected final boolean isDisposed()
dispose()
has already been invoked on
this instance; otherwise, false.protected void onCallPeerConferenceEvent(CallPeerConferenceEvent ev)
ev
- the CallPeerConferenceEvent this instance is notified
aboutprotected void onCallPeerEvent(CallPeerEvent ev)
callPeerAdded(CallPeerEvent)
or
callPeerRemoved(CallPeerEvent)
.ev
- the CallPeerEvent this instance is notified aboutpublic void removeDelayedCallPeer(CallPeer peer, boolean stopTimer)
peer
- a call peer to be removed.stopTimer
- if true the timer for the peer will be stopped
before the removal.public void removePeerViewListener(ConferencePeerViewListener listener)
listener
- the listener to be removed.protected void updateViewFromModel()
protected void updateViewFromModel(CallPeer callPeer)
updateViewFromModelInEventDispatchThread()
in the AWT event
dispatching thread.callPeer
- the CallPeer whose depicting
ConferenceCallPeerPanel is to be updated. The null
value is used to indicate the local peer.updateViewFromModel(ConferenceCallPeerRenderer, CallPeer)
protected abstract ConferenceCallPeerRenderer updateViewFromModel(ConferenceCallPeerRenderer callPeerPanel, CallPeer callPeer)
callPeerPanel
- the ConferenceCallPeerRenderer, if any,
which currently depicts the specified CallPeercallPeer
- the CallPeer whose depicting
ConferenceCallPeerPanel is to be updated. The null
value is used to indicate the local peer.CallPeerRenderer.dispose()
.protected void updateViewFromModelInEventDispatchThread()
protected abstract void viewForModelAdded(ConferenceCallPeerRenderer callPeerPanel, CallPeer callPeer)
callPeerPanel
- the ConferenceCallPeerRenderer which was
added to depict the specified callPeercallPeer
- the CallPeer which is depicted by the specified
callPeerPanelprotected abstract void viewForModelRemoved(ConferenceCallPeerRenderer callPeerPanel, CallPeer callPeer)
callPeerPanel
- the ConferenceCallPeerRenderer which was
removed to no longer depict the specified callPeercallPeer
- the CallPeer which is depicted by the specified
callPeerPanelpublic void startCallTimer()
startCallTimer
in interface CallRenderer
public void stopCallTimer()
stopCallTimer
in interface CallRenderer
public boolean isCallTimerStarted()
true
if the call timer has been started, otherwise
returns false
.isCallTimerStarted
in interface CallRenderer
true
if the call timer has been started, otherwise
returns false
public void updateHoldButtonState()
updateHoldButtonState
in interface CallRenderer
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.