-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdoorStackInformation.txt
114 lines (88 loc) · 2.71 KB
/
doorStackInformation.txt
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
package views;
import java.util.ArrayList;
import javafx.geometry.Insets;
import javafx.geometry.Pos;
import javafx.scene.Parent;
import javafx.scene.control.Label;
import javafx.scene.control.PasswordField;
import javafx.scene.control.TextField;
import javafx.scene.layout.BorderPane;
import javafx.scene.layout.HBox;
import javafx.scene.layout.VBox;
import mvc.fx.FXController;
import mvc.fx.FXView;
import views.components.AppButton;
import views.components.BackButton;
import views.components.HomeButton;
public class DoorStackInformationView extends FXView
{
public DoorStackInformationView(String newName, FXController newController)
{
super(newController);
construct(newName);
}
BorderPane bp = new BorderPane();
Label topValue;
Label user;
Label userValue;
Label lastChange;
Label lastChangeValue;
Label derive;
Label deriveValue;
Label teamwork;
Label teamworkValue;
HBox top;
HBox ownerInformation;
HBox lastChangeInformation;
HBox deriveInformation;
HBox teamworkInformation;
VBox AllFields;
VBox Bottom;
BackButton back;
HomeButton home;
ArrayList<String> nameOfObject;
@Override
public Parent constructContainer()
{
bp.setId("loginviewbg");
AllFields = new VBox(50);
AllFields.setAlignment(Pos.CENTER);
AllFields.setMaxWidth(300);
AllFields.setPadding(new Insets(20));
top = new HBox();
ownerInformation = new HBox();
lastChangeInformation = new HBox();
deriveInformation = new HBox();
teamworkInformation = new HBox();
AllFields = new VBox();
Bottom = new VBox();
back = new BackButton(getFXController(),"Zurück");
home = new HomeButton(getFXController());
topValue = new Label("");
user = new Label("Besitzer:");
userValue = new Label();
lastChange = new Label("Lezte Änderung:");
lastChangeValue = new Label();
derive = new Label("Derive-Gruppe");
deriveValue = new Label();
teamwork = new Label("Teamwork-Gruppe:");
teamworkValue = new Label();
top.getChildren().addAll(topValue);
ownerInformation.getChildren().addAll(user,userValue);
lastChangeInformation.getChildren().addAll(lastChange,lastChangeValue);
deriveInformation.getChildren().addAll(derive,deriveValue);
teamworkInformation.getChildren().addAll(teamwork,teamworkValue);
Bottom.getChildren().addAll(ownerInformation,lastChangeInformation,deriveInformation,teamworkInformation,back);
AllFields.getChildren().addAll(top,Bottom);
bp.setCenter(AllFields);
//getFXController().getModel("doorstackinfomrationmodel").registerView(this);
return bp;
}
@Override
public void refreshView()
{
bp.setId("loginviewbg");
nameOfObject = getFXController().getModel("doorstackinformationmodel").getDataList("");
topValue.setText(nameOfObject.get(0));
}
}