import org.mxchange.addressbook.menu.item.SelectableMenuItem;\r
\r
/**\r
- *\r
+ * An interface for application clients\r
+ * \r
* @author Roland Haeder\r
*/\r
public interface Client extends FrameworkInterface {\r
*/\r
public void displayAddressBox (final Contact contact);\r
\r
+ /**\r
+ * The user changes own name data\r
+ * @param contact \r
+ */\r
+ public void doChangeOwnNameData (final Contact contact);\r
+\r
+ /**\r
+ * The user changes own address data\r
+ *\r
+ * @param contact Contact instance to change\r
+ */\r
+ public void doChangeOwnAddressData (final Contact contact);\r
+\r
+ /**\r
+ * The user changes own other data\r
+ * \r
+ * @param contact Constact instance to change\r
+ */\r
+ public void doChangeOwnOtherData (final Contact contact);\r
+\r
+ /**\r
+ * Allows the user to enter own data\r
+ * \r
+ * @return Finished Contact instance\r
+ */\r
+ public Contact doEnterOwnData ();\r
+\r
+ /**\r
+ * Shuts down the client and therefore whole application\r
+ */\r
+ public void doShutdown ();\r
+\r
/**\r
* Displays a message to the user\r
*\r
/**\r
* Enables isRunning attribute which singals that the client is running\r
*/\r
- public void enableIsRunning ();\r
+ public void enableIsRunning();\r
\r
/**\r
* Asks the the user to enter a single character which must match validChars\r
public SelectableMenuItem getMenuItem (final char accessKey, final String text);\r
\r
/**\r
- * Determines whether the application is still active by checking some\r
+ * Determines whether the client is still active by checking some\r
* conditions\r
* \r
- * @return Whether the application is still active\r
+ * @return Whether the client is still active\r
*/\r
- public boolean isApplicationRunning ();\r
+ public boolean isRunning();\r
\r
/**\r
* Shows given menu entry in client\r
+ * \r
* @param item Menu item to show\r
*/\r
public void showEntry (final SelectableMenuItem item);\r
/**\r
* Shows introduction to user\r
*/\r
- public void showWelcome ();\r
+ public void showWelcome();\r
\r
/**\r
* Shows current menu selection to the user\r
*/\r
- public void showCurrentMenu ();\r
+ public void showCurrentMenu();\r
+\r
+ /**\r
+ * Inizializes this client\r
+ */\r
+ public void initClient ();\r
}\r