|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.jhu.cs.oose.group3.intelligentbook.backingbeans.SuperBackingBean
edu.jhu.cs.oose.group3.intelligentbook.backingbeans.SessionBackingBean
edu.jhu.cs.oose.group3.intelligentbook.backingbeans.AddContactBackingBean
edu.jhu.cs.oose.group3.intelligentbook.backingbeans.AddPersonalInfoBackingBean
public class AddPersonalInfoBackingBean
This class is the backing bean for adding personal information. Personal emails and phones are handled by this bean. Mutiple emails and phones can be added. Emails and phones not needed can be removed.
Field Summary | |
---|---|
private java.util.List<Entry<java.lang.String,EmailContactItem>> |
emails
Here we are using an entry because we are passing a pair of information around. |
private java.lang.String |
jumpLocation
This is used to know the position of the form |
private int |
nextEmailId
|
private int |
nextPhoneId
|
private java.util.List<Entry<java.lang.String,PhoneContactItem>> |
phones
|
private boolean[] |
renderEmails
|
private boolean[] |
renderPhones
|
private java.lang.String |
targetEmail
|
private java.lang.String |
targetPhone
|
Constructor Summary | |
---|---|
AddPersonalInfoBackingBean()
|
Method Summary | |
---|---|
java.lang.String |
addOneEmail()
Add one more email to the form |
java.lang.String |
addOnePhone()
Add one phone to the form |
java.lang.String |
clearOneEmail()
Clear on email entry from the form |
java.lang.String |
clearOnePhone()
Clear one phone from the form |
java.util.List<Entry<java.lang.String,EmailContactItem>> |
getEmails()
Get the email entries to be filled in the form |
java.lang.String |
getJumpLocation()
Get the jump location, for knowing the position in the form |
int |
getMaxEmails()
Get the max number of emails |
int |
getMaxPhones()
Get the max number of emails |
java.util.List<Entry<java.lang.String,PhoneContactItem>> |
getPhones()
Get the phone entries to fill in the form |
boolean[] |
getRenderEmails()
Get whether to render emails |
boolean[] |
getRenderPhones()
Get whether it's ok to render phone entries |
java.lang.String |
getTargetEmail()
Get the target email, for knowing which email is being referred |
java.lang.String |
getTargetPhone()
Get the target phone, for knowing which phone is being referred |
boolean |
isOkToAddEmail()
Whether it's ok to add an email |
boolean |
isOkToAddPhone()
Whether it's ok to add one phone |
java.lang.String |
removeOneEmail()
Remove one email entry from the form |
java.lang.String |
removeOnePhone()
Remove one phone from the form |
void |
setEmails(java.util.List<Entry<java.lang.String,EmailContactItem>> emails)
Set the email entries to be filled in the form |
void |
setJumpLocation(java.lang.String jumpLocation)
Set the jump location, for knowing the position in the form |
void |
setPhones(java.util.List<Entry<java.lang.String,PhoneContactItem>> phones)
Set the phone entries to fill in the form |
void |
setTargetEmail(java.lang.String targetEmail)
Set the target email, for knowing which email is being referred |
void |
setTargetPhone(java.lang.String targetPhone)
Set the target phone, for knowing which phone is being referred |
java.lang.String |
updateContact()
Save/update the contact items |
Methods inherited from class edu.jhu.cs.oose.group3.intelligentbook.backingbeans.AddContactBackingBean |
---|
getAllContactGroups, getAllStates, getContactItemKeys, getContactService, setContactItemKeys, setContactService |
Methods inherited from class edu.jhu.cs.oose.group3.intelligentbook.backingbeans.SessionBackingBean |
---|
getAllEnumeratedGroups, getCurrentUser, setCurrentUser |
Methods inherited from class edu.jhu.cs.oose.group3.intelligentbook.backingbeans.SuperBackingBean |
---|
getErrors, getNotices, setErrors, setNotices |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private java.util.List<Entry<java.lang.String,EmailContactItem>> emails
private java.lang.String targetEmail
private int nextEmailId
private boolean[] renderEmails
private java.util.List<Entry<java.lang.String,PhoneContactItem>> phones
private java.lang.String targetPhone
private int nextPhoneId
private boolean[] renderPhones
private java.lang.String jumpLocation
Constructor Detail |
---|
public AddPersonalInfoBackingBean()
Method Detail |
---|
public java.util.List<Entry<java.lang.String,EmailContactItem>> getEmails()
public void setEmails(java.util.List<Entry<java.lang.String,EmailContactItem>> emails)
emails
- email entries to fill the formpublic int getMaxEmails()
public boolean isOkToAddEmail()
public java.lang.String addOneEmail()
public java.lang.String getTargetEmail()
public void setTargetEmail(java.lang.String targetEmail)
targetEmail
- the target email, for knowing which email is being referredpublic java.lang.String removeOneEmail()
public java.lang.String clearOneEmail()
public boolean[] getRenderEmails()
public java.util.List<Entry<java.lang.String,PhoneContactItem>> getPhones()
public void setPhones(java.util.List<Entry<java.lang.String,PhoneContactItem>> phones)
phones
- phone entries to fill in the formpublic int getMaxPhones()
public boolean isOkToAddPhone()
public java.lang.String addOnePhone()
public java.lang.String getTargetPhone()
public void setTargetPhone(java.lang.String targetPhone)
targetPhone
- target from for knowing which phone is being referredpublic java.lang.String removeOnePhone()
public java.lang.String clearOnePhone()
public boolean[] getRenderPhones()
public java.lang.String getJumpLocation()
public void setJumpLocation(java.lang.String jumpLocation)
jumpLocation
- public java.lang.String updateContact()
updateContact
in class AddContactBackingBean
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |