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
faed44ba
Commit
faed44ba
authored
2 years ago
by
Harry Linrui Xu
Browse files
Options
Downloads
Patches
Plain Diff
Updated faulty pie chart updates
parent
967f7281
No related branches found
No related tags found
4 merge requests
!43
Merging frontend-testing into master
,
!38
"Made progressbar dynamic in accordance to spending. Added balance field....
,
!37
Made the sub progress bars respond to changes in expense
,
!32
Added input validation to add dialog boxes.
Pipeline
#214577
passed
2 years ago
Stage: build
Stage: test
Stage: package
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/main/java/no/ntnu/idatt1002/demo/controller/IncomeExpenseController.java
+5
-2
5 additions, 2 deletions
...nu/idatt1002/demo/controller/IncomeExpenseController.java
with
5 additions
and
2 deletions
src/main/java/no/ntnu/idatt1002/demo/controller/IncomeExpenseController.java
+
5
−
2
View file @
faed44ba
...
...
@@ -401,6 +401,9 @@ public class IncomeExpenseController implements FinanceController {
dialog
.
setTitle
(
dialogTitle
);
// Show the Dialog and wait for the user to close it
dialog
.
showAndWait
();
this
.
incomePieChart
.
setData
(
createIncomePieChart
());
}
@FXML
...
...
@@ -429,7 +432,7 @@ public class IncomeExpenseController implements FinanceController {
// Show the Dialog and wait for the user to close it
dialog
.
showAndWait
();
this
.
expensePieChart
.
setData
(
create
Incom
ePieChart
());
this
.
expensePieChart
.
setData
(
create
Expens
ePieChart
());
}
@FXML
...
...
@@ -447,7 +450,7 @@ public class IncomeExpenseController implements FinanceController {
if
(
isConfirmed
.
isPresent
()
&&
isConfirmed
.
get
()
==
ButtonType
.
OK
)
{
expenseRegister
.
removeItem
(
chosenExpense
);
}
this
.
incom
ePieChart
.
setData
(
create
Incom
ePieChart
());
this
.
expens
ePieChart
.
setData
(
create
Expens
ePieChart
());
}
/**
* Returns an optional, which is a popup alert box, asking for confirmation for deleting an
...
...
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