SalesPoint v3.3 API

data.events
Class CatalogChangeEvent<T extends CatalogItem>

java.lang.Object
  extended by java.util.EventObject
      extended by data.events.CatalogChangeEvent<T>
All Implemented Interfaces:
Serializable

public class CatalogChangeEvent<T extends CatalogItem>
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<T> lcSource, T ciAffected, DataBasket db)
          Create a new CatalogChangeEvent.
 
Method Summary
 T 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<T> lcSource,
                          T 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 T 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 v3.3 API