diff options
author | Yana Stamcheva <yana@jitsi.org> | 2012-08-30 10:56:36 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2012-08-30 10:56:36 +0000 |
commit | 9931f4b8004a35f3d5cdfc2b408723d9201f340a (patch) | |
tree | 7de598ad7b54f51fef39a7de5fdaf1e672da4834 /src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java | |
parent | 325cea15eb5769a79aba5003442e1b1f957fa604 (diff) | |
download | jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.zip jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.tar.gz jitsi-9931f4b8004a35f3d5cdfc2b408723d9201f340a.tar.bz2 |
Making the contact list component available from outside the gui bundle.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java | 83 |
1 files changed, 83 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java new file mode 100644 index 0000000..71b3634 --- /dev/null +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/UIContactDetailImpl.java @@ -0,0 +1,83 @@ +/* + * Jitsi, the OpenSource Java VoIP and Instant Messaging client. + * + * Distributable under LGPL license. + * See terms of license at gnu.org. + */ +package net.java.sip.communicator.impl.gui.main.contactlist; + +import java.util.*; + +import javax.swing.*; + +import net.java.sip.communicator.service.gui.*; +import net.java.sip.communicator.service.protocol.*; + +/** + * The <tt>UIContactDetail</tt> implementation + * + * @author Yana Stamcheva + */ +public class UIContactDetailImpl + extends UIContactDetail +{ + /** + * The status icon of this contact detail. + */ + private ImageIcon statusIcon; + + /** + * Creates a <tt>UIContactDetailImpl</tt> by specifying the contact + * <tt>address</tt>, the <tt>displayName</tt> and <tt>preferredProvider</tt>. + * @param address the contact address + * @param displayName the contact display name + * @param category the category of the underlying contact detail + * @param labels the collection of labels associated with this detail + * @param statusIcon the status icon of this contact detail + * @param preferredProvider the preferred protocol provider + * @param preferredProtocol the preferred protocol if no protocol provider + * is set + * @param descriptor the underlying object that this class is wrapping + */ + public UIContactDetailImpl( + String address, + String displayName, + String category, + Collection<String> labels, + ImageIcon statusIcon, + ProtocolProviderService preferredProvider, + String preferredProtocol, + Object descriptor) + { + super(address, displayName, category, labels, preferredProvider, + preferredProtocol, descriptor); + + setStatusIcon(statusIcon); + } + + /** + * Sets the given status icon. + * + * @param statusIcon the status icon to set + */ + public void setStatusIcon(ImageIcon statusIcon) + { + this.statusIcon = statusIcon; + } + + /** + * Returns the status icon of this contact detail. + * + * @return the status icon of this contact detail + */ + public ImageIcon getStatusIcon() + { + return statusIcon; + } + + @Override + public PresenceStatus getPresenceStatus() + { + return null; + } +} |