org.directwebremoting.io
Interface StoreChangeListener<T>

All Superinterfaces:
java.util.EventListener

public interface StoreChangeListener<T>
extends java.util.EventListener

We sometimes need to monitor what is happening to a store and the items it contains

Author:
Joe Walker [joe at getahead dot ltd dot uk]

Method Summary
 void itemAdded(StoreProvider<T> source, Item item)
          Something has added an item to the store
 void itemChanged(StoreProvider<T> source, Item item, java.util.Collection<java.lang.String> changedAttributes)
          Something has updated an item in the store
 void itemRemoved(StoreProvider<T> source, java.lang.String itemId)
          Something has removed an item from the store
 

Method Detail

itemRemoved

void itemRemoved(StoreProvider<T> source,
                 java.lang.String itemId)
Something has removed an item from the store

Parameters:
source - The store from which it was moved
itemId - The ID of the item

itemAdded

void itemAdded(StoreProvider<T> source,
               Item item)
Something has added an item to the store

Parameters:
source - The store from which it was added
item - The thing that has changed

itemChanged

void itemChanged(StoreProvider<T> source,
                 Item item,
                 java.util.Collection<java.lang.String> changedAttributes)
Something has updated an item in the store

Parameters:
source - The store from which it was updated
item - The thing that has changed
changedAttributes - A list of changed attributes. If null then you should assume that everything has changed

Copyright 2008