Skip to content

Commit

Permalink
Re-initialised classes in the correct manner, and implemented parts o…
Browse files Browse the repository at this point in the history
…f UpdateViewUCI class.
  • Loading branch information
YinLingithub committed Jul 22, 2023
1 parent a4c45ac commit 65ea7d2
Show file tree
Hide file tree
Showing 15 changed files with 93 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/main/java/use_cases/monthly_menu/MonthMenuOB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package use_cases.monthly_menu;

public interface MonthMenuOB {
}
4 changes: 4 additions & 0 deletions src/main/java/use_cases/monthly_menu/MonthMenuOD.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package use_cases.monthly_menu;

public class MonthMenuOD {
}
36 changes: 36 additions & 0 deletions src/main/java/use_cases/monthly_menu/UpdateViewUCI.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
package use_cases.monthly_menu;

import entities.EntityException;
import entities.Expense;
import entities.MonthlyStorage;
import entities.SessionStorage;
import views.monthly_menu.MonthMenuP;

import java.util.ArrayList;

/**
* The UpdateViewUCI
*/
public class UpdateViewUCI {
private Object[][] expenseList;
private Object[][] categoryList;

public UpdateViewUCI(SessionStorage session, int monthID){
// create expenseList and categoryList
try{
MonthlyStorage monthData = session.getMonthlyData(monthID);

ArrayList<Expense> expenseData = monthData.getExpenseData();
int expenseNum = expenseData.size();
Object[][] expenses = new Object[expenseNum][2];
}
catch(EntityException e){
// exception should not occur?
}
}

public void creatOutput(){

}

}
6 changes: 6 additions & 0 deletions src/main/java/views/monthly_menu/AddCategoryP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
package views.monthly_menu;

import use_cases.monthly_menu.MonthMenuOB;

public class AddCategoryP {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/AddCategoryVB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public interface AddCategoryVB {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/AddExpenseP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public class AddExpenseP {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/AddExpenseVB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public interface AddExpenseVB {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/EditCategoryP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public class EditCategoryP {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/EditCategoryVB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public interface EditCategoryVB {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/EditExpenseP.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public class EditExpenseP {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/EditExpenseVB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public interface EditExpenseVB {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/MonthMenuC.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public class MonthMenuC {
}
4 changes: 3 additions & 1 deletion src/main/java/views/monthly_menu/MonthMenuP.java
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
package views.monthly_menu;

public class MonthMenuP {
import use_cases.monthly_menu.MonthMenuOB;

public class MonthMenuP implements MonthMenuOB {
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/MonthMenuV.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public class MonthMenuV implements MonthMenuVB{
}
4 changes: 4 additions & 0 deletions src/main/java/views/monthly_menu/MonthMenuVB.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
package views.monthly_menu;

public interface MonthMenuVB {
}

0 comments on commit 65ea7d2

Please sign in to comment.