From: Roland Häder Date: Mon, 8 Aug 2016 12:10:07 +0000 (+0200) Subject: Continued a bit: (please cherry-pick) X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=fc802101e216e28c54cde05ee8a97a05ff22158e;p=jfinancials-war.git Continued a bit: (please cherry-pick) - added title --- diff --git a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java index 64367724..b7cd38d8 100644 --- a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java +++ b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionBean.java @@ -207,6 +207,11 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController */ private String street; + /** + * Title + */ + private String title; + /** * Regular user controller */ @@ -794,6 +799,16 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController this.street = street; } + @Override + public String getTitle () { + return this.title; + } + + @Override + public void setTitle (final String title) { + this.title = title; + } + @Override public Integer getZipCode () { return this.zipCode; @@ -982,7 +997,7 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController // Clear all data // - personal data this.setGender(null); - // TODO: Unfinished this.setTitle(null); + this.setTitle(null); this.setFirstName(null); this.setFamilyName(null); this.setStreet(null); @@ -1030,6 +1045,7 @@ public class AddressbookContactWebSessionBean extends BaseAddressbookController // Copy all fields: // - base data this.setGender(contact.getContactGender()); + this.setTitle(contact.getContactTitle()); this.setFirstName(contact.getContactFirstName()); this.setFamilyName(contact.getContactFamilyName()); this.setStreet(contact.getContactStreet()); diff --git a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionController.java b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionController.java index faa7d0f0..532b232c 100644 --- a/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionController.java +++ b/src/java/org/mxchange/addressbook/beans/contact/AddressbookContactWebSessionController.java @@ -416,6 +416,20 @@ public interface AddressbookContactWebSessionController extends Serializable { */ void setStreet (final String street); + /** + * Titöe + *

+ * @return the title + */ + String getTitle (); + + /** + * Title + *

+ * @param title the title to set + */ + void setTitle (final String title); + /** * ZIP code *