*/
package org.mxchange.jcore.client;
+import java.io.IOException;
+import java.sql.SQLException;
import org.mxchange.jcore.FrameworkInterface;
+import org.mxchange.jcore.model.contact.Contact;
/**
* An interface for application clients
- *
- * @author Roland Haeder
+ * <p>
+ * @author Roland Haeder<roland@mxchange.org>
*/
public interface Client extends FrameworkInterface {
/**
- * Shuts down the client and therefore whole application
+ * Displays a "box" for the address
+ * <p>
+ * @param contact Contact to show address from
*/
- public void doShutdown ();
+ public void displayAddressBox (final Contact contact);
/**
- * Displays a message to the user
- *
- * @param message Message to show to the user
+ * Displays a "box" for the name
+ * <p>
+ * @param contact Contact to show name from
*/
- public void outputMessage (final String message);
+ public void displayNameBox (final Contact contact);
+
+ /**
+ * Displays a "box" for other data
+ * <p>
+ * @param contact Contact to show other data from
+ */
+ public void displayOtherDataBox (final Contact contact);
+
+ /**
+ * Shuts down the client and therefore whole application
+ * <p>
+ * @throws java.io.IOException If an IO error occurs
+ * @throws java.sql.SQLException If a SQL error occurs
+ */
+ public void doShutdown () throws IOException, SQLException;
/**
* Enables isRunning attribute which singals that the client is running
*/
public void enableIsRunning ();
+ /**
+ * Inizializes this client
+ */
+ public void init ();
+
/**
* Determines whether the client is still active by checking some conditions
- *
+ * <p>
* @return Whether the client is still active
*/
public boolean isRunning ();
/**
- * Shows introduction to user
+ * Displays a message to the user
+ * <p>
+ * @param message Message to show to the user
*/
- public void showWelcome ();
+ public void outputMessage (final String message);
/**
- * Inizializes this client
+ * Shows given contact instamce
+ *
+ * @param contact Contact instance
*/
- public void init ();
+ public void show (final Contact contact);
+
+ /**
+ * Shows introduction to user
+ */
+ public void showWelcome ();
}