001 package data.events; 002 003 import java.util.*; 004 005 /** 006 * Listener that listens for DataBasketEvents. 007 * 008 * @author Steffen Zschaler 009 * @version 2.0 19/08/1999 010 * @since v2.0 011 */ 012 public interface DataBasketListener extends EventListener { 013 014 /** 015 * Called when a DataBasketEntry was added to the DataBasket. 016 * 017 * @param e an event object that describes the event. 018 * 019 * @override Always 020 */ 021 public void addedDBE(DataBasketEvent e); 022 023 /** 024 * Called when a DataBasketEntry was removed from the DataBasket. 025 * 026 * @param e an event object that describes the event. 027 * 028 * @override Always 029 */ 030 public void removedDBE(DataBasketEvent e); 031 032 /** 033 * Called when the DataBasket changed in a manner too complex for the two other types of events. 034 * 035 * @param e an event object that describes the event. (<code>e.getAffectedEntry() == null</code>!) 036 * 037 * @override Always 038 */ 039 public void dataBasketChanged(DataBasketEvent e); 040 }