X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=Addressbook%2Fsrc%2Forg%2Fmxchange%2Faddressbook%2Fcontact%2FBaseContact.java;h=7bf18b09c21a3731f0e7e8068bf36431f6182781;hb=3457fa799a3756c45072acd0da5ed82de5535aa0;hp=95335ff7978a0d2fb1efdb6d02bdf8c3b9cfd3e1;hpb=0490615f8cc85a9462dcd1514dfe58c637edea5b;p=addressbook-swing.git diff --git a/Addressbook/src/org/mxchange/addressbook/contact/BaseContact.java b/Addressbook/src/org/mxchange/addressbook/contact/BaseContact.java index 95335ff..7bf18b0 100644 --- a/Addressbook/src/org/mxchange/addressbook/contact/BaseContact.java +++ b/Addressbook/src/org/mxchange/addressbook/contact/BaseContact.java @@ -467,4 +467,19 @@ public class BaseContact extends BaseFrameworkSystem { // Display other data "box" client.displayOtherDataBox((Contact) this); } + + /** + * Updates name data in this Contact instance + * @param gender Gender (M, F, C) + * @param surname Surname + * @param familyName Family name + * @param companyName Company name + */ + public void updateNameData (final char gender, final String surname, final String familyName, final String companyName) { + // Set all + this.setGender(gender); + this.setSurname(surname); + this.setFamilyName(familyName); + this.setCompanyName(companyName); + } }