Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chat.conference
Class ConferenceChatContact

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chat.ChatContact<ChatRoomMember>
      extended by net.java.sip.communicator.impl.gui.main.chat.conference.ConferenceChatContact

public class ConferenceChatContact
extends ChatContact<ChatRoomMember>

The ConferenceChatContact represents a ChatContact in a conference chat.

Author:
Yana Stamcheva, Lubomir Marinov

Field Summary
 
Fields inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatContact
AVATAR_ICON_HEIGHT, AVATAR_ICON_WIDTH, descriptor
 
Constructor Summary
ConferenceChatContact(ChatRoomMember chatRoomMember)
          Creates an instance of ChatContact by passing to it the ChatRoomMember for which it is created.
 
Method Summary
 byte[] getAvatarBytes()
          Implements ChatContact#getAvatarBytes().
 String getName()
          Returns the contact name.
 ChatRoomMemberRole getRole()
           
 String getUID()
          Implements ChatContact#getUID().
 
Methods inherited from class net.java.sip.communicator.impl.gui.main.chat.ChatContact
equals, getAvatar, getDescriptor, hashCode, isSelected, setSelected
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConferenceChatContact

public ConferenceChatContact(ChatRoomMember chatRoomMember)
Creates an instance of ChatContact by passing to it the ChatRoomMember for which it is created.

Parameters:
chatRoomMember - the ChatRoomMember for which this ChatContact is created.
Method Detail

getAvatarBytes

public byte[] getAvatarBytes()
Implements ChatContact#getAvatarBytes(). Delegates to chatRoomMember.

Specified by:
getAvatarBytes in class ChatContact<ChatRoomMember>
Returns:
an array of bytes which represents the avatar image corresponding to the source contact

getName

public String getName()
Returns the contact name.

Specified by:
getName in class ChatContact<ChatRoomMember>
Returns:
the contact name

getRole

public ChatRoomMemberRole getRole()

getUID

public String getUID()
Implements ChatContact#getUID(). Delegates to ChatRoomMember#getContactAddress() because it's supposed to be unique.

Specified by:
getUID in class ChatContact<ChatRoomMember>
Returns:
an identifier which uniquely specifies this contact

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.