diff options
author | Yana Stamcheva <yana@jitsi.org> | 2006-11-27 15:56:55 +0000 |
---|---|---|
committer | Yana Stamcheva <yana@jitsi.org> | 2006-11-27 15:56:55 +0000 |
commit | 00aa3bfcdd6ba399696e0e65f91d90b2c37cd97f (patch) | |
tree | 56295223479dbf9e9e071ad662b6cdc718ca5ca4 /src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | |
parent | 370cbdd1d9f445c5204f1400c4e404cb3b850a64 (diff) | |
download | jitsi-00aa3bfcdd6ba399696e0e65f91d90b2c37cd97f.zip jitsi-00aa3bfcdd6ba399696e0e65f91d90b2c37cd97f.tar.gz jitsi-00aa3bfcdd6ba399696e0e65f91d90b2c37cd97f.tar.bz2 |
indicate if a group is closed/opened
Diffstat (limited to 'src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java')
-rw-r--r-- | src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java index c07b466..2b2f542 100644 --- a/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java +++ b/src/net/java/sip/communicator/impl/gui/main/contactlist/ContactListCellRenderer.java @@ -183,7 +183,15 @@ public class ContactListCellRenderer extends JPanel // make getComponentAt work properly. this.setBounds(0, 0, list.getWidth() - 2, 20); - this.remove(buttonsPanel); + //this.remove(buttonsPanel); + this.buttonsPanel.removeAll(); + + if(((ContactListModel)list.getModel()).isGroupClosed(groupItem)) + this.buttonsPanel.add(new JLabel(new ImageIcon(ImageLoader + .getImage(ImageLoader.CLOSED_GROUP)))); + else + this.buttonsPanel.add(new JLabel(new ImageIcon(ImageLoader + .getImage(ImageLoader.OPENED_GROUP)))); this.isLeaf = false; } |