Browse Source

StationsKey in SSP geaendert.

testBranch
Nils Dittberner 10 years ago
parent
commit
88c99f2361
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java

+ 8
- 3
src/main/java/de/uniluebeck/mi/projmi6/model/StationsHistorie.java View File

@@ -2,6 +2,7 @@ package de.uniluebeck.mi.projmi6.model;


import javafx.beans.property.SimpleIntegerProperty; import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleObjectProperty; import javafx.beans.property.SimpleObjectProperty;
import javafx.beans.property.SimpleStringProperty;


import java.time.LocalDateTime; import java.time.LocalDateTime;


@@ -14,7 +15,7 @@ public class StationsHistorie extends Version {
private Fall fall; private Fall fall;
private int fallID; // platte Objektstruktur! private int fallID; // platte Objektstruktur!
private Station station; private Station station;
private String stationKey; // platte Objektstruktur!
private SimpleStringProperty stationKey = new SimpleStringProperty(this, "stationskey"); // platte Objektstruktur!
private SimpleIntegerProperty StatHistID = new SimpleIntegerProperty(this, "stathistid"); private SimpleIntegerProperty StatHistID = new SimpleIntegerProperty(this, "stathistid");


public LocalDateTime getAufnahmeDatum() { public LocalDateTime getAufnahmeDatum() {
@@ -78,10 +79,14 @@ public class StationsHistorie extends Version {
} }


public String getStationKey() { public String getStationKey() {
return stationKey;
return stationKey.get();
} }


public void setStationKey(String stationKey) { public void setStationKey(String stationKey) {
this.stationKey = stationKey;
this.stationKey.set(stationKey);
}

public SimpleStringProperty stationKeyProperty() {
return stationKey;
} }
} }

Loading…
Cancel
Save