SalesPoint Framework v3.1

data.events
Class CatalogChangeEvent

java.lang.Object
  extended byjava.util.EventObject
      extended bydata.events.CatalogChangeEvent
All Implemented Interfaces:
Serializable

public class CatalogChangeEvent
extends EventObject

An event indicating a change in a Catalog's contents.

Since:
v2.0
Author:
Steffen Zschaler
See Also:
ListenableCatalog, Serialized Form

Field Summary
 
Fields inherited from class java.util.EventObject
source
 
Constructor Summary
CatalogChangeEvent(ListenableCatalog lcSource, CatalogItem ciAffected, DataBasket db)
          Create a new CatalogChangeEvent.
 
Method Summary
 CatalogItem getAffectedItem()
          Get the item that is affected by the change.
 DataBasket getBasket()
          Get the DataBasket that was used to perform the operation.
 
Methods inherited from class java.util.EventObject
getSource, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CatalogChangeEvent

public CatalogChangeEvent(ListenableCatalog lcSource,
                          CatalogItem ciAffected,
                          DataBasket db)
Create a new CatalogChangeEvent.

Parameters:
lcSource - the Catalog that triggers the event.
ciAffected - the affected CatalogItem.
db - the DataBasket that was used to perform the operation.
Method Detail

getAffectedItem

public CatalogItem getAffectedItem()
Get the item that is affected by the change.

Override:
Never.

getBasket

public DataBasket getBasket()
Get the DataBasket that was used to perform the operation.

Override:
Never.

SalesPoint Framework v3.1