Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
void | addHistoryEntry (ChatElement entry) |
List< ChatElement > | getHistory () |
void | clearHistory () |
void | addChatListener (IChatListener chatListener) |
void | removeChatListener (IChatListener chatListener) |
void | notifyJIDConnected (JID jid) |
void | notifyJIDDisconnected (JID jid) |
void | notifyJIDMessageReceived (JID sender, String message) |
void | notifyJIDStateChanged (JID jid, ChatState state) |
Abstract chat class that implements history management and provides basic functionality for adding and removing IChatListeners.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.addChatListener | ( | IChatListener | chatListener | ) |
Add chat listener to receive notifications on events.
chatListener | chat listener to add |
Implements de.fu_berlin.inf.dpp.communication.chat.IChat.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.addHistoryEntry | ( | ChatElement | entry | ) |
Add ChatElement to this chat's history.
entry | chat element to add |
Implements de.fu_berlin.inf.dpp.communication.chat.IChat.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.clearHistory | ( | ) |
Clears the current chat history.
Implements de.fu_berlin.inf.dpp.communication.chat.IChat.
List<ChatElement> de.fu_berlin.inf.dpp.communication.chat.AbstractChat.getHistory | ( | ) |
Returns the chat history for this chat.
Implements de.fu_berlin.inf.dpp.communication.chat.IChat.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDConnected | ( | JID | jid | ) |
Notify all IChatListeners about a connected JID.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDDisconnected | ( | JID | jid | ) |
Notify all IChatListeners about a disconnected JID.
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDMessageReceived | ( | JID | sender, |
String | message | ||
) |
Notify all IChatListeners about a received message
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.notifyJIDStateChanged | ( | JID | jid, |
ChatState | state | ||
) |
Notify all IChatListeners about a changed ChatState
void de.fu_berlin.inf.dpp.communication.chat.AbstractChat.removeChatListener | ( | IChatListener | chatListener | ) |
Remove chat listener so it will not receive notifications on events.
chatListener |
Implements de.fu_berlin.inf.dpp.communication.chat.IChat.