*/\r
package org.mxchange.addressbook.client;\r
\r
+import org.mxchange.addressbook.UnhandledUserChoiceException;\r
import org.mxchange.addressbook.FrameworkInterface;\r
+import org.mxchange.addressbook.contact.Contact;\r
import org.mxchange.addressbook.menu.item.SelectableMenuItem;\r
\r
/**\r
*/\r
public interface Client extends FrameworkInterface {\r
\r
+ /**\r
+ * Displays a "box" for the address\r
+ *\r
+ * @param contact Contact to show address from\r
+ */\r
+ public void displayAddressBox (final Contact contact);\r
+\r
/**\r
* Displays a message to the user\r
+ *\r
* @param message Message to show to the user\r
*/\r
public void displayMessage (final String message);\r
\r
+ /**\r
+ * Displays a "box" for the name\r
+ *\r
+ * @param contact Contact to show name from\r
+ */\r
+ public void displayNameBox (final Contact contact);\r
+\r
+ /**\r
+ * Displays a "box" for other data\r
+ *\r
+ * @param contact Contact to show other data from\r
+ */\r
+ public void displayOtherDataBox (final Contact contact);\r
+\r
+ /**\r
+ * Let the user choose what to change on the address: [n]ame, [a]ddress,\r
+ * [o]ther\r
+ * @param contact Contact instance to let the user change data\r
+ * @throws UnhandledUserChoiceException If choice is not supported\r
+ */\r
+ public void doUserChangeAdressChoice (final Contact contact) throws UnhandledUserChoiceException;\r
+\r
/**\r
* Asks the user for a choice and proceeds accordingly\r
- * @throws java.lang.Exception\r
+ * @throws UnhandledUserChoiceException If choice is not supported\r
*/\r
- public void doUserChoice () throws Exception ;\r
+ public void doUserMenuChoice () throws UnhandledUserChoiceException ;\r
\r
/**\r
* Enables isRunning attribute which singals that the client is running\r
* @param minLength Minimum length of the string to read\r
* @param maxLength Maximum length of the string to read\r
* @param message Message to user\r
- * @return \r
+ * @param allowEmpty Whether empty strings are allowed\r
+ * @return Entered string by user or null if empty string is allowed\r
*/\r
- public String enterString (final int minLength, final int maxLength, final String message);\r
+ public String enterString (final int minLength, final int maxLength, final String message, final boolean allowEmpty);\r
\r
/**\r
* Setter for current menu choice\r