-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Re-initialised classes in the correct manner, and implemented parts o…
…f UpdateViewUCI class.
- Loading branch information
1 parent
a4c45ac
commit 65ea7d2
Showing
15 changed files
with
93 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package use_cases.monthly_menu; | ||
|
||
public interface MonthMenuOB { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package use_cases.monthly_menu; | ||
|
||
public class MonthMenuOD { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(){ | ||
|
||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public interface AddCategoryVB { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public class AddExpenseP { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public interface AddExpenseVB { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public class EditCategoryP { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public interface EditCategoryVB { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public class EditExpenseP { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public interface EditExpenseVB { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public class MonthMenuC { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public class MonthMenuV implements MonthMenuVB{ | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
package views.monthly_menu; | ||
|
||
public interface MonthMenuVB { | ||
} |