Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.service.protocol.event
Class CallPeerAdapter

java.lang.Object
  extended by net.java.sip.communicator.service.protocol.event.CallPeerAdapter
All Implemented Interfaces:
EventListener, CallPeerListener
Direct Known Subclasses:
CallPeerAdapter, OperationSetAutoAnswerJabberImpl, OperationSetAutoAnswerSipImpl

public abstract class CallPeerAdapter
extends Object
implements CallPeerListener

An abstract adapter class for receiving call peer (change) events. This class exists only as a convenience for creating listener objects.

Extend this class to create a CallPeerChangeEvent listener and override the methods for the events of interest. (If you implement the CallPeerListener interface, you have to define all of the methods in it. This abstract class defines null methods for them all, so you only have to define methods for events you care about.)

Author:
Lubomir Marinov
See Also:
CallPeerChangeEvent, CallPeerListener

Constructor Summary
CallPeerAdapter()
           
 
Method Summary
 void peerAddressChanged(CallPeerChangeEvent evt)
          Indicates that a change has occurred in the address of the source CallPeer.
 void peerDisplayNameChanged(CallPeerChangeEvent evt)
          Indicates that a change has occurred in the display name of the source CallPeer.
 void peerImageChanged(CallPeerChangeEvent evt)
          Indicates that a change has occurred in the image of the source CallPeer.
 void peerStateChanged(CallPeerChangeEvent evt)
          Indicates that a change has occurred in the status of the source CallPeer.
 void peerTransportAddressChanged(CallPeerChangeEvent evt)
          Indicates that a change has occurred in the transport address that we use to communicate with the source CallPeer.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallPeerAdapter

public CallPeerAdapter()
Method Detail

peerAddressChanged

public void peerAddressChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the address of the source CallPeer.

Specified by:
peerAddressChanged in interface CallPeerListener
Parameters:
evt - the CallPeerChangeEvent instance containing the source event as well as its previous and its new address

peerDisplayNameChanged

public void peerDisplayNameChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the display name of the source CallPeer.

Specified by:
peerDisplayNameChanged in interface CallPeerListener
Parameters:
evt - the CallPeerChangeEvent instance containing the source event as well as its previous and its new display names

peerImageChanged

public void peerImageChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the image of the source CallPeer.

Specified by:
peerImageChanged in interface CallPeerListener
Parameters:
evt - the CallPeerChangeEvent instance containing the source event as well as its previous and its new image

peerStateChanged

public void peerStateChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the status of the source CallPeer.

Specified by:
peerStateChanged in interface CallPeerListener
Parameters:
evt - the CallPeerChangeEvent instance containing the source event as well as its previous and its new status

peerTransportAddressChanged

public void peerTransportAddressChanged(CallPeerChangeEvent evt)
Indicates that a change has occurred in the transport address that we use to communicate with the source CallPeer.

Specified by:
peerTransportAddressChanged in interface CallPeerListener
Parameters:
evt - the CallPeerChangeEvent instance containing the source event as well as its previous and its new transport address

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.