From 88c99f2361d17cc56770095d9d5bb76bca78f866 Mon Sep 17 00:00:00 2001 From: Nils Dittberner Date: Thu, 19 Nov 2015 16:17:57 +0100 Subject: [PATCH] StationsKey in SSP geaendert. --- .../java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java b/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java index 00fb191..4524069 100644 --- a/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java +++ b/src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java @@ -2,6 +2,7 @@ package de.uniluebeck.mi.projmi6.model; import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleObjectProperty; +import javafx.beans.property.SimpleStringProperty; import java.time.LocalDateTime; @@ -14,7 +15,7 @@ public class StationsHistorie extends Version { private Fall fall; private int fallID; // platte Objektstruktur! private Station station; - private String stationKey; // platte Objektstruktur! + private SimpleStringProperty stationKey = new SimpleStringProperty(this, "stationskey"); // platte Objektstruktur! private SimpleIntegerProperty StatHistID = new SimpleIntegerProperty(this, "stathistid"); public LocalDateTime getAufnahmeDatum() { @@ -78,10 +79,14 @@ public class StationsHistorie extends Version { } public String getStationKey() { - return stationKey; + return stationKey.get(); } public void setStationKey(String stationKey) { - this.stationKey = stationKey; + this.stationKey.set(stationKey); + } + + public SimpleStringProperty stationKeyProperty() { + return stationKey; } }