catalog.view.bean
Class ProductListBean

java.lang.Object
  extended bycatalog.view.bean.BaseBean
      extended bycatalog.view.bean.ProductListBean

public class ProductListBean
extends BaseBean

ProductList backing bean.

It contains a list of ProductBean. It is used for the catalog page and the productList page. It contains the pagination logic for the catalog page.

Author:
Derek Y. Shen

Field Summary
 
Fields inherited from class catalog.view.bean.BaseBean
logger, serviceLocator
 
Constructor Summary
ProductListBean()
          Default constructor.
 
Method Summary
 java.lang.String getCurrentCategoryId()
           
 java.lang.String getCurrentCategoryName()
           
 java.util.List getCurrentProductBeans()
           
 int getPageNo()
           
 java.util.List getProductBeans()
           
 int getTotalPages()
           
protected  void init()
          Initializes the ProductListBean.
 java.lang.String searchByCategoryAction()
          Backing bean action to search products by category.
 
Methods inherited from class catalog.view.bean.BaseBean
getServiceLocator, setServiceLocator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProductListBean

public ProductListBean()
Default constructor.

Method Detail

init

protected void init()
Initializes the ProductListBean.

The following steps are being done:

Overrides:
init in class BaseBean
See Also:
BaseBean.init()

searchByCategoryAction

public java.lang.String searchByCategoryAction()
Backing bean action to search products by category.

Returns:
the navigation result

getProductBeans

public java.util.List getProductBeans()

getCurrentProductBeans

public java.util.List getCurrentProductBeans()

getPageNo

public int getPageNo()

getTotalPages

public int getTotalPages()

getCurrentCategoryId

public java.lang.String getCurrentCategoryId()

getCurrentCategoryName

public java.lang.String getCurrentCategoryName()


Copyright (c) 2004 The JCatalog Project.