001 package data.events; 002 003 import java.util.EventObject; 004 005 import data.DataBasket; 006 import data.DataBasketEntry; 007 008 /** 009 * An event that indicates a change in a DataBasket's contents. 010 * 011 * @author Steffen Zschaler 012 * @version 2.0 19/08/1999 013 * @since v2.0 014 */ 015 public class DataBasketEvent extends EventObject { 016 017 /** 018 * The DataBasketEntry that was affected by the change. 019 * 020 * @serial 021 */ 022 private DataBasketEntry m_dbeEntry; 023 024 /** 025 * Create a new DataBasketEvent. 026 * 027 * @param dbSource the DataBasket that triggers the event. 028 * @param dbe the affected DataBasketEntry. 029 */ 030 public DataBasketEvent(DataBasket dbSource, DataBasketEntry dbe) { 031 super(dbSource); 032 033 m_dbeEntry = dbe; 034 } 035 036 /** 037 * Get the affected DataBasketEntry. 038 * 039 * @override Never 040 */ 041 public DataBasketEntry getAffectedEntry() { 042 return m_dbeEntry; 043 } 044 }