webwork.examples.i18n
Class Cart

java.lang.Object
  extended bywebwork.examples.i18n.Cart

public class Cart
extends java.lang.Object

This code is an adaptation of the I18N example from the JavaWorld article by Govind Seshadri. http://www.javaworld.com/javaworld/jw-03-2000/jw-03-ssj-jsp_p.html


Nested Class Summary
static class Cart.CartItem
           
 
Constructor Summary
Cart()
           
 
Method Summary
 void addItem(CD cd, int quantity)
           
 java.util.List getItems()
           
 double getTotal()
           
 void removeItem(CD cd)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Cart

public Cart()
Method Detail

addItem

public void addItem(CD cd,
                    int quantity)

removeItem

public void removeItem(CD cd)

getItems

public java.util.List getItems()

getTotal

public double getTotal()


Copyright © 2001-2003 WebWork All Rights Reserved.