Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
idatt1002_2023_9
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Andreas Kluge Svendsrud
idatt1002_2023_9
Commits
8a5337ff
Commit
8a5337ff
authored
1 year ago
by
Harry Linrui XU
Browse files
Options
Downloads
Patches
Plain Diff
Made nodes in the two FXML files more common, as they share the same controller
parent
5bdfe7ee
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!43
Merging frontend-testing into master
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/main/resources/view/IncomeAndExpenses.fxml
+1
-6
1 addition, 6 deletions
src/main/resources/view/IncomeAndExpenses.fxml
src/main/resources/view/dualList.fxml
+15
-9
15 additions, 9 deletions
src/main/resources/view/dualList.fxml
with
16 additions
and
15 deletions
src/main/resources/view/IncomeAndExpenses.fxml
+
1
−
6
View file @
8a5337ff
...
...
@@ -10,7 +10,6 @@
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.ProgressBar?>
<?import javafx.scene.control.TableColumn?>
<?import javafx.scene.control.TableView?>
<?import javafx.scene.image.Image?>
...
...
@@ -103,11 +102,7 @@
</HBox>
</left>
<right>
<Pane
BorderPane.alignment=
"CENTER"
>
<children>
<ProgressBar
fx:id=
"budgetProgress"
prefWidth=
"200.0"
progress=
"0.0"
/>
</children>
</Pane>
<Pane
BorderPane.alignment=
"CENTER"
/>
</right>
<opaqueInsets>
<Insets
/>
...
...
This diff is collapsed.
Click to expand it.
src/main/resources/view/dualList.fxml
+
15
−
9
View file @
8a5337ff
...
...
@@ -2,8 +2,11 @@
<?import javafx.geometry.Insets?>
<?import javafx.scene.Cursor?>
<?import javafx.scene.chart.PieChart?>
<?import javafx.scene.control.Button?>
<?import javafx.scene.control.ComboBox?>
<?import javafx.scene.control.DatePicker?>
<?import javafx.scene.control.Label?>
<?import javafx.scene.control.MenuButton?>
<?import javafx.scene.control.MenuItem?>
<?import javafx.scene.control.TableColumn?>
...
...
@@ -57,7 +60,7 @@
</StackPane>
<StackPane>
<children>
<TableView
fx:id=
"
expens
eTableView"
minWidth=
"300.0"
prefHeight=
"260.0"
prefWidth=
"485.0"
>
<TableView
fx:id=
"
incom
eTableView"
minWidth=
"300.0"
prefHeight=
"260.0"
prefWidth=
"485.0"
>
<columns>
<TableColumn
fx:id=
"inDateCol"
prefWidth=
"75.0"
text=
"Date"
/>
<TableColumn
fx:id=
"inAmountCol"
prefWidth=
"75.0"
text=
"Amount"
/>
...
...
@@ -70,6 +73,7 @@
</columnResizePolicy>
</TableView>
<Rectangle
arcHeight=
"5.0"
arcWidth=
"5.0"
disable=
"true"
fill=
"LIME"
height=
"234.0"
opacity=
"0.1"
stroke=
"#d9cccc"
strokeType=
"INSIDE"
translateY=
"13.0"
width=
"300.0"
/>
<PieChart
fx:id=
"incomePieChart"
disable=
"true"
opacity=
"0.0"
prefHeight=
"1.0"
prefWidth=
"1.0"
visible=
"false"
/>
</children>
</StackPane>
<StackPane>
...
...
@@ -77,13 +81,13 @@
<Rectangle
arcHeight=
"5.0"
arcWidth=
"5.0"
fill=
"#f8f8f8"
height=
"18.0"
stroke=
"#d9cccc"
strokeType=
"INSIDE"
width=
"300.0"
StackPane.alignment=
"TOP_LEFT"
/>
<HBox
prefHeight=
"18.0"
prefWidth=
"517.0"
>
<children>
<Text
fx:id=
"inSum"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Sum: "
>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Sum: "
>
<HBox.margin>
<Insets
left=
"2.0"
/>
</HBox.margin>
</Text>
<Region
prefHeight=
"18.0"
prefWidth=
"74.0"
/>
<
Text
fx:id=
"
s
um"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"
Text
"
/>
<
Label
fx:id=
"
inS
um"
text=
"
Label
"
/>
</children>
</HBox>
</children>
...
...
@@ -100,7 +104,7 @@
</StackPane>
<StackPane>
<children>
<TableView
fx:id=
"expenseTableView
1
"
minWidth=
"300.0"
prefHeight=
"260.0"
prefWidth=
"485.0"
>
<TableView
fx:id=
"expenseTableView"
minWidth=
"300.0"
prefHeight=
"260.0"
prefWidth=
"485.0"
>
<columns>
<TableColumn
fx:id=
"expDateCol"
prefWidth=
"75.0"
text=
"Date"
/>
<TableColumn
fx:id=
"expAmountCol"
prefWidth=
"75.0"
text=
"Amount"
/>
...
...
@@ -113,6 +117,7 @@
</columnResizePolicy>
</TableView>
<Rectangle
arcHeight=
"5.0"
arcWidth=
"5.0"
disable=
"true"
fill=
"RED"
height=
"234.0"
opacity=
"0.1"
stroke=
"RED"
strokeType=
"INSIDE"
translateY=
"13.0"
width=
"300.0"
/>
<PieChart
fx:id=
"expensePieChart"
disable=
"true"
opacity=
"0.0"
prefHeight=
"1.0"
prefWidth=
"1.0"
visible=
"false"
/>
</children>
</StackPane>
<StackPane>
...
...
@@ -120,13 +125,13 @@
<Rectangle
arcHeight=
"5.0"
arcWidth=
"5.0"
fill=
"#f8f8f8"
height=
"18.0"
stroke=
"#d9cccc"
strokeType=
"INSIDE"
width=
"300.0"
StackPane.alignment=
"TOP_LEFT"
/>
<HBox
prefHeight=
"18.0"
prefWidth=
"517.0"
>
<children>
<Text
fx:id=
"expSum"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Sum: "
>
<Text
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Sum: "
>
<HBox.margin>
<Insets
left=
"2.0"
/>
</HBox.margin>
</Text>
<Region
prefHeight=
"18.0"
prefWidth=
"74.0"
/>
<
Text
fx:id=
"
sum1"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0
"
text=
"
Text
"
/>
<
Label
fx:id=
"
expSum
"
text=
"
Label
"
/>
</children>
</HBox>
</children>
...
...
@@ -170,7 +175,7 @@
</ComboBox>
</children>
</VBox>
<Button
fx:id=
"
return
Btn"
mnemonicParsing=
"false"
onAction=
"#
returnToMainMenu
"
prefWidth=
"150.0"
text=
"Continue"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
>
<Button
fx:id=
"
continue
Btn"
mnemonicParsing=
"false"
onAction=
"#
switchScene
"
prefWidth=
"150.0"
text=
"Continue"
GridPane.columnIndex=
"1"
GridPane.rowIndex=
"2"
>
<GridPane.margin>
<Insets
bottom=
"5.0"
/>
</GridPane.margin>
...
...
@@ -190,7 +195,7 @@
</HBox.margin>
</Text>
<Region
prefHeight=
"18.0"
prefWidth=
"100.0"
/>
<
Text
fx:id=
"
sum11"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0
"
text=
"
Text
"
/>
<
Label
fx:id=
"
maxAmount
"
text=
"
Label
"
/>
</children>
<StackPane.margin>
<Insets
bottom=
"4.0"
/>
...
...
@@ -202,11 +207,12 @@
</GridPane>
</children>
</VBox>
<Button
layoutX=
"14.0"
layoutY=
"14.0"
mnemonicParsing=
"false"
text=
"Return"
/>
<Button
fx:id=
"returnBtn"
layoutX=
"14.0"
layoutY=
"14.0"
mnemonicParsing=
"false"
onAction=
"#switchScene"
text=
"Return"
/>
<Text
layoutX=
"197.0"
layoutY=
"60.0"
strokeType=
"OUTSIDE"
strokeWidth=
"0.0"
text=
"Income/Expenses"
textAlignment=
"CENTER"
>
<font>
<Font
size=
"48.0"
/>
</font>
</Text>
<DatePicker
fx:id=
"date"
disable=
"true"
layoutX=
"340.0"
layoutY=
"473.0"
visible=
"false"
/>
</children>
</AnchorPane>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment