com.sun.j2ee.blueprints.petstore.control.event
Class CartEvent
java.lang.Object
|
+--com.sun.j2ee.blueprints.petstore.control.event.EStoreEventSupport
|
+--com.sun.j2ee.blueprints.petstore.control.event.CartEvent
- public class CartEvent
- extends EStoreEventSupport
This class represents a shopping cart event.
It allows updates on multiple items in the shopping cart.
- See Also:
- Serialized Form
Constructor Summary |
CartEvent(int actionType,
java.util.Collection itemIds)
|
CartEvent(int actionType,
java.util.Collection itemIds,
java.util.HashMap quantities)
|
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
ADD_ITEM
public static final int ADD_ITEM
DELETE_ITEM
public static final int DELETE_ITEM
UPDATE_ITEM
public static final int UPDATE_ITEM
CartEvent
public CartEvent(int actionType,
java.util.Collection itemIds)
CartEvent
public CartEvent(int actionType,
java.util.Collection itemIds,
java.util.HashMap quantities)
getItemIds
public java.util.Collection getItemIds()
getActionType
public int getActionType()
getItemQty
public int getItemQty(java.lang.String itemId)
toString
public java.lang.String toString()
- Overrides:
- toString in class java.lang.Object
getEventName
public java.lang.String getEventName()
- Description copied from interface: EStoreEvent
- Specifiy a logical name that is mapped to the event in
in the Universal Remote Controller.
- Overrides:
- getEventName in class EStoreEventSupport
Copyright © 2000 Sun Microsystems Inc. All Rights Reserved.