]> git.mxchange.org Git - jfinancials-lib.git/commitdiff
More cleanups
authorRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:21:27 +0000 (19:21 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 4 Sep 2015 17:24:03 +0000 (19:24 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

src/org/mxchange/addressbook/client/BaseAddressbookClient.java
src/org/mxchange/addressbook/manager/contact/ManageableAddressbookContact.java

index 3c5a8f614439851b37245c43d80b52502555a498..35cbab9941f354bd10e2773b7c6fd6a416869b7f 100644 (file)
@@ -21,17 +21,17 @@ import java.text.MessageFormat;
 import java.util.HashMap;
 import java.util.Map;
 import org.mxchange.addressbook.manager.contact.AddressbookContactManager;
+import org.mxchange.addressbook.manager.contact.ManageableAddressbookContact;
 import org.mxchange.addressbook.menu.Menu;
 import org.mxchange.jcore.client.BaseClient;
 import org.mxchange.jcore.client.Client;
-import org.mxchange.jcore.manager.database.ManageableDatabase;
 
 /**
  * A general addressbook client
  *
  * @author Roland Haeder
  */
-public abstract class BaseAddressbookClient extends BaseClient {
+public abstract class BaseAddressbookClient extends BaseClient implements AddressbookClient {
 
        /**
         * Current menu choice
@@ -60,11 +60,7 @@ public abstract class BaseAddressbookClient extends BaseClient {
                return this.currentMenu;
        }
 
-       /**
-        * Current menu choice
-        *
-        * @param currentMenu the currentMenu to set
-        */
+       @Override
        public final void setCurrentMenu (final String currentMenu) {
                this.currentMenu = currentMenu;
        }
@@ -105,25 +101,26 @@ public abstract class BaseAddressbookClient extends BaseClient {
 
        /**
         * Initializes contact manager
+        *
         * @throws java.sql.SQLException If any SQL error occurs
         */
        protected void initContactManager () throws SQLException {
                // Trace message
                this.getLogger().trace("CALLED!"); //NOI18N
-               
+
                // Debug message
                this.getLogger().debug("Initializing contact manager ..."); //NOI18N
-               
+
                // Init contact manager with console client
                // TODO Static initial amount of contacts
-               ManageableDatabase manager = new AddressbookContactManager((Client) this);
-               
+               ManageableAddressbookContact manager = new AddressbookContactManager((Client) this);
+
                // Set it here
                this.setContactManager(manager);
-               
+
                // Debug message
                this.getLogger().debug("Contact manager has been initialized."); //NOI18N
-               
+
                // Trace message
                this.getLogger().trace("EXIT!"); //NOI18N
        }
index dccb8af7fc243d388e21902b58f3e3089fd56e03..08474017c598e2dbcfb8a88ddbbbda52d32921ba 100644 (file)
@@ -22,13 +22,13 @@ import java.sql.SQLException;
 import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
 import org.mxchange.jcore.contact.Contact;
 import org.mxchange.jcore.contact.gender.Gender;
-import org.mxchange.jcore.manager.database.ManageableDatabase;
+import org.mxchange.jcore.manager.Manageable;
 
 /**
  *
  * @author Roland Haeder
  */
-public interface ManageableAddressbookContact extends ManageableDatabase {
+public interface ManageableAddressbookContact extends Manageable {
        /**
         * Allows the user to enter own cellphone number.
         *