samer@0: package samer.silk; samer@0: samer@0: import java.util.*; samer@0: import jsint.*; samer@0: samer@0: public class SilkObserver implements Observer { samer@0: Procedure _update; samer@0: samer@0: public SilkObserver(Procedure _update) { this._update=_update; } samer@0: public void update(Observable o, Object a) { samer@0: Object[] args = { o, a}; _update.apply(args); samer@0: } samer@0: }