+ /**\r
+ * Let the user change address data\r
+ * \r
+ * @param contact Instance to change data\r
+ * @param client Client instance to call back\r
+ */\r
+ @Override\r
+ public void doChangeAddressData (final Contact contact, final Client client) {\r
+ // First display it again\r
+ client.displayAddressBox(contact);\r
+\r
+ // Is it own data?\r
+ if (contact.isOwnContact()) {\r
+ // Own address data\r
+ String street = this.enterOwnStreet();\r
+\r
+ // Get zip code\r
+ int zipCode = this.enterOwnZipCode();\r
+\r
+ // Get city name\r
+ String city = this.enterOwnCity();\r
+\r
+ // Get country code\r
+ String countryCode = this.enterOwnCountryCode();\r
+\r
+ // Update address data\r
+ contact.updateAddressData(street, zipCode, city, countryCode);\r
+ } else {\r
+ // Other contact's address data to change\r
+ throw new UnsupportedOperationException("Changing contact entries not finished.");\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Let the user change "name data"\r
+ * \r
+ * @param contact Instance to change data\r
+ * @param client Client instance to call back\r
+ */\r
+ @Override\r
+ public void doChangeNameData (final Contact contact, final Client client) {\r
+ // First display them again\r
+ client.displayNameBox(contact);\r
+\r
+ // Is this own data?\r
+ if (contact.isOwnContact()) {\r
+ // Re-ask own data\r
+ // Gender:\r
+ char gender = this.enterOwnGender();\r
+\r
+ // Surname\r
+ String surname = this.enterOwnSurname();\r
+\r
+ // Family name\r
+ String familyName = this.enterOwnFamilyName();\r
+\r
+ // And company\r
+ String companyName = this.enterCompanyName();\r
+\r
+ // Update contact instance\r
+ contact.updateNameData(gender, surname, familyName, companyName);\r
+ } else {\r
+ // Then re-ask them ...\r
+ throw new UnsupportedOperationException("Changing contact entries not finished.");\r
+ }\r
+ }\r
+\r
+ /**\r
+ * Let the user change other data\r
+ *\r
+ * @param contact Instance to change data\r
+ * @param client Client instance to call back\r
+ */\r
+ @Override\r
+ public void doChangeOtherData (final Contact contact, final Client client) {\r
+ throw new UnsupportedOperationException("Not supported yet.");\r
+ }\r
+\r