catalog.view.bean
Class ProductListBean
java.lang.Object
catalog.view.bean.BaseBean
catalog.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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ProductListBean
public ProductListBean()
- Default constructor.
init
protected void init()
- Initializes the ProductListBean.
The following steps are being done:
- retrieve all the products.
- convert all the products to product beans.
- pagination logic
- 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.