]> git.mxchange.org Git - addressbook-swing.git/commitdiff
Renaming season: renamed manager -> facade
authorRoland Haeder <roland@mxchange.org>
Fri, 2 Oct 2015 07:49:52 +0000 (09:49 +0200)
committerRoland Haeder <roland@mxchange.org>
Fri, 2 Oct 2015 07:49:52 +0000 (09:49 +0200)
Signed-off-by:Roland Häder <roland@mxchange.org>

lib/jcore.jar
src/org/mxchange/addressbook/client/console/ConsoleClient.java
src/org/mxchange/addressbook/client/gui/AddressbookFrame.java

index 197b9734f769ec7838a7632dec07f052ddc5990f..b78e9d086424604cf9e0a6e47676bc9eab13f12d 100644 (file)
Binary files a/lib/jcore.jar and b/lib/jcore.jar differ
index e040f7a790ace6d1d5d7b298e4714b7b25662944..b2da2d68011be26c79d1b88a532f63672f2dcfe7 100644 (file)
@@ -26,7 +26,7 @@ import org.mxchange.addressbook.application.AddressbookApplication;
 import org.mxchange.addressbook.client.AddressbookClient;
 import org.mxchange.addressbook.client.BaseAddressbookClient;
 import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
-import org.mxchange.addressbook.manager.contact.ManageableContactAddressbook;
+import org.mxchange.addressbook.facade.contact.ContactFacade;
 import org.mxchange.addressbook.menu.Menu;
 import org.mxchange.addressbook.menu.MenuTools;
 import org.mxchange.addressbook.menu.console.ConsoleMenu;
@@ -156,7 +156,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                }
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // Own street and number
                String streetNumber = manager.enterOwnStreet();
@@ -198,7 +198,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                }
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // Gender:
                Gender gender = manager.enterOwnGender();
@@ -240,7 +240,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                }
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // Phone number
                String phoneNumber = manager.enterOwnPhoneNumber();
@@ -274,7 +274,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                this.getLogger().logTrace("CALLED!"); //NOI18N
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // First ask for gender
                Gender gender = manager.enterOwnGender();
@@ -323,7 +323,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                char choice = this.enterChar(accessKeys, "Bitte Auswahl eingeben (0=Programm beenden): ");
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // Try it!
                try {
@@ -572,7 +572,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC
                char choice = this.enterChar(new char[] {'n', 'a', 'o', 'x'}, "Welchen Daten möchten Sie ändern? (n=Namensdaten, a=Anschriftsdaten, o=Andere, x=Zurück zur Hauptauswahl) ");
 
                // Get manager and cast it
-               ManageableContactAddressbook manager = (ManageableContactAddressbook) this.getManager();
+               ContactFacade manager = (ContactFacade) this.getManager();
 
                // TODO Get rid of this ugly switch block, too
                switch (choice) {
index 5b4e8429a516b31eb5e9b2c3906acd5777d1e428..b4797265be878bc610ae15850372080e730c6042 100644 (file)
@@ -50,7 +50,7 @@ import javax.swing.table.TableModel;
 import org.mxchange.addressbook.BaseAddressbookSystem;
 import org.mxchange.addressbook.application.AddressbookApplication;
 import org.mxchange.addressbook.exceptions.ContactAlreadyAddedException;
-import org.mxchange.addressbook.manager.contact.ManageableContactAddressbook;
+import org.mxchange.addressbook.facade.contact.ContactFacade;
 import org.mxchange.jcontacts.contact.Contact;
 import org.mxchange.jcontacts.contact.gender.Gender;
 import org.mxchange.jcore.application.Application;
@@ -237,7 +237,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra
                this.getLogger().logTrace(MessageFormat.format("client={0}: CALLED!", client)); //NOI18N
 
                // Has the user entered own data?
-               if (((ManageableContactAddressbook) this.getClient().getManager()).isOwnContactAdded()) {
+               if (((ContactFacade) this.getClient().getManager()).isOwnContactAdded()) {
                        // Debug message
                        this.getLogger().logDebug("Disabling menus: isOwnContactAdded()=false"); //NOI18N
 
@@ -702,7 +702,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra
                        @Override
                        public void actionPerformed (final ActionEvent e) {
                                try {
-                                       ((ManageableContactAddressbook) self.getClient().getManager()).doEnterOwnData();
+                                       ((ContactFacade) self.getClient().getManager()).doEnterOwnData();
                                } catch (final ContactAlreadyAddedException ex) {
                                        // Already added, log away
                                        // TODO maybe output message here?
@@ -730,7 +730,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra
                        @Override
                        public void actionPerformed (final ActionEvent e) {
                                try {
-                                       ((ManageableContactAddressbook) self.getClient().getManager()).doChangeOwnData();
+                                       ((ContactFacade) self.getClient().getManager()).doChangeOwnData();
                                } catch (final IOException | SQLException | NoSuchMethodException | IllegalAccessException | InvocationTargetException ex) {
                                        self.logException(ex);
                                }
@@ -750,7 +750,7 @@ public class AddressbookFrame extends BaseAddressbookSystem implements ClientFra
                         */
                        @Override
                        public void actionPerformed (final ActionEvent e) {
-                               ((ManageableContactAddressbook) self.getClient().getManager()).doAddOtherAddress();
+                               ((ContactFacade) self.getClient().getManager()).doAddOtherAddress();
                        }
                });