diff 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 diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/src/alice/test/topology/aquarium/fx/UpdateData.java	Mon Jan 28 00:22:17 2013 +0900
@@ -0,0 +1,19 @@
+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);
+	}
+}