com.limegroup.gnutella.gui.chat
Class ChatUIManager

java.lang.Object
  extended bycom.limegroup.gnutella.gui.chat.ChatUIManager

public final class ChatUIManager
extends java.lang.Object

Manages all chat session and provides an interface to access each chat session.


Method Summary
 void acceptChat(com.limegroup.gnutella.chat.Chatter chatter)
          Accepts a new chat session with a new user.
 void chatErrorMessage(com.limegroup.gnutella.chat.Chatter chatter, java.lang.String str)
          Display an error message in the chat gui for the specified chat session.
 void chatUnavailable(com.limegroup.gnutella.chat.Chatter chatter)
          Lets the user know that a host is no longer available.
static ChatUIManager instance()
          Returns the single instance of this class, following singleton.
 void recieveMessage(com.limegroup.gnutella.chat.Chatter chatter)
          Receives a message for the session associated with the specified Chatter instance.
 void removeChat(com.limegroup.gnutella.chat.Chatter chatter)
          Removes the specified chat session from the list of active sessions.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ChatUIManager instance()
Returns the single instance of this class, following singleton.

Returns:
the single ChatManager instance

acceptChat

public void acceptChat(com.limegroup.gnutella.chat.Chatter chatter)
Accepts a new chat session with a new user.


removeChat

public void removeChat(com.limegroup.gnutella.chat.Chatter chatter)
Removes the specified chat session from the list of active sessions.


recieveMessage

public void recieveMessage(com.limegroup.gnutella.chat.Chatter chatter)
Receives a message for the session associated with the specified Chatter instance.

Parameters:
chatter - the Chatter instance with which the new message is associated

chatUnavailable

public void chatUnavailable(com.limegroup.gnutella.chat.Chatter chatter)
Lets the user know that a host is no longer available.


chatErrorMessage

public void chatErrorMessage(com.limegroup.gnutella.chat.Chatter chatter,
                             java.lang.String str)
Display an error message in the chat gui for the specified chat session.

Parameters:
chatter - the Chatter instance associated with the error
str - the error message to display