From: Roland Haeder Date: Mon, 10 Apr 2017 20:07:24 +0000 (+0200) Subject: Continued a bit: X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f81c4418fe2cb0635f77f1a208875af887b2e985;p=jfinancials-swing.git Continued a bit: - not just cellphones, let's support any mobile phone - tpzo fixed --- diff --git a/src/org/mxchange/addressbook/client/console/ConsoleClient.java b/src/org/mxchange/addressbook/client/console/ConsoleClient.java index 6065392..8452a4a 100644 --- a/src/org/mxchange/addressbook/client/console/ConsoleClient.java +++ b/src/org/mxchange/addressbook/client/console/ConsoleClient.java @@ -39,7 +39,7 @@ import org.mxchange.jcore.application.Application; import org.mxchange.jcore.exceptions.MenuInitializationException; import org.mxchange.jcore.exceptions.UnhandledUserChoiceException; import org.mxchange.jcountry.data.Country; -import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; @@ -125,7 +125,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC } // Cellphone and such ... - this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactLandLineNumber(), contact.getContactFaxNumber(), contact.getContactCellphoneNumber(), contact.getContactComment())); + this.outputMessage(MessageFormat.format("Telefonnumer: {0}\nFaxnummer: {1}\nHandy: {2}\nKommentar:\n{3}", contact.getContactLandLineNumber(), contact.getContactFaxNumber(), contact.getContactMobileNumber(), contact.getContactComment())); // Trace message this.getLoggerBeanLocal().logTrace("EXIT!"); //NOI18N @@ -235,7 +235,7 @@ public class ConsoleClient extends BaseAddressbookClient implements AddressbookC DialableLandLineNumber phoneNumber = manager.enterOwnPhoneNumber(); // Phone number - DialableCellphoneNumber cellphonePhoneNumber = manager.enterOwnCellNumber(); + DialableMobileNumber cellphonePhoneNumber = manager.enterOwnCellNumber(); // Fax number DialableFaxNumber faxNumber = manager.enterOwnFaxNumber(); diff --git a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java index 177ec38..226fafb 100644 --- a/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/AddressbookContactFacade.java @@ -33,7 +33,7 @@ import org.mxchange.jcore.facade.BaseFacade; import org.mxchange.jcoreeelogger.beans.local.logger.Log; import org.mxchange.jcoreeelogger.beans.local.logger.LoggerBeanLocal; import org.mxchange.jcountry.data.Country; -import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; @@ -310,7 +310,7 @@ public class AddressbookContactFacade extends BaseFacade implements ContactFacad } @Override - public DialableCellphoneNumber enterOwnCellNumber () { + public DialableMobileNumber enterOwnCellNumber () { // Trace message this.getLoggerBeanLocal().logTrace("CALLED!"); //NOI18N diff --git a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java index 3228529..6e465d7 100644 --- a/src/org/mxchange/addressbook/facade/contact/ContactFacade.java +++ b/src/org/mxchange/addressbook/facade/contact/ContactFacade.java @@ -22,7 +22,7 @@ import org.mxchange.jcontacts.contact.gender.Gender; import org.mxchange.jcontacts.exceptions.ContactAlreadyAddedException; import org.mxchange.jcore.facade.Facade; import org.mxchange.jcountry.data.Country; -import org.mxchange.jphone.phonenumbers.cellphone.DialableCellphoneNumber; +import org.mxchange.jphone.phonenumbers.mobile.DialableMobileNumber; import org.mxchange.jphone.phonenumbers.fax.DialableFaxNumber; import org.mxchange.jphone.phonenumbers.landline.DialableLandLineNumber; @@ -110,7 +110,7 @@ public interface ContactFacade extends Facade { *

* @return Cellphone number */ - DialableCellphoneNumber enterOwnCellNumber (); + DialableMobileNumber enterOwnCellNumber (); /** * Allows the user to enter own city name.