com.konakart.forms
Class AddToCartForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
com.konakart.forms.BaseForm
com.konakart.forms.AddToCartForm
- All Implemented Interfaces:
- java.io.Serializable
public class AddToCartForm
- extends BaseForm
This form contains all of the information required in order to add a product to the cart. The
optionId and valueId arrays contain the values for certain options which may be applicable for
the selected product. valueId[0] contains the selected valueId for the optionId[0] and so on.
- See Also:
- Serialized Form
| Fields inherited from class org.apache.struts.validator.ValidatorForm |
page, validatorResults |
| Fields inherited from class org.apache.struts.action.ActionForm |
multipartRequestHandler, servlet |
| Methods inherited from class org.apache.struts.validator.ValidatorForm |
getPage, getResultValueMap, getValidationKey, getValidatorResults, setPage, setValidatorResults, validate |
| Methods inherited from class org.apache.struts.action.ActionForm |
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
AddToCartForm
public AddToCartForm()
getOptionId
public int getOptionId(int index)
- Parameters:
index -
- Returns:
- Returns the optionId.
setOptionId
public void setOptionId(int index,
int value)
- Parameters:
index - value -
getValueId
public int getValueId(int index)
- Parameters:
index -
- Returns:
- Returns the valueId.
setValueId
public void setValueId(int index,
int value)
- Parameters:
index - value -
getProductId
public java.lang.String getProductId()
- Returns:
- Returns the productId.
setProductId
public void setProductId(java.lang.String productId)
- Parameters:
productId - The productId to set.
getNumOptions
public int getNumOptions()
- Returns:
- Returns the numOptions.
setNumOptions
public void setNumOptions(int numOptions)
- Parameters:
numOptions - The numOptions to set.
Copyright © 2006 DS Data Systems UK Ltd.