diff options
Diffstat (limited to 'src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java')
| -rw-r--r-- | src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java index 0e21ecd..cd0c673 100644 --- a/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java +++ b/src/de/fhswf/in/inf/se/projektthemenvergabe/view/ProjektHinzufuegenController.java @@ -11,6 +11,12 @@ import javafx.scene.control.TextArea; import javafx.scene.control.TextField; import javafx.stage.Stage; +/** + * The controller for the FXML-View ProjektHinzufuegen. + * + * @author Dina-Marie Hanxleden & Stefan Suhren + * @version 1.0 + */ public class ProjektHinzufuegenController { @FXML @@ -49,6 +55,13 @@ public class ProjektHinzufuegenController private boolean wasAborted = true; + /** + * + * Set back reference of the Main. + * + * @param main + * @param projekt + */ public void setMain(Main main, Projekt projekt) { this.projekt = projekt; @@ -134,6 +147,12 @@ public class ProjektHinzufuegenController } } + /** + * + * Getter for the projekt. + * + * @return Returns the projekt + */ public Projekt getProjekt() { if (wasAborted) @@ -143,6 +162,12 @@ public class ProjektHinzufuegenController return projekt; } + /** + * + * Set the Text of the Fields from the stage into the TableView and close + * the projekthinzufuegen stage. + * + */ @FXML private void handleSave() { @@ -163,6 +188,11 @@ public class ProjektHinzufuegenController projekthinzufuegenStage.close(); } + /** + * + * Cancel the projekthinzufuegen stage. + * + */ @FXML private void handleCancel() { |
