summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java
diff options
context:
space:
mode:
authorStefan Suhren <suhren.stefan@fh-swf.de>2015-05-04 22:11:28 +0200
committerStefan Suhren <suhren.stefan@fh-swf.de>2015-05-04 22:11:28 +0200
commit3b5728de6f2d8d2852fbb86fa8cac21e6dccc19b (patch)
tree54965319a9aafeb294dac8e36e4ce1371ec76ef3 /src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java
parentaf7b9bd6a962b9a290fc5d78c08c83653961811f (diff)
downloadJava2-3b5728de6f2d8d2852fbb86fa8cac21e6dccc19b.tar.gz
Java2-3b5728de6f2d8d2852fbb86fa8cac21e6dccc19b.zip
Build a file browser looking like Finder
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.java48
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();
+ }
+}