com.compoze.collab.im
Interface IInstantMessage
- All Superinterfaces:
- IItem, IMessage, IMessagingItem, java.io.Serializable
- public interface IInstantMessage
- extends IMessage
Provides the interface to the instant message item.
- See Also:
IContainer.add()
| Methods inherited from interface com.compoze.collab.IItem |
commit, containsKey, containsKey, copyProperties, copyTo, delete, fetchProperties, getAttribute, getEnum, getID, getInputStream, getItemClass, getOutputStream, getParent, getParent, getParentID, getProperties, getProperties, getProperties, getProperty, getProperty, getProperty, getReader, getRootContainer, getSession, getWriter, isMissing, moveTo, removeAttribute, removeProperty, setAttribute, setProperties, setProperty, setProperty, setProperty |
KEYID_FROM
public static final int KEYID_FROM
- The
int ID for the FROM key.
FROM
public static final Key FROM
- The key for the
from field.
CLASS
public static final ItemClass CLASS
- The
ItemClass for IInstantMessage.
getFrom
public java.lang.String getFrom()
throws CollaborationException
- Gets the username of the user that sent the message.
- Returns:
- the from user (not
null
setTypingStatus
public void setTypingStatus(boolean bTyping)
throws CollaborationException
- Indicates to any recipients that the user is typing a message. Because this
method requires knowledge of the recipients, the
IMessage.addRecipient(String)
method must have been called before calling this method.
- Parameters:
bTyping - if true, the user is type, if
false then the user is not typing- Throws:
CollaborationException - (if the typing notification could not
be sent)- See Also:
(String, boolean)
addRecipient
public void addRecipient(IFriend friend)
throws CollaborationException
- Acts the same way as the
IMessage.addRecipient(String),
but excepts an IFriend reference, which allows for more abstract
handling of message sending. Client code need not be concerned with semantics of how each provider
refers to friends.
- Parameters:
friend - friend to send the message to (not null)- Throws:
CollaborationException - thrown if failed to send the message
Copyright ©1999-2003 Compoze Software, Inc. All rights reserved.