-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAboutController.java
More file actions
85 lines (67 loc) · 2.69 KB
/
Copy pathAboutController.java
File metadata and controls
85 lines (67 loc) · 2.69 KB
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
package wf.view;
import javafx.fxml.FXML;
import javafx.scene.control.Button;
import javafx.scene.control.ButtonBar;
import javafx.scene.control.Label;
import javafx.scene.control.Separator;
import javafx.scene.image.Image;
import javafx.scene.image.ImageView;
import javafx.scene.layout.AnchorPane;
import javafx.scene.layout.GridPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.StackPane;
import javafx.scene.layout.VBox;
import wf.Main;
public class AboutController {
@FXML private AnchorPane about_ap;
@FXML private AnchorPane bottom_ap;
@FXML private AnchorPane top_ap;
@FXML private Button close_bt;
@FXML private ButtonBar bar_bb;
@FXML private GridPane info_gp;
@FXML private HBox about_hb;
@FXML private Label title_lb;
@FXML private Label developer_lb;
@FXML private Label developerValue_lb;
@FXML private Label version_lb;
@FXML private Label versionValue_lb;
@FXML private Label contact_lb;
@FXML private Label contactValue_lb;
@FXML private Separator north_sp;
@FXML private Separator south_sp;
@FXML private StackPane left_sp;
@FXML private StackPane right_sp;
@FXML private VBox about_vb;
//private final Image logo = new Image(getClass().getResourceAsStream("/de/gsi/fcc/applications/frs_devconf_app/view/images/DevConfLogo.png"), 180, 180, true, true);
private final Image logo = new Image(Main.class.getResourceAsStream("/Resources/wa_logo.jpg"), 240, 240, true, true);
private final ImageView imageView = new ImageView();
@FXML
public void initialize() {
initStyle();
imageView.setImage(logo);
left_sp.getChildren().add(imageView);
}
@FXML
private void exitAction() {
about_ap.getScene().getWindow().hide();
}
private void initStyle() {
about_vb.setStyle(" -fx-background-color: FloralWhite;");
about_hb.setStyle(" -fx-background-color: FloralWhite;");
close_bt.setId("button_bevel-grey");
title_lb.setId("appTitle");
developer_lb.setId("labelDecoratedNoBkG");
developerValue_lb.setId("labelDecoratedNoBkG");
version_lb.setId("labelDecoratedNoBkG");
versionValue_lb.setId("labelDecoratedNoBkG");
contact_lb.setId("labelDecoratedNoBkG");
contactValue_lb.setId("labelDecoratedNoBkG");
top_ap.setId("topLayoutContainer");
bottom_ap.setId("bottomLayoutContainer");
about_ap.setId("appBackground");
left_sp.setStyle("-fx-border-color: gray; -fx-border-width: 1; -fx-background-color: FloralWhite;");
right_sp.setStyle("-fx-border-color: gray; -fx-border-width: 0; -fx-background-color: FloralWhite;");
north_sp.setStyle("-fx-border-style: solid; -fx-border-width: 0.1px;");
south_sp.setStyle("-fx-border-style: solid; -fx-border-width: 0.1px;");
}
}