SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.media
Class MediaEventDispatcher

java.lang.Object
  extended by net.java.sip.communicator.impl.media.MediaEventDispatcher

public class MediaEventDispatcher
extends Object

This is a utility class that can be used by objects that support constrained properties. You can use an instance of this class as a member field of your bean and delegate various work to it.

Author:
Martin Andre, Emil Ivov

Constructor Summary
MediaEventDispatcher()
           
 
Method Summary
protected  void addMediaListener(MediaListener listener)
          Add a mediaListener to the listener list.
protected  void fireMediaServiceStatusChanged()
          Alert all media listeners that status has changed.
protected  void fireReceivedMediaStream(MediaEvent mediaEvent)
          Alert all media listeners that we're receiving a media stream.
protected  void removeMediaListener(MediaListener listener)
          Remove a MediaListener from the listener list.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MediaEventDispatcher

public MediaEventDispatcher()
Method Detail

addMediaListener

protected void addMediaListener(MediaListener listener)
Add a mediaListener to the listener list.

Parameters:
listener - The MediaListener to be added

removeMediaListener

protected void removeMediaListener(MediaListener listener)
Remove a MediaListener from the listener list.

Parameters:
listener - The MediaListener to be removed

fireReceivedMediaStream

protected void fireReceivedMediaStream(MediaEvent mediaEvent)
Alert all media listeners that we're receiving a media stream.

Parameters:
mediaEvent - the source of the event

fireMediaServiceStatusChanged

protected void fireMediaServiceStatusChanged()
Alert all media listeners that status has changed.


SIP Communicator: the OpenSource Java VoIP and Instant Messaging client.

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