|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.ora.jsp.beans.shopping.CartBean
This class represents a shopping cart. It holds a list of products.
Field Summary | |
private java.util.Vector |
cart
|
Constructor Summary | |
CartBean()
|
Method Summary | |
java.util.Enumeration |
getProducts()
Returns the product list. |
float |
getTotal()
Returns the total price for all products in the cart |
boolean |
isEmpty()
Returns true if the cart is empty |
void |
setProduct(ProductBean product)
Adds a product to the cart, if it's not already there. |
Methods inherited from class java.lang.Object |
|
Field Detail |
private java.util.Vector cart
Constructor Detail |
public CartBean()
Method Detail |
public void setProduct(ProductBean product)
product
- the ProductBeanpublic java.util.Enumeration getProducts()
public float getTotal()
public boolean isEmpty()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |