public class UIContactDetailImpl extends UIContactDetail
Constructor and Description |
---|
UIContactDetailImpl(java.lang.String address,
java.lang.String displayName,
javax.swing.ImageIcon statusIcon,
java.lang.Object descriptor)
Creates a UIContactDetailImpl by specifying the contact
address, the displayName and preferredProvider.
|
UIContactDetailImpl(java.lang.String address,
java.lang.String displayName,
java.lang.String category,
java.util.Collection<java.lang.String> labels,
javax.swing.ImageIcon statusIcon,
java.util.Map<java.lang.Class<? extends OperationSet>,ProtocolProviderService> preferredProviders,
java.util.Map<java.lang.Class<? extends OperationSet>,java.lang.String> preferredProtocols,
java.lang.Object descriptor)
Creates a UIContactDetailImpl by specifying the contact
address, the displayName and preferredProvider.
|
Modifier and Type | Method and Description |
---|---|
PresenceStatus |
getPresenceStatus()
Returns the PresenceStatus of this ContactDetail or
null if the detail doesn't support presence.
|
javax.swing.ImageIcon |
getStatusIcon()
Returns the status icon of this contact detail.
|
void |
setStatusIcon(javax.swing.ImageIcon statusIcon)
Sets the given status icon.
|
addPreferredProtocol, addPreferredProtocolProvider, getAddress, getCategory, getDescriptor, getDisplayName, getLabels, getPreferredProtocol, getPreferredProtocolProvider, getPrefix, setPrefix
public UIContactDetailImpl(java.lang.String address, java.lang.String displayName, javax.swing.ImageIcon statusIcon, java.lang.Object descriptor)
address
- the contact addressdisplayName
- the contact display namestatusIcon
- the status icon of this contact detaildescriptor
- the underlying object that this class is wrappingpublic UIContactDetailImpl(java.lang.String address, java.lang.String displayName, java.lang.String category, java.util.Collection<java.lang.String> labels, javax.swing.ImageIcon statusIcon, java.util.Map<java.lang.Class<? extends OperationSet>,ProtocolProviderService> preferredProviders, java.util.Map<java.lang.Class<? extends OperationSet>,java.lang.String> preferredProtocols, java.lang.Object descriptor)
address
- the contact addressdisplayName
- the contact display namecategory
- the category of the underlying contact detaillabels
- the collection of labels associated with this detailstatusIcon
- the status icon of this contact detailpreferredProviders
- the preferred protocol providerspreferredProtocols
- the preferred protocols if no protocol provider
is setdescriptor
- the underlying object that this class is wrappingpublic void setStatusIcon(javax.swing.ImageIcon statusIcon)
statusIcon
- the status icon to setpublic javax.swing.ImageIcon getStatusIcon()
public PresenceStatus getPresenceStatus()
UIContactDetail
getPresenceStatus
in class UIContactDetail
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.