Saros
Distributed Collaborative Editing and Distributed Party Programming
|
Public Member Functions | |
SkypeStyleChatDisplay (Composite parent, int style, Color backgroundColor) | |
void | addMessage (Object entity, String name, String message, Date time, Color color) |
void | updateEntityColor (final Object entity, final Color color) |
void | updateEntityName (final Object entity, final String name) |
void | refresh () |
void | clear () |
void | addChatDisplayListener (final IChatDisplayListener listener) |
void | removeChatDisplayListener (final IChatDisplayListener listener) |
void | notifyChatCleared () |
This control displays a chat conversation between n users
de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.SkypeStyleChatDisplay | ( | Composite | parent, |
int | style, | ||
Color | backgroundColor | ||
) |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.addChatDisplayListener | ( | final IChatDisplayListener | listener | ) |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.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 |
Implements de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.clear | ( | ) |
Clears the current content of this IChatDisplay
.
Implements de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.notifyChatCleared | ( | ) |
Notify all IChatDisplayListeners about a cleared chat
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.refresh | ( | ) |
Layouts the current contents, updates the scroll bar minimum size and scrolls to the bottom.
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.removeChatDisplayListener | ( | final IChatDisplayListener | listener | ) |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.updateEntityColor | ( | final Object | entity, |
final Color | color | ||
) |
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.updateEntityName | ( | final Object | entity, |
final String | name | ||
) |