01: package gnu.kawa.models;
02:
03: public class WeakListener extends java.lang.ref.WeakReference {
04: public WeakListener(Object referent) {
05: super (referent);
06: }
07:
08: public WeakListener(Object referent, WeakListener next) {
09: super (referent);
10: this .next = next;
11: }
12:
13: WeakListener next;
14:
15: public void update(Object view, Model model, Object key) {
16: ((ModelListener) view).modelUpdated(model, key);
17: }
18: }
|