summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/se/projektthemenvergabe/model
diff options
context:
space:
mode:
Diffstat (limited to 'src/de/fhswf/in/inf/se/projektthemenvergabe/model')
-rw-r--r--src/de/fhswf/in/inf/se/projektthemenvergabe/model/Projekt.java14
1 files changed, 14 insertions, 0 deletions
diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/model/Projekt.java b/src/de/fhswf/in/inf/se/projektthemenvergabe/model/Projekt.java
index 53972f5..2c5d93f 100644
--- a/src/de/fhswf/in/inf/se/projektthemenvergabe/model/Projekt.java
+++ b/src/de/fhswf/in/inf/se/projektthemenvergabe/model/Projekt.java
@@ -37,6 +37,8 @@ public class Projekt
private StringProperty dozentenkommentar = new SimpleStringProperty("");
+ private String oldProjektthema;
+
/**
* Generates an extractor that fires when a property of a list value
* changes.
@@ -145,6 +147,7 @@ public class Projekt
this.ansprechpartner.set(ansprechpartner);
this.ansprechpartner.get().addProjekt(this);
this.projektthema.set(projektthema);
+ oldProjektthema = projektthema;
}
/**
@@ -508,4 +511,15 @@ public class Projekt
return ((Projekt) obj).projektthema.get().equals(projektthema.get());
}
+ /**
+ * Get the previous projektthema of this Projekt.
+ *
+ */
+ public String getOldProjektthema()
+ {
+ String tmp = oldProjektthema;
+ oldProjektthema = projektthema.get();
+
+ return tmp;
+ }
} \ No newline at end of file