protected void bp_emailAdd_mouseClicked(MouseEvent e)
{
String messageObjectName = BASIC_PERSON;
org.openeai.OpenEaiObject.logger.info("Message Object Name is: " + messageObjectName);
try {
Email p = null;
int index = bp_emailList.getSelectedIndex();
if (index == -1) {
BasicPerson bPerson = (BasicPerson)APP_CONFIG.getObject(messageObjectName);
org.openeai.OpenEaiObject.logger.info("got " + messageObjectName + " from AppConfig");
p = bPerson.newEmail();
}
else {
p = (Email)bp_emailList.getSelectedValue();
}
p.setType((String)bp_emailType.getSelectedItem());
//p.setPhoneArea(bp_phoneAreaCode.getText());
p.setEmailAddress(bp_emailAddress.getText());
if (bp_emailPreferred.isSelected()) {
p.setPreferred("Yes");
} else {
p.setPreferred("No");
}
if (bp_emailActive.isSelected()) {
p.setStatus("Active");
} else {
p.setStatus("New");
}
javax.swing.ListModel lm = bp_emailList.getModel();
java.util.Vector vEmail = new java.util.Vector();
for (int i=0; i<lm.getSize(); i++) {