annotate 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
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
4
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
1 package alice.test.topology.aquarium.fx;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
2
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
3 import alice.codesegment.CodeSegment;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
4
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
5 public class UpdateData extends CodeSegment {
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
6
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
7 private String key;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
8 private FishData fd;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
9
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
10 public UpdateData(String key, FishData fd){
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
11 this.key = key;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
12 this.fd = fd;
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
13 }
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
14
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
15 @Override
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
16 public void run() {
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
17 ods.update("local", this.key, fd);
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
18 }
50d77513d52e Platform runLater must use for handling instance from other thread (Not on FX application thread )
e095732
parents:
diff changeset
19 }