FileDocCategorySizeDatePackage
CartForm.javaAPI DocJBoss 4.2.11612Fri Jul 13 20:56:04 BST 2007xpetstore.web.struts.action.cart

CartForm

public class CartForm extends BaseForm
author
Herve Tchepannou
struts.form
name="cartForm"

Fields Summary
private Collection
_cartItems
private xpetstore.domain.customer.ejb.Customer
_customer
private String[]
_itemId
private int[]
_quantity
public double
_total
Constructors Summary
Methods Summary
public java.util.CollectiongetCartItems()

        return _cartItems;
    
public xpetstore.domain.customer.ejb.CustomergetCustomer()

return
CustomerValue

        return _customer;
    
public java.lang.String[]getItemId()

        return _itemId;
    
public int[]getQuantity()

        return _quantity;
    
public doublegetTotal()

        return _total;
    
public voidsetCartItems(java.util.Collection cartItems)

        _cartItems = cartItems;
    
public voidsetCustomer(xpetstore.domain.customer.ejb.Customer customer)
Sets the customer.

param
customer The customer to set

        _customer = customer;
    
public voidsetItemId(java.lang.String[] itemId)

        _itemId = itemId;
    
public voidsetQuantity(int[] quantity)

        _quantity = quantity;
    
public voidsetTotal(double total)

        _total = total;