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

Field Summary
static int ADD_ITEM
           
static int DELETE_ITEM
           
static int UPDATE_ITEM
           
 
Constructor Summary
CartEvent(int actionType, java.util.Collection itemIds)
           
CartEvent(int actionType, java.util.Collection itemIds, java.util.HashMap quantities)
           
 
Method Summary
 int getActionType()
           
 java.lang.String getEventName()
          Specifiy a logical name that is mapped to the event in in the Universal Remote Controller.
 java.util.Collection getItemIds()
           
 int getItemQty(java.lang.String itemId)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ADD_ITEM

public static final int ADD_ITEM

DELETE_ITEM

public static final int DELETE_ITEM

UPDATE_ITEM

public static final int UPDATE_ITEM
Constructor Detail

CartEvent

public CartEvent(int actionType,
                 java.util.Collection itemIds)

CartEvent

public CartEvent(int actionType,
                 java.util.Collection itemIds,
                 java.util.HashMap quantities)
Method Detail

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.