view src/alice/test/topology/aquarium/fx/UpdateData.java @ 4:50d77513d52e

Platform runLater must use for handling instance from other thread (Not on FX application thread )
author e095732
date Mon, 28 Jan 2013 00:22:17 +0900
parents
children b973de8b6785
line wrap: on
line source

package alice.test.topology.aquarium.fx;

import alice.codesegment.CodeSegment;

public class UpdateData extends CodeSegment {
	
	private String key;
	private FishData fd;
	
	public UpdateData(String key, FishData fd){
		this.key = key;
		this.fd = fd;
	}

	@Override
	public void run() {
		ods.update("local", this.key, fd);
	}
}