org.xnap.chat
Class ChannelSupport

java.lang.Object
  extended by org.xnap.chat.ChannelSupport

public class ChannelSupport
extends java.lang.Object

This is a utility class that can be used by chat Channel classes for handling channel event listeners.


Constructor Summary
ChannelSupport(java.lang.Object source)
          Constructs a ChannelSupport object.
 
Method Summary
 void addChannelListener(ChannelListener l)
           
 void fireChannelJoined()
           
 void fireChannelParted()
           
 void fireMessageReceived(Peer sender, java.lang.String message, int messageType)
           
 void fireMessageReceived(java.lang.String message, int messageType)
           
 void firePeerAdded(Peer peer)
           
 void firePeerChanged(Peer peer)
           
 void firePeerRemoved(Peer peer)
           
 void fireTopicChanged(java.lang.String topic)
           
 void removeChannelListener(ChannelListener l)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ChannelSupport

public ChannelSupport(java.lang.Object source)
Constructs a ChannelSupport object.

Parameters:
source - the object to be given as the source for any events
Method Detail

addChannelListener

public void addChannelListener(ChannelListener l)

removeChannelListener

public void removeChannelListener(ChannelListener l)

fireChannelJoined

public void fireChannelJoined()

fireChannelParted

public void fireChannelParted()

fireMessageReceived

public void fireMessageReceived(Peer sender,
                                java.lang.String message,
                                int messageType)

fireMessageReceived

public void fireMessageReceived(java.lang.String message,
                                int messageType)

firePeerAdded

public void firePeerAdded(Peer peer)

firePeerChanged

public void firePeerChanged(Peer peer)

firePeerRemoved

public void firePeerRemoved(Peer peer)

fireTopicChanged

public void fireTopicChanged(java.lang.String topic)


Copyright © 2001-2005 XNap Team. All Rights Reserved.