+ /**\r
+ * Displays a textual name "box" of given contact\r
+ *\r
+ * @param contact Contact to show name for\r
+ */\r
+ @Override\r
+ public void displayNameBox (final Contact contact) {\r
+ // Get translated gender as the user may want to see "Mr.", "Mrs."\r
+ String gender = contact.getTranslatedGender();\r
+\r
+ // Get company name\r
+ String companyName = contact.getCompanyName();\r
+\r
+ // If it is empty/null, then assume private contact\r
+ if ((companyName == null) || (companyName.isEmpty())) {\r
+ // Now put all together: gender, surname, family name\r
+ // @todo Use mask\r
+ this.outputMessage("Anrede, Vorname, Name: " + gender + " " + contact.getSurname() + " " + contact.getFamilyName());\r
+ } else {\r
+ // Company contact\r
+ this.outputMessage("Firma: " + companyName + "\nAnsprechpartner: " + gender + " " + contact.getSurname() + " " + contact.getFamilyName());\r
+ }\r