|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.fm.addressbook.bean.BaseBean
org.fm.addressbook.bean.ContactBean
public class ContactBean
JContact- online Address Book Management Systemhttp://jcontact.sourceforge.net/
Licensed under the terms of any of the following licenses at your choice: -
GNU General Public License Version 2 or later (the "GPL") http://www.gnu.org/licenses/gpl.html -
GNU Lesser General Public License Version 2.1 or later (the "LGPL") http://www.gnu.org/licenses/lgpl.html
ContactBean is managed bean with session scope. This handles contact view logic operations.
| Field Summary |
|---|
| Fields inherited from class org.fm.addressbook.bean.BaseBean |
|---|
SHOWBUTTON_CREATE, SHOWBUTTON_UPDATE |
| Constructor Summary | |
|---|---|
ContactBean()
|
|
| Method Summary | |
|---|---|
void |
changeAddressListener(javax.faces.event.ValueChangeEvent changeEvent)
Listener for changing address type combo box. |
void |
changeCategoryListener(javax.faces.event.ValueChangeEvent changeEvent)
Listener for changing Category combo box. |
void |
deleteContactAction()
Action for delete contact |
void |
editContactAction()
Action for editing action |
java.lang.String |
getAddress()
|
Address |
getCurrentAddress()
|
Category |
getCurrentCategory()
|
Contact |
getCurrentContact()
|
java.util.List<Contact> |
getCurrentContactList()
|
void |
init()
|
void |
initCurrentContact()
Initialise currentContact |
void |
previewAction()
Action for show preview of contacts |
void |
removeContacts(AddressBook addressBook)
Remove all contacts of given addressBook from currentContactList |
void |
resetBean()
|
void |
saveContactAction()
Action for saving contact |
void |
searchContactsAction()
|
void |
setCurrentAddress(Address currentAddress)
|
void |
setCurrentCategory(Category currentCategory)
|
void |
setCurrentContact(Contact currentContact)
|
void |
setCurrentContactList(java.util.List<Contact> currentContactList)
|
void |
updateAddressAction()
Action for updating edited address |
void |
updateContactAction()
Action for updating contact |
| Methods inherited from class org.fm.addressbook.bean.BaseBean |
|---|
getShowButton, isCreateAction, setShowButton |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ContactBean()
| Method Detail |
|---|
public void init()
init in class BaseBeanpublic void resetBean()
resetBean in class BaseBeanpublic void initCurrentContact()
public void changeCategoryListener(javax.faces.event.ValueChangeEvent changeEvent)
public void changeAddressListener(javax.faces.event.ValueChangeEvent changeEvent)
changeEvent - public void updateAddressAction()
public void previewAction()
public void saveContactAction()
public void editContactAction()
public void updateContactAction()
public void deleteContactAction()
public void removeContacts(AddressBook addressBook)
addressBook - public void searchContactsAction()
public java.lang.String getAddress()
public Contact getCurrentContact()
public void setCurrentContact(Contact currentContact)
public java.util.List<Contact> getCurrentContactList()
public void setCurrentContactList(java.util.List<Contact> currentContactList)
public Address getCurrentAddress()
public void setCurrentAddress(Address currentAddress)
public Category getCurrentCategory()
public void setCurrentCategory(Category currentCategory)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||