Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
void | addChatDisplayListener (IChatDisplayListener listener) |
void | removeChatDisplayListener (IChatDisplayListener listener) |
void | addMessage (Object entity, String name, String message, Date time, Color color) |
void | clear () |
void | updateEntityName (Object entity, String name) |
void | updateEntityColor (Object entity, Color color) |
Interface for adding, removing, and modifying chat content.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.addChatDisplayListener | ( | IChatDisplayListener | listener | ) |
Adds the given listeners to this IChatDisplay
.
listener | the listener to add |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.addMessage | ( | Object | entity, |
String | name, | ||
String | message, | ||
Date | time, | ||
Color | color | ||
) |
Adds a message to the current content of this IChatDisplay
.
entity | a reference to originator of the message |
name | the name of the entity |
message | the message to add |
time | the time to display belong the message, e.g the time the message was received |
color | a color hint which should be used to apply additional visual appearance to the entity name |
Implemented in de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.clear | ( | ) |
Clears the current content of this IChatDisplay
.
Implemented in de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IRCStyleChatDisplay, and de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.removeChatDisplayListener | ( | IChatDisplayListener | listener | ) |
Removes the given listeners from this IChatDisplay
.
listener | the listener to removed |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.updateEntityColor | ( | Object | entity, |
Color | color | ||
) |
Updates the entity color for all message entries. Optional operation.
entity | the entity to update |
color | the new color for the entity |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.updateEntityName | ( | Object | entity, |
String | name | ||
) |
Updates the entity name for all message entries. Optional operation.
entity | the entity to update |
name | the new name for the entity |