diff options
author | Yana Stamcheva <yana@jitsi.org> | 2010-09-27 16:02:12 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2010-09-27 16:02:12 +0000 |
commit | a4ddb0361ebc3848e30eefbf0391c755adb3387c (patch) | |
tree | bce7c351a63766840af4534e9bc5ecbd0c8ac429 /src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java | |
parent | 8f7582b1785d9c40ecb306a6d4ed0a6cafc66be4 (diff) | |
download | jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.zip jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.tar.gz jitsi-a4ddb0361ebc3848e30eefbf0391c755adb3387c.tar.bz2 |
Patch provided by Adam Netocny making all contact list classes skinnable.
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java index 8f968e8..80a619b 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/DefaultContactList.java @@ -18,15 +18,18 @@ import net.java.sip.communicator.impl.gui.main.chat.conference.*; import net.java.sip.communicator.impl.gui.utils.*; import net.java.sip.communicator.service.contactlist.*; import net.java.sip.communicator.service.protocol.*; +import net.java.sip.communicator.util.skin.*; /** * DeafultContactlist used to display <code>JList</code>s with contacts. * * @author Damian Minkov * @author Yana Stamcheva + * @author Adam Netocny */ public class DefaultContactList extends JList + implements Skinnable { private static final long serialVersionUID = 0L; @@ -36,6 +39,11 @@ public class DefaultContactList private MouseEvent cachedMouseEvent; /** + * List cell renderer. + */ + ContactListCellRenderer renderer = new ContactListCellRenderer(); + + /** * Creates an instance of <tt>DefaultContactList</tt>. */ public DefaultContactList() @@ -47,7 +55,7 @@ public class DefaultContactList this.setDragEnabled(true); // this.setTransferHandler(new ContactListTransferHandler(this)); - this.setCellRenderer(new ContactListCellRenderer()); + this.setCellRenderer(renderer); } /** @@ -345,4 +353,12 @@ public class DefaultContactList cachedMouseEvent= event; super.processMouseEvent(event); } + + /** + * Reloads skin information stored in render class. + */ + public void loadSkin() + { + renderer.loadSkin(); + } } |