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

List of all members.

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)

Detailed Description

Interface for adding, removing, and modifying chat content.


Member Function Documentation

void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.addChatDisplayListener ( IChatDisplayListener  listener)

Adds the given listeners to this IChatDisplay.

Parameters:
listenerthe 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.

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

Implemented in de.fu_berlin.inf.dpp.ui.widgets.chat.parts.SkypeStyleChatDisplay.

void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.clear ( )
void de.fu_berlin.inf.dpp.ui.widgets.chat.parts.IChatDisplay.removeChatDisplayListener ( IChatDisplayListener  listener)

Removes the given listeners from this IChatDisplay.

Parameters:
listenerthe 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.

Parameters:
entitythe entity to update
colorthe 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.

Parameters:
entitythe entity to update
namethe new name for the entity
 All Classes Namespaces Files Functions Variables Enumerations