From fc802101e216e28c54cde05ee8a97a05ff22158e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Mon, 8 Aug 2016 14:10:07 +0200 Subject: [PATCH] Continued a bit: (please cherry-pick) - added title --- .../AddressbookContactWebSessionBean.java | 18 +++++++++++++++++- ...AddressbookContactWebSessionController.java | 14 ++++++++++++++ 2 files changed, 31 insertions(+), 1 deletion(-) 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 *

-- 2.39.5