com.konakart.forms
Class AddToCartForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by org.apache.struts.validator.ValidatorForm
          extended by com.konakart.forms.BaseForm
              extended by 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

Field Summary
 
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResults
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
AddToCartForm()
           
 
Method Summary
 int getNumOptions()
           
 int getOptionId(int index)
           
 java.lang.String getProductId()
           
 int getValueId(int index)
           
 void setNumOptions(int numOptions)
           
 void setOptionId(int index, int value)
           
 void setProductId(java.lang.String productId)
           
 void setValueId(int index, int value)
           
 
Methods inherited from class com.konakart.forms.BaseForm
reset
 
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
 

Constructor Detail

AddToCartForm

public AddToCartForm()
Method Detail

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.