|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectnet.java.sip.communicator.impl.gui.main.chat.ChatContact<T>
T - the type of the descriptorpublic abstract class ChatContact<T>
The ChatContact is a wrapping class for the Contact and ChatRoomMember interface.
| Field Summary | |
|---|---|
static int |
AVATAR_ICON_HEIGHT
The height of the avatar icon. |
static int |
AVATAR_ICON_WIDTH
The width of the avatar icon. |
protected T |
descriptor
The descriptor being adapted by this instance. |
| Constructor Summary | |
|---|---|
protected |
ChatContact(T descriptor)
Initializes a new ChatContact instance with a specific descriptor. |
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
Determines whether a specific Object represents the same value as this ChatContact. |
ImageIcon |
getAvatar()
Returns the avatar image corresponding to the source contact. |
protected abstract byte[] |
getAvatarBytes()
Gets the avatar image corresponding to the source contact in the form of an array of bytes. |
T |
getDescriptor()
Returns the descriptor object corresponding to this chat contact. |
abstract String |
getName()
Returns the contact name. |
abstract String |
getUID()
Gets the implementation-specific identifier which uniquely specifies this contact. |
int |
hashCode()
Gets a hash code value for this object for the benefit of hashtables. |
boolean |
isSelected()
Returns true if this is the currently selected contact in
the list of contacts for the chat, otherwise returns false. |
void |
setSelected(boolean selected)
Sets this isSelected property of this chat contact. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int AVATAR_ICON_HEIGHT
public static final int AVATAR_ICON_WIDTH
protected final T descriptor
| Constructor Detail |
|---|
protected ChatContact(T descriptor)
descriptor - the descriptor to be adapted by the new instance| Method Detail |
|---|
public boolean equals(Object obj)
equals in class Objectobj - the Object to be checked for value equality with this
ChatContact
public ImageIcon getAvatar()
protected abstract byte[] getAvatarBytes()
public T getDescriptor()
public abstract String getName()
public abstract String getUID()
public int hashCode()
hashCode in class Objectpublic boolean isSelected()
true if this is the currently selected contact in
the list of contacts for the chat, otherwise returns false.
true if this is the currently selected contact in
the list of contacts for the chat, otherwise returns false.public void setSelected(boolean selected)
selected - true to indicate that this contact would be
the selected contact in the list of chat window contacts; otherwise,
false
|
Jitsi: the OpenSource Java VoIP and Instant Messaging client. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||