Thanks to Guus der Kinderen for this patch:

[SPARK-1025] Make rename global and not limited to just the contact list

git-svn-id: http://svn.igniterealtime.org/svn/repos/spark/trunk@10687 b35dd754-fafc-0310-a699-88a17e54d16e
This commit is contained in:
Andrew Seymour
2008-07-17 18:40:44 +00:00
committed by andrew.seymour
parent bd984dc5a0
commit ae0eacf8ff
20 changed files with 972 additions and 894 deletions

View File

@ -75,7 +75,7 @@ public class JContactItemField extends JPanel {
int index = list.getSelectedIndex();
if (index >= 0) {
ContactItem selection = (ContactItem)list.getSelectedValue();
textField.setText(selection.getNickname());
textField.setText(selection.getDisplayName());
popup.setVisible(false);
}
}
@ -119,7 +119,7 @@ public class JContactItemField extends JPanel {
int index = list.getSelectedIndex();
if (index >= 0) {
ContactItem selection = (ContactItem)list.getSelectedValue();
textField.setText(selection.getNickname());
textField.setText(selection.getDisplayName());
popup.setVisible(false);
}
}
@ -146,7 +146,7 @@ public class JContactItemField extends JPanel {
final List<ContactItem> validItems = new ArrayList<ContactItem>();
for (ContactItem contactItem : items) {
String nickname = contactItem.getNickname().toLowerCase();
String nickname = contactItem.getDisplayName().toLowerCase();
if (nickname.startsWith(typedItem.toLowerCase())) {
validItems.add(contactItem);
}
@ -275,7 +275,7 @@ public class JContactItemField extends JPanel {
ContactItem contactItem = (ContactItem)value;
setText(contactItem.getNickname());
setText(contactItem.getDisplayName());
if (contactItem.getIcon() == null) {
setIcon(SparkRes.getImageIcon(SparkRes.CLEAR_BALL_ICON));
}