diff options
Diffstat (limited to 'src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java')
| -rw-r--r-- | src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java b/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java new file mode 100644 index 0000000..efc1a10 --- /dev/null +++ b/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java @@ -0,0 +1,48 @@ +/** + * + */ +package de.fhswf.in.inf.java2.aufgabe05.view; + +import javafx.application.Application; +import javafx.application.Platform; +import javafx.fxml.FXML; +import javafx.scene.control.Alert; +import javafx.scene.control.Alert.AlertType; + + +/** + * TODO Add comment here + * + * @author $Author: $ + * @version $Revision: $, $Date: $ UTC + */ +public class RootLayoutController +{ + @FXML + private void handelBeenden() + { + Platform.exit(); + } + + @FXML + private void handelModena() + { + Application.setUserAgentStylesheet(Application.STYLESHEET_MODENA); + } + + @FXML + private void handelCaspian() + { + Application.setUserAgentStylesheet(Application.STYLESHEET_CASPIAN); + } + + @FXML + private void handelInfo() + { + Alert info = new Alert(AlertType.INFORMATION); + info.setTitle("Info über das Programm"); + info.setHeaderText("Programmierer: Stefan Suhren"); + info.setContentText("Dieses Programm wurde programmiert."); + info.show(); + } +} |
