org.fm.addressbook.bean
Class CategoryBean

java.lang.Object
  extended by org.fm.addressbook.bean.BaseBean
      extended by org.fm.addressbook.bean.CategoryBean

public class CategoryBean
extends BaseBean

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

CategoryBean is managed bean with session scope. This handles all category view operations.

Author:
Tennyson Varghese
Aneesh S

Field Summary
 
Fields inherited from class org.fm.addressbook.bean.BaseBean
SHOWBUTTON_CREATE, SHOWBUTTON_UPDATE
 
Constructor Summary
CategoryBean()
           
 
Method Summary
 void deleteCategoryAction()
          Delete category action
 void editCategoryAction()
          Edit category action
 java.util.List<Category> getCategoryList()
           
 java.util.List<javax.faces.model.SelectItem> getCmbCategoryList()
           
 Category getCurrentCategory()
           
 Category getDefaultCategory()
           
 void init()
           
 void initCurrentCategory()
          Initialise currentCategory for creating new Category
 void loadCategoryList()
          Load all category to categoryList
 void resetBean()
           
 void saveCategoryAction()
          Save category action
 void selectCategoryAction()
           
 void setCategoryList(java.util.List<Category> categoryList)
           
 void setCurrentCategory(Category currentCategory)
           
 void setDefaultCategory(Category defaultCategory)
           
 void updateCategoryAction()
          Update category action
 void updateDefaultCategory(javax.faces.event.ActionEvent actionEvent)
          set the defaultCategory to 'All'
 
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

CategoryBean

public CategoryBean()
Method Detail

init

public void init()
Specified by:
init in class BaseBean

initCurrentCategory

public void initCurrentCategory()
Initialise currentCategory for creating new Category


updateDefaultCategory

public void updateDefaultCategory(javax.faces.event.ActionEvent actionEvent)
set the defaultCategory to 'All'

Parameters:
actionEvent -

loadCategoryList

public void loadCategoryList()
Load all category to categoryList


saveCategoryAction

public void saveCategoryAction()
Save category action


editCategoryAction

public void editCategoryAction()
Edit category action


updateCategoryAction

public void updateCategoryAction()
Update category action


deleteCategoryAction

public void deleteCategoryAction()
Delete category action


selectCategoryAction

public void selectCategoryAction()

getCurrentCategory

public Category getCurrentCategory()

setCurrentCategory

public void setCurrentCategory(Category currentCategory)

resetBean

public void resetBean()
Specified by:
resetBean in class BaseBean

getCategoryList

public java.util.List<Category> getCategoryList()

setCategoryList

public void setCategoryList(java.util.List<Category> categoryList)

getCmbCategoryList

public java.util.List<javax.faces.model.SelectItem> getCmbCategoryList()

getDefaultCategory

public Category getDefaultCategory()

setDefaultCategory

public void setDefaultCategory(Category defaultCategory)