diff options
author | Yana Stamcheva <yana@jitsi.org> | 2006-03-14 13:16:03 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2006-03-14 13:16:03 +0000 |
commit | d3d2998127f6aee3d9d066e162c80df972cad469 (patch) | |
tree | 410b13d14b802cea83077c9352c0e854bc978445 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java | |
parent | 319358105db45910b4621533d72ba8eb62f2cec3 (diff) | |
download | jitsi-d3d2998127f6aee3d9d066e162c80df972cad469.zip jitsi-d3d2998127f6aee3d9d066e162c80df972cad469.tar.gz jitsi-d3d2998127f6aee3d9d066e162c80df972cad469.tar.bz2 |
Detect the status of a MetaContact using protocol contact statuses.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java | 67 |
1 files changed, 0 insertions, 67 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java deleted file mode 100644 index fc856e0..0000000 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java +++ /dev/null @@ -1,67 +0,0 @@ -/* - * SIP Communicator, 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.awt.Image; - -import javax.swing.tree.DefaultMutableTreeNode; - -import net.java.sip.communicator.impl.gui.main.utils.ImageLoader; -import net.java.sip.communicator.service.contactlist.MetaContact; -import net.java.sip.communicator.service.contactlist.MetaContactGroup; - -public class ContactNode extends DefaultMutableTreeNode { - - private boolean leafExpanded = false; - - private Image icon = ImageLoader.getImage(ImageLoader.USER_OFFLINE_ICON); - - public ContactNode(){ - - } - - public ContactNode(Object userObject){ - super(userObject); - } - - public String toString() { - - String result = ""; - - if (userObject == null) { - - return null; - - } else { - - if (userObject instanceof MetaContact) - result = ((MetaContact)userObject).getDisplayName(); - else if (userObject instanceof MetaContactGroup) - result = ((MetaContactGroup)userObject).getGroupName(); - } - - return result; - } - - public boolean isLeafExpanded() { - return leafExpanded; - } - - public void setLeafExpanded(boolean leafExpanded) { - this.leafExpanded = leafExpanded; - } - - public Image getIcon() { - return icon; - } - - public void setIcon(Image icon) { - this.icon = icon; - } - -} |