view src/samer/silk/SilkObserver.java @ 0:bf79fb79ee13

Initial Mercurial check in.
author samer
date Tue, 17 Jan 2012 17:50:20 +0000
parents
children
line wrap: on
line source
package samer.silk;

import java.util.*;
import jsint.*;

public class SilkObserver implements Observer {
	Procedure	_update;

	public SilkObserver(Procedure _update) { this._update=_update; }
	public void update(Observable o, Object a) {
		Object[] args = { o, a}; _update.apply(args); 
	}
}