summaryrefslogtreecommitdiffstats
path: root/src/de/fhswf/in/inf/java2/aufgabe05/view/RootLayoutController.java
blob: efc1a108f7a0a017de3a8f54109bdc35130c8b90 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
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();
   }
}