aboutTextArea.setEnabled(enabled);
}
private XmppVCard makeVCard()
{
XmppVCard v = new XmppVCard();
v.setFullName(fullNameField.getValue());
v.setNickName(nickNameField.getValue());
v.setBday(birthdayField.getValue());
if(this.vcard != null&&this.vcard.photo()!=null&&!this.vcard.photo().isEmpty())
{
v.setPhoto(this.vcard.photo());
}
if(emailField.getValue()!=null&&!emailField.getValue().isEmpty())
{
Email email = v.newEmail();
email.internet = true;
email.userid = emailField.getValue();
v.emailList.add(email);
}
v.setUrl(homepageField.getValue());
if(phoneField.getValue()!=null&&!phoneField.getValue().isEmpty())
{
Phone p = v.newPhone();
p.home = true;
p.voice = true;
p.number = phoneField.getValue();
v.phoneList.add(p);
}
if((streetField.getValue()!=null&&!streetField.getValue().isEmpty())||
(cityField.getValue()!=null&&!cityField.getValue().isEmpty())||
(stateField.getValue()!=null&&!stateField.getValue().isEmpty())||
(pCodeField.getValue()!=null&&!pCodeField.getValue().isEmpty())||
(countryField.getValue()!=null&&!countryField.getValue().isEmpty()))
{
Address addr = v.newAddress();
addr.home = true;
addr.street = streetField.getValue();
addr.locality = cityField.getValue();
addr.region = stateField.getValue();
addr.pcode = pCodeField.getValue();
addr.country = countryField.getValue();
v.addressList.add(addr);
}
Org org = v.newOrg();
org.name = companyField.getValue();
if(departmentField.getValue()!=null&&!departmentField.getValue().isEmpty())
{
org.unit.add(departmentField.getValue());
}
v.setOrg(org);
v.setTitle(positionField.getValue());
v.setRole(roleField.getValue());
v.setDesc(aboutTextArea.getValue());
return v;
}