diff options
author | Yana Stamcheva <yana@jitsi.org> | 2006-02-27 17:36:14 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2006-02-27 17:36:14 +0000 |
commit | ef0834ca305342310945ab1f31945c3487e3b31d (patch) | |
tree | 5ed7c69371cc60c908b2451b2aa1d6fb085f434d /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java | |
parent | 4bff3182842d76aa7baeaef350979a9dcbe4eeef (diff) | |
download | jitsi-ef0834ca305342310945ab1f31945c3487e3b31d.zip jitsi-ef0834ca305342310945ab1f31945c3487e3b31d.tar.gz jitsi-ef0834ca305342310945ab1f31945c3487e3b31d.tar.bz2 |
contactlist tree ongoing work: load the tree from a server contactlist, show the status of the contacts,etc.
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 | 13 |
1 files changed, 13 insertions, 0 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 index 0648fb3..fc856e0 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactNode.java @@ -7,8 +7,11 @@ 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; @@ -16,6 +19,8 @@ public class ContactNode extends DefaultMutableTreeNode { private boolean leafExpanded = false; + private Image icon = ImageLoader.getImage(ImageLoader.USER_OFFLINE_ICON); + public ContactNode(){ } @@ -50,5 +55,13 @@ public class ContactNode extends DefaultMutableTreeNode { public void setLeafExpanded(boolean leafExpanded) { this.leafExpanded = leafExpanded; } + + public Image getIcon() { + return icon; + } + + public void setIcon(Image icon) { + this.icon = icon; + } } |