Skip to content
Snippets Groups Projects
Commit 15119bd5 authored by Harry Linrui XU's avatar Harry Linrui XU
Browse files

Added button that brings up popup, explaining how to

edit or delete income/expense
parent 38da673c
No related branches found
No related tags found
3 merge requests!43Merging frontend-testing into master,!38"Made progressbar dynamic in accordance to spending. Added balance field....,!37Made the sub progress bars respond to changes in expense
......@@ -40,6 +40,15 @@ import no.ntnu.idatt1002.demo.data.Economics.Income;
import no.ntnu.idatt1002.demo.data.Economics.IncomeCategory;
import no.ntnu.idatt1002.demo.data.Economics.IncomeRegister;
/**
* Class for representing an overview of the income and expenses of the users budget.
* Displays information in tables and pie charts. It is possible to add, edit and delete
* income and expenses. The difference of the expense and income sum contribute to
* the monthly budget progress.
* @author Harry Linrui Xu
* @since 30.03.2023
*/
public class IncomeExpenseController implements FinanceController {
private final static String sumText = "Sum: ";
@FXML
......@@ -480,7 +489,6 @@ public class IncomeExpenseController implements FinanceController {
return alert.showAndWait();
}
/**
* Saves the changes made to the tableview by writing the information to a file.
* @throws IOException If an error occurs while writing to the file.
......@@ -491,6 +499,7 @@ public class IncomeExpenseController implements FinanceController {
fileHandling.writeItemRegisterToFile(expenseRegister, "Expense");
}
/**
* Method that either reads data from a file with which it fills an income register, if older changes exist, or instantiates an income register if the file is empty.
* @param fileName The name of the file that is being read from.
......
......@@ -95,6 +95,7 @@
</ImageView>
</graphic>
</MenuButton>
<Button mnemonicParsing="false" text="popup explaining how to edit/delete" />
</children>
<BorderPane.margin>
<Insets left="30.0" />
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment