-
Notifications
You must be signed in to change notification settings - Fork 0
/
Home.fxml
110 lines (108 loc) · 5.04 KB
/
Home.fxml
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
<?xml version="1.0" encoding="UTF-8"?>
<?import javafx.geometry.Insets?>
<?import javafx.scene.chart.CategoryAxis?>
<?import javafx.scene.chart.LineChart?>
<?import javafx.scene.chart.NumberAxis?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.ListView?>
<?import javafx.scene.control.SplitPane?>
<?import javafx.scene.control.TextField?>
<?import javafx.scene.layout.AnchorPane?>
<?import javafx.scene.layout.HBox?>
<?import javafx.scene.shape.Rectangle?>
<?import javafx.scene.text.Font?>
<AnchorPane prefHeight="517.0" prefWidth="680.0" xmlns="http://javafx.com/javafx/15.0.1" xmlns:fx="http://javafx.com/fxml/1">
<children>
<HBox alignment="CENTER_LEFT" prefHeight="69.0" prefWidth="680.0" spacing="40.0">
<children>
<Label fx:id="username">
<HBox.margin>
<Insets left="20.0" />
</HBox.margin>
<font>
<Font size="24.0" />
</font>
</Label>
<Label fx:id="balance">
<HBox.margin>
<Insets left="20.0" />
</HBox.margin>
<font>
<Font size="24.0" />
</font>
</Label>
<TextField fx:id="key" />
</children>
</HBox>
<SplitPane fx:id="accountsPane" dividerPositions="0.3407079646017699" layoutY="69.0" prefHeight="448.0" prefWidth="680.0">
<items>
<AnchorPane prefHeight="446.0" prefWidth="422.0">
<children>
<ListView fx:id="accountsList" onMouseClicked="#changeAccountSelected" layoutX="-1.0" prefHeight="446.0" prefWidth="228.0" />
</children>
</AnchorPane>
<AnchorPane prefHeight="446.0" prefWidth="430.0">
<children>
<HBox alignment="CENTER" layoutX="-1.0" prefHeight="79.0" prefWidth="443.0" spacing="40.0">
<children>
<Label fx:id="usernameLabel" alignment="CENTER">
<font>
<Font size="24.0" />
</font>
</Label>
<Label fx:id="totalStocksLabel" text="" />
</children>
</HBox>
<HBox alignment="CENTER" layoutY="346.0" prefHeight="100.0" prefWidth="443.0" spacing="40.0">
<children>
<Button fx:id="deleteButton" onMouseClicked="#deleteAccount" mnemonicParsing="false" text="Delete" />
<Button fx:id="blockButton" onMouseClicked="#blockAccount" mnemonicParsing="false" text="Block" />
</children>
</HBox>
</children></AnchorPane>
</items>
</SplitPane>
<SplitPane fx:id="stocksPane" dividerPositions="0.25663716814159293" layoutY="67.0" prefHeight="450.0" prefWidth="680.0">
<items>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="448.0" prefWidth="217.0">
<children>
<ListView fx:id="stocksList" onMouseClicked="#changeStockSelected" prefHeight="458.0" prefWidth="174.0" />
</children>
</AnchorPane>
<AnchorPane minHeight="0.0" minWidth="0.0" prefHeight="160.0" prefWidth="100.0">
<children>
<HBox alignment="CENTER" prefHeight="69.0" prefWidth="500.0" spacing="40.0">
<children>
<Label fx:id="stockTitle">
<font>
<Font size="24.0" />
</font>
</Label>
<Rectangle fx:id="stockTrending" arcHeight="5.0" arcWidth="5.0" fill="#07bc07" height="12.0" stroke="TRANSPARENT" strokeType="INSIDE" width="11.0" />
<Label fx:id="ownedStock" text="owned:">
<font>
<Font size="14.0" />
</font>
</Label>
</children>
</HBox>
<LineChart fx:id="stockChart" layoutY="66.0" prefHeight="317.0" prefWidth="500.0">
<xAxis>
<CategoryAxis side="BOTTOM" />
</xAxis>
<yAxis>
<NumberAxis side="LEFT" />
</yAxis>
</LineChart>
<HBox alignment="CENTER" layoutX="16.0" layoutY="372.0" prefHeight="69.0" prefWidth="471.0" spacing="40.0">
<children>
<Button fx:id="buyStockButton" mnemonicParsing="false" onMouseClicked="#buyStock" text="buy" />
<Button fx:id="sellStockButton" mnemonicParsing="false" onMouseClicked="#sellStock" text="sell" />
</children>
</HBox>
</children></AnchorPane>
</items>
</SplitPane>
</children>
</AnchorPane>