forked from RamAlapure/JavaFXSpringBootApp
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathUser.fxml
More file actions
196 lines (194 loc) · 8.7 KB
/
User.fxml
File metadata and controls
196 lines (194 loc) · 8.7 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
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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.ContextMenu?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.Menu?>
<?import javafx.scene.control.MenuBar?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.PasswordField?>
<?import javafx.scene.control.RadioButton?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.control.ToggleGroup?>
<?import javafx.scene.effect.DropShadow?>
<?import javafx.scene.layout.BorderPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.layout.VBox?>
<?import javafx.scene.text.Font?>
<BorderPane prefHeight="600.0" prefWidth="1000.0" stylesheets="@../styles/Styles.css" xmlns="http://javafx.com/javafx/8.0.111" xmlns:fx="http://javafx.com/fxml/1" fx:controller="com.codetreatise.controller.UserController">
<top>
<MenuBar BorderPane.alignment="TOP_LEFT">
<menus>
<Menu mnemonicParsing="false" text="File">
<items>
<MenuItem mnemonicParsing="false" onAction="#exit" text="Exit" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Edit">
<items>
<MenuItem mnemonicParsing="false" text="Delete" />
</items>
</Menu>
<Menu mnemonicParsing="false" text="Help">
<items>
<MenuItem mnemonicParsing="false" text="About" />
</items>
</Menu>
</menus>
</MenuBar>
</top>
<left>
<VBox prefHeight="571.0" prefWidth="306.0" spacing="10.0" styleClass="background" stylesheets="@../styles/Styles.css" BorderPane.alignment="CENTER">
<children>
<Label text="Add New User" textFill="WHITE">
<font>
<Font size="20.0" />
</font>
<VBox.margin>
<Insets bottom="10.0" left="20.0" top="30.0" />
</VBox.margin>
</Label>
<HBox prefHeight="30.0" prefWidth="265.0">
<children>
<Label text="User ID - " textFill="#f8f7f7">
<font>
<Font size="15.0" />
</font>
</Label>
<Label fx:id="userId">
<HBox.margin>
<Insets left="25.0" />
</HBox.margin>
</Label>
</children>
<VBox.margin>
<Insets left="25.0" />
</VBox.margin>
</HBox>
<TextField fx:id="firstName" prefHeight="30.0" prefWidth="246.0" promptText="First Name">
<VBox.margin>
<Insets left="25.0" right="25.0" />
</VBox.margin></TextField>
<TextField fx:id="lastName" prefHeight="30.0" prefWidth="246.0" promptText="Last Name">
<VBox.margin>
<Insets left="25.0" right="25.0" />
</VBox.margin></TextField>
<DatePicker fx:id="dob" editable="false" prefHeight="30.0" prefWidth="245.0" promptText="Date of Birth">
<VBox.margin>
<Insets left="25.0" />
</VBox.margin>
</DatePicker>
<HBox alignment="CENTER_LEFT" prefHeight="30.0" prefWidth="255.0" spacing="15.0">
<children>
<RadioButton fx:id="rbMale" mnemonicParsing="false" selected="true" text="Male" textFill="WHITE">
<toggleGroup>
<ToggleGroup fx:id="gender" />
</toggleGroup>
</RadioButton>
<RadioButton fx:id="rbFemale" mnemonicParsing="false" text="Female" textFill="WHITE" toggleGroup="$gender">
<HBox.margin>
<Insets left="10.0" />
</HBox.margin>
</RadioButton>
</children>
<VBox.margin>
<Insets left="25.0" right="25.0" />
</VBox.margin>
</HBox>
<ComboBox fx:id="cbRole" prefHeight="30.0" prefWidth="246.0" promptText="Select Role">
<VBox.margin>
<Insets left="25.0" />
</VBox.margin>
</ComboBox>
<TextField fx:id="email" prefHeight="30.0" prefWidth="246.0" promptText="Email">
<VBox.margin>
<Insets left="25.0" right="25.0" />
</VBox.margin></TextField>
<PasswordField fx:id="password" prefHeight="30.0" prefWidth="246.0" promptText="Password">
<VBox.margin>
<Insets left="25.0" right="25.0" />
</VBox.margin>
</PasswordField>
<HBox prefHeight="30.0" prefWidth="250.0" spacing="10.0">
<children>
<Button fx:id="reset" mnemonicParsing="false" onAction="#reset" prefHeight="30.0" prefWidth="75.0" style="-fx-background-color: white;" text="Reset">
<effect>
<DropShadow blurType="ONE_PASS_BOX" color="#1965d0" />
</effect>
</Button>
<Button fx:id="saveUser" alignment="CENTER" contentDisplay="CENTER" mnemonicParsing="false" onAction="#saveUser" prefHeight="30.0" prefWidth="75.0" styleClass="btnGreen" text="Save" textFill="WHITE">
<font>
<Font size="15.0" />
</font>
<effect>
<DropShadow blurType="ONE_PASS_BOX" color="#6468b2" />
</effect>
</Button>
</children>
<opaqueInsets>
<Insets />
</opaqueInsets>
<VBox.margin>
<Insets left="110.0" />
</VBox.margin>
</HBox>
</children>
<padding>
<Insets bottom="5.0" left="5.0" right="5.0" top="5.0" />
</padding>
<BorderPane.margin>
<Insets />
</BorderPane.margin>
</VBox>
</left>
<center>
<VBox alignment="TOP_RIGHT" prefHeight="571.0" prefWidth="692.0" BorderPane.alignment="CENTER">
<children>
<HBox alignment="TOP_RIGHT" prefHeight="41.0" prefWidth="640.0">
<children>
<Button fx:id="btnLogout" mnemonicParsing="false" onAction="#logout" prefHeight="22.0" prefWidth="70.0" styleClass="background" text="Logout" textFill="#fff9f9" textOverrun="CLIP">
<font>
<Font size="14.0" />
</font>
<HBox.margin>
<Insets right="5.0" top="5.0" />
</HBox.margin>
<effect>
<DropShadow blurType="ONE_PASS_BOX" color="#00000091" />
</effect>
</Button>
</children>
</HBox>
<TableView fx:id="userTable" prefHeight="300.0" prefWidth="679.0" tableMenuButtonVisible="true">
<columns>
<TableColumn fx:id="colUserId" maxWidth="700.0" prefWidth="20.0" text="ID" />
<TableColumn fx:id="colFirstName" maxWidth="4000.0" prefWidth="75.0" text="First Name" />
<TableColumn fx:id="colLastName" maxWidth="4000.0" prefWidth="75.0" text="Last Name" />
<TableColumn fx:id="colDOB" maxWidth="4000.0" prefWidth="75.0" text="Date of Birth" />
<TableColumn fx:id="colGender" maxWidth="4000.0" prefWidth="60.0" text="Gender" />
<TableColumn fx:id="colRole" maxWidth="4000.0" prefWidth="75.0" text="Role" />
<TableColumn fx:id="colEmail" maxWidth="6000.0" prefWidth="130.0" text="Email" />
<TableColumn fx:id="colEdit" maxWidth="3500.0" prefWidth="75.0" text="Edit" />
</columns>
<VBox.margin>
<Insets left="10.0" right="5.0" />
</VBox.margin>
<columnResizePolicy>
<TableView fx:constant="CONSTRAINED_RESIZE_POLICY" />
</columnResizePolicy>
<contextMenu>
<ContextMenu>
<items>
<MenuItem fx:id="deleteUsers" mnemonicParsing="false" onAction="#deleteUsers" text="Delete" />
</items>
</ContextMenu>
</contextMenu>
</TableView>
</children>
</VBox>
</center>
</BorderPane>