Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.gui.main.chat
Class MetaContactChatContact

java.lang.Object
  extended by net.java.sip.communicator.impl.gui.main.chat.ChatContact<MetaContact>
      extended by net.java.sip.communicator.impl.gui.main.chat.MetaContactChatContact

public class MetaContactChatContact
extends ChatContact<MetaContact>

The MetaContactChatContact represents a ChatContact in a user-to-user 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
MetaContactChatContact(MetaContact metaContact)
          Creates an instance of ChatContact by passing to it the corresponding MetaContact and Contact.
 
Method Summary
 byte[] getAvatarBytes()
          Gets the avatar image corresponding to the source contact in the form of an array of bytes.
 String getName()
          Returns the contact name.
 String getUID()
          Gets the implementation-specific identifier which uniquely specifies this contact.
 
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

MetaContactChatContact

public MetaContactChatContact(MetaContact metaContact)
Creates an instance of ChatContact by passing to it the corresponding MetaContact and Contact.

Parameters:
metaContact - the MetaContact encapsulating the given Contact
Method Detail

getAvatarBytes

public byte[] getAvatarBytes()
Description copied from class: ChatContact
Gets the avatar image corresponding to the source contact in the form of an array of bytes.

Specified by:
getAvatarBytes in class ChatContact<MetaContact>
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<MetaContact>
Returns:
the contact name

getUID

public String getUID()
Description copied from class: ChatContact
Gets the implementation-specific identifier which uniquely specifies this contact.

Specified by:
getUID in class ChatContact<MetaContact>
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.