01: package gnu.kawa.models;
02:
03: /** Implemented by an object that wants to be notified when a model changes.
04: * (Similar to a java.beans.PropertyChangeListener; should perhaps use that.
05: * A disadvantage of PropertyChangeListener is that it requires allocating a
06: * PropertyChangeEvent on each change but maybe "compatibility" is worth it.) */
07:
08: public interface ModelListener {
09: public void modelUpdated(Model model, Object key);
10: }
|