+ infoPanel.removeAllComponents();
+
+ String name = contact.getPreferredDataValue("FN");
+ if (name == null || name.length() == 0) {
+ // TODO format it ourself
+ name = contact.getPreferredDataValue("N");
+ }
+
+ // TODO: i18n + do it properly
+ infoPanel.addComponent(UiColors.Element.VIEW_CONTACT_NAME
+ .createLabel(name));
+
+ infoPanel.addComponent(UiColors.Element.VIEW_CONTACT_NORMAL
+ .createLabel(""));
+ infoPanel.addComponent(UiColors.Element.VIEW_CONTACT_NORMAL
+ .createLabel("Phone: "
+ + contact.getPreferredDataValue("TEL")));
+ infoPanel.addComponent(UiColors.Element.VIEW_CONTACT_NORMAL
+ .createLabel("eMail: "
+ + contact.getPreferredDataValue("EMAIL")));
+ infoPanel.addComponent(UiColors.Element.VIEW_CONTACT_NORMAL
+ .createLabel(""));
+
+ String notes = contact.getPreferredDataValue("NOTE");
+ if (notes == null)
+ notes = "";
+ note.setText(notes.replaceAll("\\\\n", "\n"));
+