|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcatalog.view.bean.BaseBean
catalog.view.bean.ProductBean
Product backing bean.
Used by the createProduct page and editProduct page.
Field Summary |
Fields inherited from class catalog.view.bean.BaseBean |
logger, serviceLocator |
Constructor Summary | |
ProductBean()
Default constructor. |
Method Summary | |
java.lang.String |
createAction()
Backing bean action to create a new product. |
java.lang.String |
deleteAction()
Backing bean action to delete product. |
java.util.Set |
getCategoryIds()
|
java.lang.String |
getDescription()
|
double |
getHeight()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
double |
getPrice()
|
java.util.List |
getSelectedCategoryIds()
|
java.lang.String |
getShortDescription()
Get the short description of the product. |
double |
getWidth()
|
protected void |
init()
Initializes ProductBean. |
void |
setCategoryIds(java.util.Set newCategoryIds)
|
void |
setDescription(java.lang.String newDescription)
|
void |
setHeight(double newHeight)
|
void |
setId(java.lang.String newId)
Invoked by the JSF managed bean facility. |
void |
setName(java.lang.String newName)
|
void |
setPrice(double newPrice)
|
void |
setSelectedCategoryIds(java.util.List newSelectedCategoryIds)
|
void |
setWidth(double newWidth)
|
java.lang.String |
toString()
|
java.lang.String |
updateAction()
Backing bean action to update product. |
Methods inherited from class catalog.view.bean.BaseBean |
getServiceLocator, setServiceLocator |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public ProductBean()
Method Detail |
protected void init()
init
in class BaseBean
BaseBean.init()
public java.lang.String updateAction()
public java.lang.String createAction()
public java.lang.String deleteAction()
public java.lang.String getId()
public void setId(java.lang.String newId)
The id is from the request parameter. If the id is not null, by using the id as the key, the product bean is initialized.
public java.lang.String getName()
public void setName(java.lang.String newName)
public java.lang.String getDescription()
public void setDescription(java.lang.String newDescription)
public double getPrice()
public void setPrice(double newPrice)
public double getWidth()
public void setWidth(double newWidth)
public double getHeight()
public void setHeight(double newHeight)
public java.util.Set getCategoryIds()
public void setCategoryIds(java.util.Set newCategoryIds)
public java.util.List getSelectedCategoryIds()
public void setSelectedCategoryIds(java.util.List newSelectedCategoryIds)
public java.lang.String getShortDescription()
It is used in the productSummary page.
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |