Saros
Distributed Collaborative Editing and Distributed Party Programming
de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay Class Reference
Inheritance diagram for de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay:
de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay

List of all members.

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 ()

Detailed Description

This control displays a chat conversation between n users

Author:
bkahlert

Constructor & Destructor Documentation

de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.SkypeStyleChatDisplay ( Composite  parent,
int  style,
Color  backgroundColor 
)

Member Function Documentation

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.

Parameters:
entitya reference to originator of the message
namethe name of the entity
messagethe message to add
timethe time to display belong the message, e.g the time the message was received
colora 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 
)
 All Classes Namespaces Files Functions Variables Enumerations