org.eclipse.ecf.presence.im
Class ChatMessageEvent
java.lang.Object
org.eclipse.ecf.presence.im.ChatMessageEvent
- All Implemented Interfaces:
- Event, IIMMessageEvent, IChatMessageEvent
- Direct Known Subclasses:
- XHTMLChatMessageEvent
public class ChatMessageEvent
- extends java.lang.Object
- implements IChatMessageEvent
Chat message event class
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
fromID
protected ID fromID
message
protected IChatMessage message
chat
protected IChat chat
ChatMessageEvent
public ChatMessageEvent(ID fromID,
IChatMessage message,
IChat chat)
ChatMessageEvent
public ChatMessageEvent(ID fromID,
IChatMessage message)
getFromID
public ID getFromID()
- Description copied from interface:
IIMMessageEvent
- Get the ID of the sender of the chat message.
- Specified by:
getFromID
in interface IIMMessageEvent
- Returns:
- ID of the sender of the message. Will not be
null
.
getChatMessage
public IChatMessage getChatMessage()
- Description copied from interface:
IChatMessageEvent
- Get chat message sent.
- Specified by:
getChatMessage
in interface IChatMessageEvent
- Returns:
- IChatMessage sent to this receiver. Will not be
null
.
getChat
public IChat getChat()
- Description copied from interface:
IChatMessageEvent
- Get chat associated with this chat message event.
- Specified by:
getChat
in interface IChatMessageEvent
- Returns:
- IChat associated with this chat message event. May be
null
if
provider does not support having an IChat.
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object