org.xnap.chat
Class ChatManager

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

public class ChatManager
extends java.lang.Object

Manages chat providers and joined channels. ChatManager uses the singleton pattern. Use getInstance() to get a reference to the chat manager.


Field Summary
protected  java.util.List channels
           
protected  ListSupport channelSupport
           
protected  java.util.List providers
           
protected  ListSupport providerSupport
           
 
Method Summary
 void add(Channel channel)
           
 void add(ChatProvider provider)
           
 void addChannelListListener(ListListener listener)
           
 void addProviderListListener(ListListener listener)
           
 boolean contains(Channel channel)
           
 Channel[] getChannels()
           
static ChatManager getInstance()
          Returns a reference to the ChatManager singleton.
 ChatProvider[] getProviders()
           
 void remove(Channel channel)
           
 void remove(ChatProvider provider)
           
 void removeChannelListListener(ListListener listener)
           
 void removeProviderListListener(ListListener listener)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

channels

protected java.util.List channels

providers

protected java.util.List providers

channelSupport

protected ListSupport channelSupport

providerSupport

protected ListSupport providerSupport
Method Detail

getInstance

public static ChatManager getInstance()
Returns a reference to the ChatManager singleton.


add

public void add(Channel channel)

add

public void add(ChatProvider provider)

addChannelListListener

public void addChannelListListener(ListListener listener)

addProviderListListener

public void addProviderListListener(ListListener listener)

contains

public boolean contains(Channel channel)

getChannels

public Channel[] getChannels()

getProviders

public ChatProvider[] getProviders()

remove

public void remove(Channel channel)

remove

public void remove(ChatProvider provider)

removeChannelListListener

public void removeChannelListListener(ListListener listener)

removeProviderListListener

public void removeProviderListListener(ListListener listener)


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