dist.javadoc.dir=${dist.dir}/javadoc
endorsed.classpath=
excludes=
+file.reference.jcontacts-lib.jar=lib/jcontacts-lib.jar
file.reference.jcore-logger-lib.jar=lib/jcore-logger-lib.jar
file.reference.jcore-swing.jar=lib/jcore-swing.jar
file.reference.jcore.jar=lib/jcore.jar
${file.reference.jcore.jar}:\
${file.reference.jcore-swing.jar}:\
${file.reference.jcore-logger-lib.jar}:\
+ ${file.reference.jcontacts-lib.jar}:\
${libs.jpa20-persistence.classpath}
# Space-separated list of extra javac options
javac.compilerargs=-Xlint:deprecation -Xlint:unchecked
${javac.test.classpath}:\
${build.test.classes.dir}
source.encoding=UTF-8
+source.reference.jcontacts-lib.jar=../jcontacts-lib/src/
source.reference.jcore-logger-lib.jar=../jcore-logger-lib/src/
source.reference.jcore-swing.jar=../jcore-swing/src
source.reference.jcore.jar=../jcore/src
package org.mxchange.addressbook.client;
import org.mxchange.addressbook.menu.item.SelectableMenuItem;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.gender.Gender;
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.exceptions.MenuInitializationException;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
-import org.mxchange.jcore.model.contact.Contact;
-import org.mxchange.jcore.model.contact.gender.Gender;
/**
* A special client interface for addressbook applications.
*/
public interface AddressbookClient extends Client {
+ /**
+ * Displays a "box" for the address
+ * <p>
+ * @param contact Contact to show address from
+ */
+ public void displayAddressBox (final Contact contact);
+
+ /**
+ * Displays a "box" for the name
+ * <p>
+ * @param contact Contact to show name from
+ */
+ 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);
+
+ /**
+ * Shows given contact instamce
+ *
+ * @param contact Contact instance
+ */
+ public void show (final Contact contact);
+
/**
* The user changes own address data
* <p>
package org.mxchange.addressbook.exceptions;
import java.text.MessageFormat;
-import org.mxchange.jcore.model.contact.Contact;
+import org.mxchange.jcontacts.contact.Contact;
/**
* Thrown if the given Contact instance is already added
import java.util.List;
import org.mxchange.addressbook.client.AddressbookClient;
import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.gender.Gender;
import org.mxchange.jcore.client.Client;
import org.mxchange.jcore.exceptions.UnhandledUserChoiceException;
import org.mxchange.jcore.manager.BaseManager;
-import org.mxchange.jcore.model.contact.Contact;
-import org.mxchange.jcore.model.contact.gender.Gender;
import org.mxchange.jcoreeelogger.beans.local.logger.Log;
import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal;
// It must be found
assert (contact instanceof Contact) : ": contact is not implementing Contact: " + contact;
- // Display contact
- this.getClient().show(contact);
-
// Get and cast client instance
AddressbookClient client = (AddressbookClient) this.getClient();
+ // Display contact
+ client.show(contact);
+
try {
// Ask user what to change
client.userChooseChangeContactData(contact);
import java.lang.reflect.InvocationTargetException;
import java.sql.SQLException;
import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
+import org.mxchange.jcontacts.contact.Contact;
+import org.mxchange.jcontacts.contact.gender.Gender;
import org.mxchange.jcore.manager.Manageable;
-import org.mxchange.jcore.model.contact.Contact;
-import org.mxchange.jcore.model.contact.gender.Gender;
/**
* An interface for addressbook contact manager