diff --git a/reports/JavaDoc/Main.html b/reports/JavaDoc/Main.html index 39001b0..26c630e 100644 --- a/reports/JavaDoc/Main.html +++ b/reports/JavaDoc/Main.html @@ -2,10 +2,10 @@ - + Main - + diff --git a/reports/JavaDoc/allclasses-index.html b/reports/JavaDoc/allclasses-index.html index 6a1f054..8781987 100644 --- a/reports/JavaDoc/allclasses-index.html +++ b/reports/JavaDoc/allclasses-index.html @@ -2,10 +2,10 @@ - + All Classes - + @@ -28,7 +28,7 @@ catch(err) { } //--> -var data = {"i0":2,"i1":2,"i2":2,"i3":2,"i4":1,"i5":2,"i6":1,"i7":2,"i8":2,"i9":2,"i10":2,"i11":2,"i12":2,"i13":2,"i14":8,"i15":2,"i16":2,"i17":1,"i18":2,"i19":1,"i20":2,"i21":2,"i22":2,"i23":2,"i24":2,"i25":2,"i26":2,"i27":2,"i28":1,"i29":2,"i30":1,"i31":2,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":2,"i38":1,"i39":2,"i40":2,"i41":2,"i42":2,"i43":2,"i44":2,"i45":1,"i46":2,"i47":2,"i48":2,"i49":2,"i50":1,"i51":2,"i52":1,"i53":2,"i54":2,"i55":2,"i56":2,"i57":2,"i58":2,"i59":8,"i60":1,"i61":2,"i62":1,"i63":2,"i64":1,"i65":1,"i66":2,"i67":2,"i68":2,"i69":2,"i70":1,"i71":2,"i72":1,"i73":2,"i74":2,"i75":2,"i76":2,"i77":1,"i78":2,"i79":2,"i80":1,"i81":2,"i82":2,"i83":2}; +var data = {"i0":2,"i1":2,"i2":2,"i3":2,"i4":2,"i5":2,"i6":2,"i7":1,"i8":2,"i9":1,"i10":2,"i11":2,"i12":2,"i13":2,"i14":2,"i15":8,"i16":2,"i17":2,"i18":2,"i19":2,"i20":2,"i21":1,"i22":2,"i23":1,"i24":2,"i25":2,"i26":2,"i27":2,"i28":2,"i29":1,"i30":2,"i31":1,"i32":2,"i33":2,"i34":2,"i35":2,"i36":2,"i37":1,"i38":2,"i39":2,"i40":2,"i41":2,"i42":2,"i43":1,"i44":2,"i45":2,"i46":2,"i47":1,"i48":2,"i49":2,"i50":2,"i51":1,"i52":2,"i53":1,"i54":2,"i55":2,"i56":2,"i57":2,"i58":2,"i59":8,"i60":1,"i61":2,"i62":1,"i63":2,"i64":1,"i65":2,"i66":2,"i67":2,"i68":1,"i69":2,"i70":1,"i71":2,"i72":2,"i73":2,"i74":1,"i75":2,"i76":1,"i77":2,"i78":2}; var tabs = {65535:["t0","All Classes"],1:["t1","Interface Summary"],2:["t2","Class Summary"],8:["t4","Exception Summary"]}; var altColor = "altColor"; var rowColor = "rowColor"; @@ -112,15 +112,15 @@

All Classes

Description -AddCategoryV +AddCategoryView -
A view class for the AddCategoryV that extends Component class and implements ActionListener interface.
+
A view class for the AddCategoryView that extends Component class and implements ActionListener interface.
-AddExpenseV +AddExpenseView -
A view class for the AddExpenseV that extends Component class and implements ActionListener interface.
+
A view class for the AddExpenseView that extends Component class and implements ActionListener interface.
@@ -130,329 +130,331 @@

All Classes

-CategoryC +CategoryController -
CategoryC passes in user input information in the form of CategoryID.
+
CategoryController passes in user input information in the form of CategoryInputData.
-CategoryIB +CategoryCreatorInputData -
CategoryIB passes in user input of category information in the form of CategoryID.
+
A class that holds the input data for use by the CategoryFactory.
-CategoryID +CategoryEditorInputData -
CategoryID contains all user inputs.
+
A class that holds the input data for use by the CategoryFactory.
-CategoryOB +CategoryFactory -
An interface CategoryOB passes CategoryOD created in success or fail attempts.
+
A class that creates and edits a Category.
-CategoryOD +CategoryInputBoundary -
CategoryOD passes a String message (from CategoryP) resulting from the success or fail add/edit category attempt.
+
CategoryInputBoundary passes in user input of category information in the form of CategoryInputData.
-CategoryP +CategoryInputData -
CategoryP notifies success/fail to add or edit category, implements CategoryOB.
+
CategoryInputData contains all user inputs.
-CategoryTest +CategoryOutputBoundary -
A class that tests the Category class.
+
An interface CategoryOutputBoundary passes CategoryOutputData created in success or fail attempts.
-CategoryUCI +CategoryOutputData -
The CategoryUCI adds/creates new category, edits an existing category, and updates MonthlyStorage.categoryData.
+
CategoryOutputData passes a String message (from CategoryPresenter) resulting from the success or fail add/edit category attempt.
-CategoryUCITest +CategoryPresenter -
CategoryUCITest contains tests for the Category use cases (add and edit category).
+
CategoryPresenter notifies success/fail to add or edit category, implements CategoryOutputBoundary.
-EditCategoryV +CategoryUseCaseInteractor -
View class for the EditCategoryV that extends Component class and implements ActionListener interface.
+
The CategoryUseCaseInteractor adds/creates new category, edits an existing category, and updates MonthlyStorage.categoryData.
-EditExpenseV +EditCategoryView -
View class for the EditExpenseV that extends Component class and implements ActionListener interface.
+
View class for the EditCategoryView that extends Component class and implements ActionListener interface.
+EditExpenseView + +
View class for the EditExpenseView that extends Component class and implements ActionListener interface.
+ + + EntityException
An exception thrown in response to an error creating one of the base entities, specified by message.
- + Expense
A class that will store all the data associated with an Expense.
- -ExpenseC -  - -ExpenseInputBoundary - -
ExpenseInputBoundary passes in user input of expense information in the form of ExpenseID.
- +ExpenseController +  -ExpenseID +ExpenseCreatorInputData -
ExpenseID contains all user inputs.
+
A class that holds the input data for use by the ExpenseFactory.
-ExpenseOB +ExpenseEditorInputData -
An interface ExpenseOB containing methods implemented in ExpenseP.
+
A class that holds the input data for use by the ExpenseFactory.
-ExpenseOD +ExpenseFactory -
ExpenseOD passes a String message (from ExpenseP) resulting from the success or fail add/edit Expense attempt.
+
A class that creates an Expense.
-ExpenseP +ExpenseInputBoundary -
ExpenseP notifies success/fail to add or edit expense, implements ExpenseOB.
+
ExpenseInputBoundary passes in user input of expense information in the form of ExpenseInputData.
-ExpenseTest +ExpenseInputData -
A class that tests the Expense class.
+
ExpenseInputData contains all user inputs.
-ExpenseUCI -  +ExpenseOutputBoundary + +
An interface ExpenseOutputBoundary containing methods implemented in ExpensePresenter.
+ -ExpenseUCITest -  +ExpenseOutputData + +
ExpenseOutputData passes a String message (from ExpensePresenter) resulting from the success or fail add/edit Expense attempt.
+ -FileSessionStorage +ExpensePresenter -
A storage system for loading and saving SessionLoad to files.
+
ExpensePresenter notifies success/fail to add or edit expense, implements ExpenseOutputBoundary.
-FileSessionStorageTest - -
Tests the FileSessionStorage class
- +ExpenseUseCaseInteractor +  -GenerateSummaryC +FileSessionStorage -
A class that creates the GenerateSummaryID input data and calls the GenerateSummaryUCI interactor's method to - generate the graphical summary.
+
A storage system for loading and saving SessionLoad to files.
-GenerateSummaryIB +GenerateSummaryController -
An interface that the GenerateSummaryUCI interactor implements to maintain the dependency inversion principle.
+
A class that creates the GenerateSummaryInputData input data and calls the GenerateSummaryUseCaseInteractor interactor's method to + generate the graphical summary.
-GenerateSummaryID +GenerateSummaryInputBoundary -
A class that holds the input data for use by the interactor.
+
An interface that the GenerateSummaryUseCaseInteractor interactor implements to maintain the dependency inversion principle.
-GenerateSummaryOB +GenerateSummaryInputData -
An interface that the GenerateSummaryP presenter implements to maintain the dependency inversion principle.
+
A class that holds the input data for use by the interactor.
-GenerateSummaryOD +GenerateSummaryOutputBoundary -
A class that holds the output data for use by the GenerateSummaryV.
+
An interface that the GenerateSummaryPresenter presenter implements to maintain the dependency inversion principle.
-GenerateSummaryP +GenerateSummaryOutputData -
A class that returns the GenerateSummaryOD output data given the remainder and statistical data.
+
A class that holds the output data for use by the GenerateSummaryView.
-GenerateSummaryUCI +GenerateSummaryPresenter -
A class that calls GenerateSummaryP presenter and GenerateSummaryUCInterpreter interpreter to execute the steps in - generating the information for the graphical summary.
+
A class that returns the GenerateSummaryOutputData output data given the remainder and statistical data.
-GenerateSummaryUCInterpreter +GenerateSummaryUseCaseInteractor -
A class that generates all the data in the correct format to make the Bar Graph and Pie Chart.
+
A class that calls GenerateSummaryPresenter presenter and GenerateSummaryUseCaseInterpreter interpreter to execute the steps in + generating the information for the graphical summary.
-GenerateSummaryUCInterpreterTest +GenerateSummaryUseCaseInterpreter -
A class that tests the GenerateSummaryUCInterpreter class.
+
A class that generates all the data in the correct format to make the Bar Graph and Pie Chart.
-GenerateSummaryUCITest - -
A class that tests the GenerateSummaryUCI.
- - - -GenerateSummaryV +GenerateSummaryView
A class that displays and generates the Bar Graph and Pie Chart given the remainder and statistical data.
- -LoadMonthMenuVB + +LoadMonthMenuViewBoundary   - + Main   - + MainMenuC
The controller class for the main menu.
- + MainMenuP
The presenter class for the main menu.
- + MainMenuV
The main menu screen.
- + MonthlyStorage
A class that will store all the user data for a month.
+ +MonthMenuOutputBoundary + +
The output boundary interface for creating the Month Menu.
+ + -MonthlyStorageTest +MonthMenuOutputData -
A class that tests the MonthlyStorage class.
+
The output data class for storing view output.
-MonthMenuOB +MonthMenuPresenter -
The output boundary interface for creating the Month Menu.
+
The presenter class for creating the Month Menu view.
-MonthMenuOD +MonthMenuView -
The output data class for storing view output.
+
The view class for creating/updating the Month Menu view.
-MonthMenuP +MonthObject -
The presenter class for creating the Month Menu view.
+
An interface that objects belonging to the MonthlyStorage implement.
-MonthMenuV +MonthObjectFactory -
The view class for creating/updating the Month Menu view.
+
An abstract class that contains the method needed to create and edit a MonthObject.
-NewMonthC +MonthObjectFactoryInputData -
The controller class for creating new MonthlyStorage.
+
An abstract class that other concrete CreatorInputData and EditorInputData classes extend.
-NewMonthIB +NewMonthController -
The input boundary interface for creating a new MonthlyStorage.
+
The controller class for creating new MonthlyStorage.
-NewMonthID +NewMonthInputBoundary -
The input data class for storing Create New Month use case inputs.
+
The input boundary interface for creating a new MonthlyStorage.
-NewMonthOB +NewMonthInputData -
The output boundary interface for creating a mew MonthlyStorage.
+
The input data class for storing Create New Month use case inputs.
-NewMonthOD +NewMonthOutputBoundary -
The output data class for storing view output.
+
The output boundary interface for creating a mew MonthlyStorage.
-NewMonthP +NewMonthOutputData -
The presenter class for creating new MonthlyStorage.
+
The output data class for storing view output.
-NewMonthUCI +NewMonthPresenter -
The use case interactor class for creating a new MonthlyStorage.
+
The presenter class for creating new MonthlyStorage.
-NewMonthUCITest +NewMonthUseCaseInteractor -
Tests the NewMonthUCI class.
+
The use case interactor class for creating a new MonthlyStorage.
-NewMonthV +NewMonthView
The view class for creating new MonthlyStorage.
-SessionLoadC +SessionLoadController
The controller class for the session load menu.
@@ -464,160 +466,129 @@

All Classes

-SessionLoadIB +SessionLoadInputBoundary
The input boundary interface for loading sessions - The SessionLoadUCI interactor class implements this interface and it is called by - the SessionLoadC controller class
+ The SessionLoadUseCaseInteractor interactor class implements this interface, and it is called by + the SessionLoadController controller class -SessionLoadID +SessionLoadInputData
The input data used by the interactor to load a session.
-SessionLoadMainMenuVB +SessionLoadMainMenuViewBoundary
A view boundary interface to open up the main menu and display a success message - The MainMenuV view class implements this interface, and it is called by the SessionLoadMenuV + The MainMenuV view class implements this interface, and it is called by the SessionLoadMenuView class to switch over to the main menu after loading the session
-SessionLoadMenuV +SessionLoadMenuView
The session load menu screen.
-SessionLoadMenuVB - -
A view boundary interface to display a success or error message when loading a session - The SessionLoadMenuV view class implements this interface
- - - -SessionLoadOB +SessionLoadOutputBoundary
The output boundary interface for displaying the result of loading a session - The SessionLoadP presenter class implements this interface and it is called by - the SessionLoadUCI interactor class
+ The SessionLoadPresenter presenter class implements this interface, and it is called by + the SessionLoadUseCaseInteractor interactor class - -SessionLoadOD + +SessionLoadOutputData
The output data used by the view to display the results of loading a session.
- -SessionLoadP + +SessionLoadPresenter
The presenter class for loading a session.
- -SessionLoadUCI + +SessionLoadUseCaseInteractor
The use case interactor for loading a session.
- -SessionLoadUCITest - -
Tests the SessionLoadUCI class
- - - -SessionSaveIB + +SessionSaveInputBoundary
The input boundary interface for saving sessions - The SessionSaveUCI interactor class implements this interface, and it is called by + The SessionSaveUseCaseInteractor interactor class implements this interface, and it is called by the SessionSaveC controller class
- -SessionSaveID + +SessionSaveInputData
The input data used by the interactor to save a session.
- -SessionSaveOB + +SessionSaveOutputBoundary
The output boundary interface for saving sessions.
- -SessionSaveOD + +SessionSaveOutputData
The output data used by the view to display the results of saving a session.
- -SessionSaveUCI + +SessionSaveUseCaseInteractor
The use case interactor for saving a session to a serialized file - This class implements the SessionSaveIB interface and is the one responsible for + This class implements the SessionSaveInputBoundary interface and is the one responsible for doing the file storage
- -SessionSaveUCITest - -
Tests the SessionSaveUCI class
- - - + SessionStorage
A class that will store all the user data for a session.
- -SessionStorageG + +SessionStorageGateway
A gateway interface for saving and loading sessions from files.
- -SessionStorageTest - -
A class that tests the SessionStorage class.
- - - -UpdateViewC + +UpdateViewController
The controller class for getting the Month Menu output.
- -UpdateViewIB + +UpdateViewInputBoundary
The input boundary interface for creating the Month Menu.
- -UpdateViewID + +UpdateViewInputData
The input data class for storing Month Menu use case inputs.
- -UpdateViewUCI + +UpdateViewUseCaseInteractor
The use case interactor class for creating the Month Menu output.
- -UpdateViewUCITest - -
Tests the UpdateViewUCI class.
- - diff --git a/reports/JavaDoc/allclasses.html b/reports/JavaDoc/allclasses.html index 9455f60..08ed1cb 100644 --- a/reports/JavaDoc/allclasses.html +++ b/reports/JavaDoc/allclasses.html @@ -2,10 +2,10 @@ - + All Classes - + @@ -23,90 +23,85 @@

All Classes

diff --git a/reports/JavaDoc/allpackages-index.html b/reports/JavaDoc/allpackages-index.html index af37470..ceeb97d 100644 --- a/reports/JavaDoc/allpackages-index.html +++ b/reports/JavaDoc/allpackages-index.html @@ -2,10 +2,10 @@ - + All Packages - + diff --git a/reports/JavaDoc/constant-values.html b/reports/JavaDoc/constant-values.html index 81ee670..deae579 100644 --- a/reports/JavaDoc/constant-values.html +++ b/reports/JavaDoc/constant-values.html @@ -2,10 +2,10 @@ - + Constant Field Values - + diff --git a/reports/JavaDoc/deprecated-list.html b/reports/JavaDoc/deprecated-list.html index a0d9b76..7ff0b37 100644 --- a/reports/JavaDoc/deprecated-list.html +++ b/reports/JavaDoc/deprecated-list.html @@ -2,10 +2,10 @@ - + Deprecated List - + diff --git a/reports/JavaDoc/entities/Category.html b/reports/JavaDoc/entities/Category.html index fd37b32..adfca16 100644 --- a/reports/JavaDoc/entities/Category.html +++ b/reports/JavaDoc/entities/Category.html @@ -2,10 +2,10 @@ - + Category - + @@ -90,13 +90,13 @@ @@ -133,13 +133,14 @@

Class Category

  • All Implemented Interfaces:
    -
    java.io.Serializable
    +
    MonthObject, java.io.Serializable

    public class Category
     extends java.lang.Object
    -implements java.io.Serializable
    -
    A class that will store all the data associated with a Category. This includes a name and budget.
    +implements MonthObject, java.io.Serializable +
    A class that will store all the data associated with a Category. This includes a name and budget. + It implements the MonthObject interface, which allows for it to be created using a MonthObjectFactory.
    See Also:
    Serialized Form
    @@ -150,34 +151,6 @@

    Class Category

    • - -
      -
        -
      • - - -

        Field Summary

        - - - - - - - - - - - - - - - - - -
        Fields 
        Modifier and TypeFieldDescription
        private doublebudget 
        private java.lang.Stringname 
        -
      • -
      -
        @@ -239,14 +212,14 @@

        Method Summary

        void -setBudget​(double new_budget) +setBudget​(double newBudget)
        Sets the budget of this Category.
        void -setName​(java.lang.String new_name) +setName​(java.lang.String name)
        Sets the name of this Category.
        @@ -268,34 +241,6 @@

        Methods inherited from class java.lang.Object

        • - -
          -
            -
          • - - -

            Field Detail

            - - - -
              -
            • -

              name

              -
              private java.lang.String name
              -
            • -
            - - - -
              -
            • -

              budget

              -
              private double budget
              -
            • -
            -
          • -
          -
            @@ -335,11 +280,13 @@

            Method Detail

            • setName

              -
              public void setName​(java.lang.String new_name)
              +
              public void setName​(java.lang.String name)
              Sets the name of this Category.
              +
              Specified by:
              +
              setName in interface MonthObject
              Parameters:
              -
              new_name - the new name that this Category will have
              +
              name - the new name that this Category will have
            @@ -349,11 +296,11 @@

            setName

            • setBudget

              -
              public void setBudget​(double new_budget)
              +
              public void setBudget​(double newBudget)
              Sets the budget of this Category.
              Parameters:
              -
              new_budget - the new budget that this Category will have
              +
              newBudget - the new budget that this Category will have
            @@ -366,6 +313,8 @@

            getName

            public java.lang.String getName()
            Gets the name of this Category.
            +
            Specified by:
            +
            getName in interface MonthObject
            Returns:
            the name of this Category
            @@ -455,13 +404,13 @@

            equals

            diff --git a/reports/JavaDoc/entities/CategoryCreatorInputData.html b/reports/JavaDoc/entities/CategoryCreatorInputData.html new file mode 100644 index 0000000..bb42834 --- /dev/null +++ b/reports/JavaDoc/entities/CategoryCreatorInputData.html @@ -0,0 +1,382 @@ + + + + + +CategoryCreatorInputData + + + + + + + + + + + + + + + +
            + +
            + +
            +
            +
            Package entities
            +

            Class CategoryCreatorInputData

            +
            +
            + +
            +
              +
            • +
              +
              public class CategoryCreatorInputData
              +extends MonthObjectFactoryInputData
              +
              A class that holds the input data for use by the CategoryFactory. It extends MonthObjectFactoryInputData, so that it + can be used in place of this type. It includes the name and budget that the new Category will have.
              +
            • +
            +
            +
            +
              +
            • + +
              + +
              + +
              +
                +
              • + + +

                Method Summary

                + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                All Methods Instance Methods Concrete Methods 
                Modifier and TypeMethodDescription
                doublegetBudget() +
                Gets the budget of this CategoryCreatorInputData.
                +
                java.lang.StringgetName() +
                Gets the name of this CategoryCreatorInputData.
                +
                voidsetBudget​(double newBudget) +
                Sets the budget of this CategoryCreatorInputData.
                +
                voidsetName​(java.lang.String name) +
                Sets the name of this CategoryCreatorInputData.
                +
                +
                  +
                • + + +

                  Methods inherited from class java.lang.Object

                  +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                • +
                +
              • +
              +
              +
            • +
            +
            +
            +
              +
            • + +
              +
                +
              • + + +

                Constructor Detail

                + + + +
                  +
                • +

                  CategoryCreatorInputData

                  +
                  public CategoryCreatorInputData()
                  +
                • +
                +
              • +
              +
              + +
              +
                +
              • + + +

                Method Detail

                + + + +
                  +
                • +

                  setName

                  +
                  public void setName​(java.lang.String name)
                  +
                  Sets the name of this CategoryCreatorInputData.
                  +
                  +
                  Parameters:
                  +
                  name - the name that the Category will have
                  +
                  +
                • +
                + + + +
                  +
                • +

                  setBudget

                  +
                  public void setBudget​(double newBudget)
                  +
                  Sets the budget of this CategoryCreatorInputData.
                  +
                  +
                  Parameters:
                  +
                  newBudget - the budget that the Category will have
                  +
                  +
                • +
                + + + +
                  +
                • +

                  getName

                  +
                  public java.lang.String getName()
                  +
                  Gets the name of this CategoryCreatorInputData.
                  +
                  +
                  Returns:
                  +
                  the name of this CategoryCreatorInputData
                  +
                  +
                • +
                + + + +
                  +
                • +

                  getBudget

                  +
                  public double getBudget()
                  +
                  Gets the budget of this CategoryCreatorInputData.
                  +
                  +
                  Returns:
                  +
                  the budget of this CategoryCreatorInputData
                  +
                  +
                • +
                +
              • +
              +
              +
            • +
            +
            +
            +
            + + + + diff --git a/reports/JavaDoc/entities/CategoryEditorInputData.html b/reports/JavaDoc/entities/CategoryEditorInputData.html new file mode 100644 index 0000000..1ee77c7 --- /dev/null +++ b/reports/JavaDoc/entities/CategoryEditorInputData.html @@ -0,0 +1,424 @@ + + + + + +CategoryEditorInputData + + + + + + + + + + + + + + + +
            + +
            + +
            +
            +
            Package entities
            +

            Class CategoryEditorInputData

            +
            +
            + +
            +
              +
            • +
              +
              public class CategoryEditorInputData
              +extends MonthObjectFactoryInputData
              +
              A class that holds the input data for use by the CategoryFactory. It extends MonthObjectFactoryInputData, so that it + can be used in place of this type. It includes the new name, new budget, and Category object to edit the Category.
              +
            • +
            +
            +
            +
              +
            • + +
              + +
              + +
              +
                +
              • + + +

                Method Summary

                + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
                All Methods Instance Methods Concrete Methods 
                Modifier and TypeMethodDescription
                doublegetBudget() +
                Gets the budget of this CategoryEditorInputData.
                +
                CategorygetCategory() +
                Gets the Category object of this CategoryEditorInputData.
                +
                java.lang.StringgetName() +
                Gets the name of this CategoryEditorInputData.
                +
                voidsetBudget​(double newBudget) +
                Sets the budget of this CategoryEditorInputData.
                +
                voidsetCategory​(Category category) +
                Sets the Category object of this CategoryEditorInputData.
                +
                voidsetName​(java.lang.String name) +
                Sets the name of this CategoryEditorInputData.
                +
                +
                  +
                • + + +

                  Methods inherited from class java.lang.Object

                  +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                • +
                +
              • +
              +
              +
            • +
            +
            +
            +
              +
            • + +
              +
                +
              • + + +

                Constructor Detail

                + + + +
                  +
                • +

                  CategoryEditorInputData

                  +
                  public CategoryEditorInputData()
                  +
                • +
                +
              • +
              +
              + +
              +
                +
              • + + +

                Method Detail

                + + + +
                  +
                • +

                  setName

                  +
                  public void setName​(java.lang.String name)
                  +
                  Sets the name of this CategoryEditorInputData.
                  +
                  +
                  Parameters:
                  +
                  name - the new name that the edited Category will have
                  +
                  +
                • +
                + + + +
                  +
                • +

                  setBudget

                  +
                  public void setBudget​(double newBudget)
                  +
                  Sets the budget of this CategoryEditorInputData.
                  +
                  +
                  Parameters:
                  +
                  newBudget - the new budget that the edited Category will have
                  +
                  +
                • +
                + + + +
                  +
                • +

                  setCategory

                  +
                  public void setCategory​(Category category)
                  +
                  Sets the Category object of this CategoryEditorInputData.
                  +
                  +
                  Parameters:
                  +
                  category - the Category to edit
                  +
                  +
                • +
                + + + +
                  +
                • +

                  getName

                  +
                  public java.lang.String getName()
                  +
                  Gets the name of this CategoryEditorInputData.
                  +
                  +
                  Returns:
                  +
                  the name of this CategoryEditorInputData
                  +
                  +
                • +
                + + + +
                  +
                • +

                  getBudget

                  +
                  public double getBudget()
                  +
                  Gets the budget of this CategoryEditorInputData.
                  +
                  +
                  Returns:
                  +
                  the budget of this CategoryEditorInputData
                  +
                  +
                • +
                + + + +
                  +
                • +

                  getCategory

                  +
                  public Category getCategory()
                  +
                  Gets the Category object of this CategoryEditorInputData.
                  +
                  +
                  Returns:
                  +
                  the Category object of this CategoryEditorInputData
                  +
                  +
                • +
                +
              • +
              +
              +
            • +
            +
            +
            +
            + + + + diff --git a/reports/JavaDoc/entities/CategoryFactory.html b/reports/JavaDoc/entities/CategoryFactory.html new file mode 100644 index 0000000..74bb460 --- /dev/null +++ b/reports/JavaDoc/entities/CategoryFactory.html @@ -0,0 +1,349 @@ + + + + + +CategoryFactory + + + + + + + + + + + + + + + +
            + +
            + +
            +
            +
            Package entities
            +

            Class CategoryFactory

            +
            +
            + +
            +
              +
            • +
              +
              public class CategoryFactory
              +extends MonthObjectFactory
              +
              A class that creates and edits a Category. It extends the abstract class MonthObjectFactory.
              +
            • +
            +
            +
            + +
            +
            +
              +
            • + +
              +
                +
              • + + +

                Constructor Detail

                + + + +
                  +
                • +

                  CategoryFactory

                  +
                  public CategoryFactory()
                  +
                • +
                +
              • +
              +
              + +
              +
                +
              • + + +

                Method Detail

                + + + +
                  +
                • +

                  createMonthObject

                  +
                  public MonthObject createMonthObject​(MonthObjectFactoryInputData inputData)
                  +
                  Creates and returns a new Category.
                  +
                  +
                  Specified by:
                  +
                  createMonthObject in class MonthObjectFactory
                  +
                  Parameters:
                  +
                  inputData - an CategoryCreatorInputData object that is cast to MonthObjectFactoryInputData. + It holds the information needed to create a Category.
                  +
                  Returns:
                  +
                  the newly created Category
                  +
                  +
                • +
                + + + +
                  +
                • +

                  editMonthObject

                  +
                  public MonthObject editMonthObject​(MonthObjectFactoryInputData inputData)
                  +
                  Edits an existing Category.
                  +
                  +
                  Specified by:
                  +
                  editMonthObject in class MonthObjectFactory
                  +
                  Parameters:
                  +
                  inputData - an CategoryEditorInputData object that is cast to MonthObjectFactoryInputData. + It holds the information needed to edit a Category.
                  +
                  Returns:
                  +
                  the newly edited Category
                  +
                  +
                • +
                +
              • +
              +
              +
            • +
            +
            +
            +
            + + + + diff --git a/reports/JavaDoc/entities/EntityException.html b/reports/JavaDoc/entities/EntityException.html index de0251b..dc8fd08 100644 --- a/reports/JavaDoc/entities/EntityException.html +++ b/reports/JavaDoc/entities/EntityException.html @@ -2,10 +2,10 @@ - + EntityException - + diff --git a/reports/JavaDoc/entities/Expense.html b/reports/JavaDoc/entities/Expense.html index 12cbaa6..c8083b7 100644 --- a/reports/JavaDoc/entities/Expense.html +++ b/reports/JavaDoc/entities/Expense.html @@ -2,10 +2,10 @@ - + Expense - + @@ -90,13 +90,13 @@ @@ -133,13 +133,14 @@

            Class Expense

          • All Implemented Interfaces:
            -
            java.io.Serializable
            +
            MonthObject, java.io.Serializable

            public class Expense
             extends java.lang.Object
            -implements java.io.Serializable
            -
            A class that will store all the data associated with an Expense. This includes a name, Category, and value.
            +implements MonthObject, java.io.Serializable +
            A class that will store all the data associated with an Expense. This includes a name, Category, and value. + It implements the MonthObject interface, which allows for it to be created using a MonthObjectFactory.
            See Also:
            Serialized Form
            @@ -150,39 +151,6 @@

            Class Expense

            • - -
              -
                -
              • - - -

                Field Summary

                - - - - - - - - - - - - - - - - - - - - - - -
                Fields 
                Modifier and TypeFieldDescription
                private Categorycategory 
                private java.lang.Stringname 
                private doublevalue 
                -
              • -
              -
                @@ -252,21 +220,21 @@

                Method Summary

                void -setCategory​(Category new_category) +setCategory​(Category newCategory)
                Sets the Category of this Expense.
                void -setName​(java.lang.String new_name) +setName​(java.lang.String name)
                Sets the name of this Expense.
                void -setValue​(double new_value) +setValue​(double newValue)
                Sets the value of this Expense.
                @@ -288,43 +256,6 @@

                Methods inherited from class java.lang.Object

                • - -
                  -
                    -
                  • - - -

                    Field Detail

                    - - - -
                      -
                    • -

                      name

                      -
                      private java.lang.String name
                      -
                    • -
                    - - - -
                      -
                    • -

                      category

                      -
                      private Category category
                      -
                    • -
                    - - - -
                      -
                    • -

                      value

                      -
                      private double value
                      -
                    • -
                    -
                  • -
                  -
                    @@ -366,11 +297,13 @@

                    Method Detail

                    • setName

                      -
                      public void setName​(java.lang.String new_name)
                      +
                      public void setName​(java.lang.String name)
                      Sets the name of this Expense.
                      +
                      Specified by:
                      +
                      setName in interface MonthObject
                      Parameters:
                      -
                      new_name - the new name that this Expense will have
                      +
                      name - the new name that this Expense will have
                    @@ -380,11 +313,11 @@

                    setName

                    • setCategory

                      -
                      public void setCategory​(Category new_category)
                      +
                      public void setCategory​(Category newCategory)
                      Sets the Category of this Expense.
                      Parameters:
                      -
                      new_category - the new Category that this Expense will belong to
                      +
                      newCategory - the new Category that this Expense will belong to
                    @@ -394,11 +327,11 @@

                    setCategory

                    • setValue

                      -
                      public void setValue​(double new_value)
                      +
                      public void setValue​(double newValue)
                      Sets the value of this Expense.
                      Parameters:
                      -
                      new_value - the new value that this Expense will have
                      +
                      newValue - the new value that this Expense will have
                    @@ -411,6 +344,8 @@

                    getName

                    public java.lang.String getName()
                    Gets the name of this Expense.
                    +
                    Specified by:
                    +
                    getName in interface MonthObject
                    Returns:
                    the name of this Expense
                    @@ -514,13 +449,13 @@

                    equals

                    diff --git a/reports/JavaDoc/entities/CategoryTest.html b/reports/JavaDoc/entities/ExpenseCreatorInputData.html similarity index 68% rename from reports/JavaDoc/entities/CategoryTest.html rename to reports/JavaDoc/entities/ExpenseCreatorInputData.html index 08fffc4..819fba9 100644 --- a/reports/JavaDoc/entities/CategoryTest.html +++ b/reports/JavaDoc/entities/ExpenseCreatorInputData.html @@ -2,10 +2,10 @@ - -CategoryTest + +ExpenseCreatorInputData - + @@ -22,7 +22,7 @@ + + + + + + + + + +
                    + +
                    + +
                    +
                    +
                    Package entities
                    +

                    Class ExpenseFactory

                    +
                    +
                    + +
                    +
                      +
                    • +
                      +
                      public class ExpenseFactory
                      +extends MonthObjectFactory
                      +
                      A class that creates an Expense. It extends the abstract class MonthObjectFactory.
                      +
                    • +
                    +
                    +
                    + +
                    +
                    +
                      +
                    • + +
                      +
                        +
                      • + + +

                        Constructor Detail

                        + + + +
                          +
                        • +

                          ExpenseFactory

                          +
                          public ExpenseFactory()
                          +
                        • +
                        +
                      • +
                      +
                      + +
                      +
                        +
                      • + + +

                        Method Detail

                        + + + +
                          +
                        • +

                          createMonthObject

                          +
                          public MonthObject createMonthObject​(MonthObjectFactoryInputData inputData)
                          +
                          Creates and returns a new Expense.
                          +
                          +
                          Specified by:
                          +
                          createMonthObject in class MonthObjectFactory
                          +
                          Parameters:
                          +
                          inputData - an ExpenseCreatorInputData object that is cast to MonthObjectFactoryInputData. + It holds the information needed to create an Expense.
                          +
                          Returns:
                          +
                          the newly created Expense
                          +
                          +
                        • +
                        + + + +
                          +
                        • +

                          editMonthObject

                          +
                          public MonthObject editMonthObject​(MonthObjectFactoryInputData inputData)
                          +
                          Edits and returns an Expense.
                          +
                          +
                          Specified by:
                          +
                          editMonthObject in class MonthObjectFactory
                          +
                          Parameters:
                          +
                          inputData - an ExpenseEditorInputData object that is cast to MonthObjectFactoryInputData. + It holds the information needed to edit an Expense.
                          +
                          Returns:
                          +
                          the newly edited Expense
                          +
                          +
                        • +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                    + + + + diff --git a/reports/JavaDoc/entities/MonthObject.html b/reports/JavaDoc/entities/MonthObject.html new file mode 100644 index 0000000..46fae5c --- /dev/null +++ b/reports/JavaDoc/entities/MonthObject.html @@ -0,0 +1,284 @@ + + + + + +MonthObject + + + + + + + + + + + + + + + +
                    + +
                    + +
                    +
                    +
                    Package entities
                    +

                    Interface MonthObject

                    +
                    +
                    +
                    +
                      +
                    • +
                      +
                      All Known Implementing Classes:
                      +
                      Category, Expense
                      +
                      +
                      +
                      public interface MonthObject
                      +
                      An interface that objects belonging to the MonthlyStorage implement. Expense and Category implement this so that + they can be created by MonthObjectFactory classes. It contains the setName and getName methods that all MonthObject + classes should have.
                      +
                    • +
                    +
                    +
                    +
                      +
                    • + +
                      +
                        +
                      • + + +

                        Method Summary

                        + + + + + + + + + + + + + + + + + +
                        All Methods Instance Methods Abstract Methods 
                        Modifier and TypeMethodDescription
                        java.lang.StringgetName() +
                        Gets the name of this MonthObject.
                        +
                        voidsetName​(java.lang.String name) +
                        Sets the name of this MonthObject.
                        +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                      +
                    • + +
                      +
                        +
                      • + + +

                        Method Detail

                        + + + +
                          +
                        • +

                          setName

                          +
                          void setName​(java.lang.String name)
                          +
                          Sets the name of this MonthObject.
                          +
                          +
                          Parameters:
                          +
                          name - the new name that this MonthObject will have
                          +
                          +
                        • +
                        + + + +
                          +
                        • +

                          getName

                          +
                          java.lang.String getName()
                          +
                          Gets the name of this MonthObject.
                          +
                          +
                          Returns:
                          +
                          the name of this MonthObject
                          +
                          +
                        • +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                    + +
                    + +
                    + + diff --git a/reports/JavaDoc/entities/MonthObjectFactory.html b/reports/JavaDoc/entities/MonthObjectFactory.html new file mode 100644 index 0000000..bd07a2f --- /dev/null +++ b/reports/JavaDoc/entities/MonthObjectFactory.html @@ -0,0 +1,342 @@ + + + + + +MonthObjectFactory + + + + + + + + + + + + + + + +
                    + +
                    + +
                    +
                    +
                    Package entities
                    +

                    Class MonthObjectFactory

                    +
                    +
                    +
                      +
                    • java.lang.Object
                    • +
                    • +
                        +
                      • entities.MonthObjectFactory
                      • +
                      +
                    • +
                    +
                    +
                      +
                    • +
                      +
                      Direct Known Subclasses:
                      +
                      CategoryFactory, ExpenseFactory
                      +
                      +
                      +
                      public abstract class MonthObjectFactory
                      +extends java.lang.Object
                      +
                      An abstract class that contains the method needed to create and edit a MonthObject.
                      +
                    • +
                    +
                    +
                    + +
                    +
                    +
                      +
                    • + +
                      +
                        +
                      • + + +

                        Constructor Detail

                        + + + +
                          +
                        • +

                          MonthObjectFactory

                          +
                          public MonthObjectFactory()
                          +
                        • +
                        +
                      • +
                      +
                      + +
                      +
                        +
                      • + + +

                        Method Detail

                        + + + +
                          +
                        • +

                          createMonthObject

                          +
                          public abstract MonthObject createMonthObject​(MonthObjectFactoryInputData inputData)
                          +
                          Creates and returns a new MonthObject.
                          +
                          +
                          Parameters:
                          +
                          inputData - a MonthObjectFactoryInputData object that holds the information needed to create a MonthObject
                          +
                          Returns:
                          +
                          a new MonthObject
                          +
                          +
                        • +
                        + + + +
                          +
                        • +

                          editMonthObject

                          +
                          public abstract MonthObject editMonthObject​(MonthObjectFactoryInputData inputData)
                          +
                          Edits and returns a MonthObject.
                          +
                          +
                          Parameters:
                          +
                          inputData - a MonthObjectFactoryInputData object that holds the information needed to edit a MonthObject
                          +
                          Returns:
                          +
                          the edited MonthObject
                          +
                          +
                        • +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                    + + + + diff --git a/reports/JavaDoc/entities/MonthObjectFactoryInputData.html b/reports/JavaDoc/entities/MonthObjectFactoryInputData.html new file mode 100644 index 0000000..b5d04b9 --- /dev/null +++ b/reports/JavaDoc/entities/MonthObjectFactoryInputData.html @@ -0,0 +1,278 @@ + + + + + +MonthObjectFactoryInputData + + + + + + + + + + + + + + + +
                    + +
                    + +
                    +
                    +
                    Package entities
                    +

                    Class MonthObjectFactoryInputData

                    +
                    +
                    +
                      +
                    • java.lang.Object
                    • +
                    • +
                        +
                      • entities.MonthObjectFactoryInputData
                      • +
                      +
                    • +
                    +
                    +
                      +
                    • +
                      +
                      Direct Known Subclasses:
                      +
                      CategoryCreatorInputData, CategoryEditorInputData, ExpenseCreatorInputData, ExpenseEditorInputData
                      +
                      +
                      +
                      public abstract class MonthObjectFactoryInputData
                      +extends java.lang.Object
                      +
                      An abstract class that other concrete CreatorInputData and EditorInputData classes extend. It holds the input data + for use by any concrete MonthObjectFactory class. + Note: This class is not a part of the Factory design pattern. Since CategoryFactory and ExpenseFactory need different + parameters for addMonthObject and editMonthObject, the abstract MonthObjectFactory needs a way to declare a parameter + type for these methods. Thus, I created the MonthObjectFactoryInputData and made both methods take this parameter, so + that each version of addMonthObject and editMonthObject in CategoryFactory and ExpenseFactory can take in a different + set of input data objects that are child classes of MonthObjectFactoryInputData.
                      +
                    • +
                    +
                    +
                    +
                      +
                    • + +
                      + +
                      + +
                      +
                        +
                      • + + +

                        Method Summary

                        +
                          +
                        • + + +

                          Methods inherited from class java.lang.Object

                          +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                        • +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                      +
                    • + +
                      +
                        +
                      • + + +

                        Constructor Detail

                        + + + +
                          +
                        • +

                          MonthObjectFactoryInputData

                          +
                          public MonthObjectFactoryInputData()
                          +
                        • +
                        +
                      • +
                      +
                      +
                    • +
                    +
                    +
                    +
                    + +
                    + +
                    + + diff --git a/reports/JavaDoc/entities/MonthlyStorage.html b/reports/JavaDoc/entities/MonthlyStorage.html index 6018917..fc8dfee 100644 --- a/reports/JavaDoc/entities/MonthlyStorage.html +++ b/reports/JavaDoc/entities/MonthlyStorage.html @@ -2,10 +2,10 @@ - + MonthlyStorage - + @@ -90,13 +90,13 @@ @@ -151,44 +151,6 @@

                    Class MonthlyStorage

                    • - -
                      - -
                        @@ -243,14 +205,14 @@

                        Method Summary

                        void -deleteCategory​(java.lang.String category_name) +deleteCategory​(java.lang.String categoryName)
                        Deletes a Category from this month.
                        void -deleteExpense​(java.lang.String expense_name) +deleteExpense​(java.lang.String expenseName)
                        Deletes an Expense from this month.
                        @@ -307,52 +269,6 @@

                        Methods inherited from class java.lang.Object

                        • - -
                          -
                            -
                          • - - -

                            Field Detail

                            - - - -
                              -
                            • -

                              monthID

                              -
                              private final int monthID
                              -
                            • -
                            - - - -
                              -
                            • -

                              monthlyBudget

                              -
                              private final double monthlyBudget
                              -
                            • -
                            - - - -
                              -
                            • -

                              categoryData

                              -
                              private final java.util.ArrayList<Category> categoryData
                              -
                            • -
                            - - - -
                              -
                            • -

                              expenseData

                              -
                              private final java.util.ArrayList<Expense> expenseData
                              -
                            • -
                            -
                          • -
                          -
                            @@ -482,11 +398,11 @@

                            addExpense

                            • deleteCategory

                              -
                              public void deleteCategory​(java.lang.String category_name)
                              +
                              public void deleteCategory​(java.lang.String categoryName)
                              Deletes a Category from this month.
                              Parameters:
                              -
                              category_name - a String referring to the Category object to delete
                              +
                              categoryName - a String referring to the Category object to delete
                            @@ -496,11 +412,11 @@

                            deleteCategory

                            • deleteExpense

                              -
                              public void deleteExpense​(java.lang.String expense_name)
                              +
                              public void deleteExpense​(java.lang.String expenseName)
                              Deletes an Expense from this month.
                              Parameters:
                              -
                              expense_name - a String referring to the Expense object to delete
                              +
                              expenseName - a String referring to the Expense object to delete
                            @@ -574,13 +490,13 @@

                            equals

                            diff --git a/reports/JavaDoc/entities/MonthlyStorageTest.html b/reports/JavaDoc/entities/MonthlyStorageTest.html deleted file mode 100644 index 954fd21..0000000 --- a/reports/JavaDoc/entities/MonthlyStorageTest.html +++ /dev/null @@ -1,636 +0,0 @@ - - - - - -MonthlyStorageTest - - - - - - - - - - - - - - - -
                            - -
                            - -
                            -
                            -
                            Package entities
                            -

                            Class MonthlyStorageTest

                            -
                            -
                            -
                              -
                            • java.lang.Object
                            • -
                            • -
                                -
                              • entities.MonthlyStorageTest
                              • -
                              -
                            • -
                            -
                            -
                              -
                            • -
                              -
                              class MonthlyStorageTest
                              -extends java.lang.Object
                              -
                              A class that tests the MonthlyStorage class.
                              -
                            • -
                            -
                            -
                            - -
                            -
                            -
                              -
                            • - -
                              - -
                              - -
                              -
                                -
                              • - - -

                                Constructor Detail

                                - - - -
                                  -
                                • -

                                  MonthlyStorageTest

                                  -
                                  MonthlyStorageTest()
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Detail

                                - - - -
                                  -
                                • -

                                  MonthlyStorageCreateBaseEntities

                                  -
                                  @BeforeAll
                                  -public static void MonthlyStorageCreateBaseEntities()
                                  -
                                  Runs once before the methods to set up the necessary entities for the tests.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageCreateMonth

                                  -
                                  @Test
                                  -public void MonthlyStorageCreateMonth()
                                  -
                                  Tests the MonthlyStorage initializer, getMonthID(), and getMonthlyBudget().
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageAddExpenseSuccess

                                  -
                                  @Test
                                  -public void MonthlyStorageAddExpenseSuccess()
                                  -
                                  Tests addExpense() and getExpense() with a valid test case.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageAddExpenseFail

                                  -
                                  @Test
                                  -public void MonthlyStorageAddExpenseFail()
                                  -
                                  Tests addExpense() and getExpense() with an invalid test case (two Expense objects with the same name).
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageAddCategorySuccess

                                  -
                                  @Test
                                  -public void MonthlyStorageAddCategorySuccess()
                                  -
                                  Tests addCategory() and getCategory() with a valid test case.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageAddCategoryFail

                                  -
                                  @Test
                                  -public void MonthlyStorageAddCategoryFail()
                                  -
                                  Tests addCategory() and getCategory() with an invalid test case (two Category objects with the same name).
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageDeleteExpenseSuccess

                                  -
                                  @Test
                                  -public void MonthlyStorageDeleteExpenseSuccess()
                                  -                                        throws EntityException
                                  -
                                  Tests deleteExpense() with a valid test case. - Note: EntityException is thrown because of addExpense() method that is not tested here.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageDeleteExpenseFail

                                  -
                                  @Test
                                  -public void MonthlyStorageDeleteExpenseFail()
                                  -                                     throws EntityException
                                  -
                                  Tests deleteExpense() with an Expense not in the MonthlyStorage. - Note: EntityException is thrown because of addExpense() method that is not tested here.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageDeleteCategorySuccess

                                  -
                                  @Test
                                  -public void MonthlyStorageDeleteCategorySuccess()
                                  -                                         throws EntityException
                                  -
                                  Tests deleteCategory() with a valid test case. - Note: EntityException is thrown because of addCategory() method that is not tested here.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  MonthlyStorageDeleteCategoryFail

                                  -
                                  @Test
                                  -public void MonthlyStorageDeleteCategoryFail()
                                  -                                      throws EntityException
                                  -
                                  Tests deleteCategory() with a Category not in the MonthlyStorage. - Note: EntityException is thrown because of addCategory() method that is not tested here.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws
                                  -
                                  -
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                            - - - - diff --git a/reports/JavaDoc/entities/SessionStorage.html b/reports/JavaDoc/entities/SessionStorage.html index fe2aff4..f8c6c57 100644 --- a/reports/JavaDoc/entities/SessionStorage.html +++ b/reports/JavaDoc/entities/SessionStorage.html @@ -2,10 +2,10 @@ - + SessionStorage - + @@ -90,13 +90,13 @@ @@ -151,34 +151,6 @@

                            Class SessionStorage

                            • - -
                              - -
                                @@ -220,7 +192,7 @@

                                Method Summary

                                void addMonth​(MonthlyStorage month) -
                                Adds a new month to the monthlyData.
                                +
                                Adds a new month to monthlyData.
                                @@ -239,7 +211,7 @@

                                Method Summary

                                void -deleteRecurExpense​(java.lang.String expense_name) +deleteRecurExpense​(java.lang.String expenseName)
                                Deletes an Expense from this month.
                                @@ -289,34 +261,6 @@

                                Methods inherited from class java.lang.Object

                                • - -
                                  -
                                    -
                                  • - - -

                                    Field Detail

                                    - - - -
                                      -
                                    • -

                                      monthlyData

                                      -
                                      private final java.util.ArrayList<MonthlyStorage> monthlyData
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      recurData

                                      -
                                      private final java.util.ArrayList<Expense> recurData
                                      -
                                    • -
                                    -
                                  • -
                                  -
                                    @@ -350,11 +294,14 @@

                                    Method Detail

                                    • addMonth

                                      -
                                      public void addMonth​(MonthlyStorage month)
                                      -
                                      Adds a new month to the monthlyData.
                                      +
                                      public void addMonth​(MonthlyStorage month)
                                      +              throws EntityException
                                      +
                                      Adds a new month to monthlyData.
                                      Parameters:
                                      month - a MonthlyStorage object to add
                                      +
                                      Throws:
                                      +
                                      EntityException - if this MonthlyStorage is already in SessionStorage
                                    @@ -378,11 +325,11 @@

                                    addRecurExpense

                                    • deleteRecurExpense

                                      -
                                      public void deleteRecurExpense​(java.lang.String expense_name)
                                      +
                                      public void deleteRecurExpense​(java.lang.String expenseName)
                                      Deletes an Expense from this month.
                                      Parameters:
                                      -
                                      expense_name - a String containing the name of the Expense to delete
                                      +
                                      expenseName - a String containing the name of the Expense to delete
                                    @@ -518,13 +465,13 @@

                                    equals

                                    diff --git a/reports/JavaDoc/entities/SessionStorageTest.html b/reports/JavaDoc/entities/SessionStorageTest.html deleted file mode 100644 index 635a72b..0000000 --- a/reports/JavaDoc/entities/SessionStorageTest.html +++ /dev/null @@ -1,546 +0,0 @@ - - - - - -SessionStorageTest - - - - - - - - - - - - - - - -
                                    - -
                                    - -
                                    -
                                    -
                                    Package entities
                                    -

                                    Class SessionStorageTest

                                    -
                                    -
                                    -
                                      -
                                    • java.lang.Object
                                    • -
                                    • -
                                        -
                                      • entities.SessionStorageTest
                                      • -
                                      -
                                    • -
                                    -
                                    -
                                      -
                                    • -
                                      -
                                      class SessionStorageTest
                                      -extends java.lang.Object
                                      -
                                      A class that tests the SessionStorage class.
                                      -
                                    • -
                                    -
                                    -
                                    - -
                                    -
                                    -
                                      -
                                    • - -
                                      - -
                                      - -
                                      -
                                        -
                                      • - - -

                                        Constructor Detail

                                        - - - -
                                          -
                                        • -

                                          SessionStorageTest

                                          -
                                          SessionStorageTest()
                                          -
                                        • -
                                        -
                                      • -
                                      -
                                      - -
                                      -
                                        -
                                      • - - -

                                        Method Detail

                                        - - - -
                                          -
                                        • -

                                          SessionStorageCreateBaseEntities

                                          -
                                          @BeforeAll
                                          -public static void SessionStorageCreateBaseEntities()
                                          -
                                          Runs once before the methods to set up the necessary entities for the tests.
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageCreateNewSession

                                          -
                                          @Test
                                          -public void SessionStorageCreateNewSession()
                                          -
                                          Tests the SessionStorage initializer and getRecurData().
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageSetValidMonthlyData

                                          -
                                          @Test
                                          -public void SessionStorageSetValidMonthlyData()
                                          -
                                          Tests addMonth() and getMonthlyData() on a valid case.
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageSetInvalidMonthlyData

                                          -
                                          @Test
                                          -public void SessionStorageSetInvalidMonthlyData()
                                          -
                                          Tests addMonth() and getMonthlyData() on an invalid case (a monthID that is not in the SessionStorage).
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageAddRecurExpense

                                          -
                                          @Test
                                          -public void SessionStorageAddRecurExpense()
                                          -
                                          Tests addRecurExpense() and getRecurData() with a valid test case. - Note: not testing for invalid cases, since the Add/Edit UCIs make sure the parameters are valid.
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageDeleteRecurExpense

                                          -
                                          @Test
                                          -public void SessionStorageDeleteRecurExpense()
                                          -
                                          Tests deleteRecurExpense() with a valid test case. - Note: not testing for invalid cases, since the Add/Edit UCIs make sure the parameters are valid.
                                          -
                                        • -
                                        - - - -
                                          -
                                        • -

                                          SessionStorageCopyDataFrom

                                          -
                                          @Test
                                          -public void SessionStorageCopyDataFrom()
                                          -
                                          Tests copyDataFrom()
                                          -
                                        • -
                                        -
                                      • -
                                      -
                                      -
                                    • -
                                    -
                                    -
                                    -
                                    - - - - diff --git a/reports/JavaDoc/entities/package-summary.html b/reports/JavaDoc/entities/package-summary.html index 387b0a8..418e6e5 100644 --- a/reports/JavaDoc/entities/package-summary.html +++ b/reports/JavaDoc/entities/package-summary.html @@ -2,10 +2,10 @@ - + entities - + @@ -100,6 +100,23 @@

                                    Package entities

                                    • + + + + + + + + + + + +
                                      Interface Summary 
                                      InterfaceDescription
                                      MonthObject +
                                      An interface that objects belonging to the MonthlyStorage implement.
                                      +
                                      +
                                    • +
                                    • + @@ -113,9 +130,21 @@

                                      Package entities

                                      - + + + + + + + + + @@ -125,9 +154,21 @@

                                      Package entities

                                      - + + + + + + + + + @@ -137,21 +178,21 @@

                                      Package entities

                                      - + - + - + diff --git a/reports/JavaDoc/entities/package-tree.html b/reports/JavaDoc/entities/package-tree.html index 55a0d1b..592115a 100644 --- a/reports/JavaDoc/entities/package-tree.html +++ b/reports/JavaDoc/entities/package-tree.html @@ -2,10 +2,10 @@ - +entities Class Hierarchy - + @@ -106,14 +106,24 @@

                                      Class Hierarchy

                                      • java.lang.Object
                                          -
                                        • entities.Category (implements java.io.Serializable)
                                        • -
                                        • entities.CategoryTest
                                        • -
                                        • entities.Expense (implements java.io.Serializable)
                                        • -
                                        • entities.ExpenseTest
                                        • +
                                        • entities.Category (implements entities.MonthObject, java.io.Serializable)
                                        • +
                                        • entities.Expense (implements entities.MonthObject, java.io.Serializable)
                                        • entities.MonthlyStorage (implements java.io.Serializable)
                                        • -
                                        • entities.MonthlyStorageTest
                                        • +
                                        • entities.MonthObjectFactory + +
                                        • +
                                        • entities.MonthObjectFactoryInputData + +
                                        • entities.SessionStorage (implements java.io.Serializable)
                                        • -
                                        • entities.SessionStorageTest
                                        • java.lang.Throwable (implements java.io.Serializable)
                                          • java.lang.Exception @@ -127,6 +137,12 @@

                                            Class Hierarchy

                                          +
                                          +

                                          Interface Hierarchy

                                          + +
                                          diff --git a/reports/JavaDoc/help-doc.html b/reports/JavaDoc/help-doc.html index d3acbf8..e749403 100644 --- a/reports/JavaDoc/help-doc.html +++ b/reports/JavaDoc/help-doc.html @@ -2,10 +2,10 @@ - + API Help - + diff --git a/reports/JavaDoc/index-files/index-1.html b/reports/JavaDoc/index-files/index-1.html index 8b24e1c..be86357 100644 --- a/reports/JavaDoc/index-files/index-1.html +++ b/reports/JavaDoc/index-files/index-1.html @@ -2,10 +2,10 @@ - + A-Index - + @@ -93,26 +93,28 @@
                                          -
                                          A B C D E F G I L M N O P R S T U V W Y 
                                          All Classes All Packages +
                                          A C D E F G I L M N O S T U V 
                                          All Classes All Packages

                                          A

                                          -
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_category_views.AddCategoryV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_category_views.AddCategoryView
                                          -
                                          Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                                          +
                                          Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_category_views.EditCategoryV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_category_views.EditCategoryView
                                          -
                                          Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                                          +
                                          Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_epense_views.AddExpenseV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_epense_views.AddExpenseView
                                          -
                                          Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                                          +
                                          Checks and formats user input to pass in valid parameters to start a use case.
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_epense_views.EditExpenseV
                                          -
                                           
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.create_new_month.NewMonthV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.add_edit_epense_views.EditExpenseView
                                          +
                                          +
                                          Checks and formats user input to pass in valid parameters to start a use case.
                                          +
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.create_new_month.NewMonthView
                                          React to drop down selection and button click that result in ActionEvent.
                                          @@ -120,107 +122,63 @@

                                          A

                                          Reacts to UI events
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.monthly_menu.MonthMenuV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.monthly_menu.MonthMenuView
                                          React to various button clicks that result in ActionEvent.
                                          -
                                          actionPerformed(ActionEvent) - Method in class views.session_load.SessionLoadMenuV
                                          -
                                           
                                          -
                                          actual - Static variable in class entities.SessionStorageTest
                                          -
                                           
                                          -
                                          addCategory - Variable in class views.monthly_menu.MonthMenuV
                                          +
                                          actionPerformed(ActionEvent) - Method in class views.session_load.SessionLoadMenuView
                                           
                                          addCategory(Category) - Method in class entities.MonthlyStorage
                                          Adds a new Category to this month.
                                          -
                                          addCategoryInMonth(CategoryID) - Method in interface use_cases.add_edit_category_use_case.CategoryIB
                                          +
                                          addCategoryInMonth(CategoryInputData) - Method in interface use_cases.add_edit_category_use_case.CategoryInputBoundary
                                          -
                                          Returns String success message in the form of a CategoryOD object when a category is successfully added, +
                                          Returns String success message in the form of a CategoryOutputData object when a category is successfully added, returns String fail messages that are context specific when failed.
                                          -
                                          addCategoryInMonth(CategoryID) - Method in class use_cases.add_edit_category_use_case.CategoryUCI
                                          -
                                          -
                                          Overrides method in CategoryIB.
                                          -
                                          -
                                          addCategoryInMonthInvalidDoubleFail() - Method in class use_cases.add_edit_category_use_case.CategoryUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Category budget that is an invalid double.
                                          -
                                          -
                                          addCategoryInMonthNegValueFail() - Method in class use_cases.add_edit_category_use_case.CategoryUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Category budget that is a negative number.
                                          -
                                          -
                                          addCategoryInMonthSameNameFail() - Method in class use_cases.add_edit_category_use_case.CategoryUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Category name that exists in the MonthlyStorage.
                                          -
                                          -
                                          addCategoryInMonthSuccess() - Method in class use_cases.add_edit_category_use_case.CategoryUCITest
                                          +
                                          addCategoryInMonth(CategoryInputData) - Method in class use_cases.add_edit_category_use_case.CategoryUseCaseInteractor
                                          -
                                          Tests success add case by checking if the size of categoryData in MonthlyStorage is correctly updated.
                                          +
                                          Overrides method in CategoryInputBoundary.
                                          -
                                          AddCategoryV - Class in views.add_edit_category_views
                                          +
                                          AddCategoryView - Class in views.add_edit_category_views
                                          -
                                          A view class for the AddCategoryV that extends Component class and implements ActionListener interface.
                                          +
                                          A view class for the AddCategoryView that extends Component class and implements ActionListener interface.
                                          -
                                          AddCategoryV(CategoryC, int, SessionStorage) - Constructor for class views.add_edit_category_views.AddCategoryV
                                          +
                                          AddCategoryView(MonthMenuView, CategoryController, int, SessionStorage) - Constructor for class views.add_edit_category_views.AddCategoryView
                                          -
                                          Builds AddCategoryV.
                                          +
                                          Builds AddCategoryView for user entries.
                                          -
                                          addExpense - Variable in class views.monthly_menu.MonthMenuV
                                          -
                                           
                                          addExpense(Expense) - Method in class entities.MonthlyStorage
                                          Adds a new Expense to this month.
                                          -
                                          addExpenseInMonth(ExpenseID) - Method in interface use_cases.add_edit_expenses_use_case.ExpenseInputBoundary
                                          +
                                          addExpenseInMonth(ExpenseInputData) - Method in interface use_cases.add_edit_expenses_use_case.ExpenseInputBoundary
                                          -
                                          Describes abstract addExpenseInMonth() that is override in ExpenseUCI to format detailed responses for attempts to add an Expense.
                                          +
                                          Describes abstract addExpenseInMonth() that is override in ExpenseUseCaseInteractor to format detailed responses for attempts to add an Expense.
                                          -
                                          addExpenseInMonth(ExpenseID) - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCI
                                          +
                                          addExpenseInMonth(ExpenseInputData) - Method in class use_cases.add_edit_expenses_use_case.ExpenseUseCaseInteractor
                                          Overrides method in ExpenseInputBoundary.
                                          -
                                          addExpenseInMonthInvalidDoubleFail() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                          -
                                          Tests success add case by checking if the size of expenseData in recurringData is correctly updated.
                                          -
                                          -
                                          addExpenseInMonthNegValueFail() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Expense budget that is a negative number.
                                          -
                                          -
                                          addExpenseInMonthSameNameFail() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Expense name that exists in the MonthlyStorage.
                                          -
                                          -
                                          addExpenseInMonthSuccess() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                          -
                                          Tests success add case by checking if the size of expenseData in MonthlyStorage is correctly updated.
                                          -
                                          -
                                          addExpenseInRecurringSameNameFail() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                           
                                          -
                                          addExpenseInRecurringSuccess() - Method in class use_cases.add_edit_expenses_use_case.ExpenseUCITest
                                          -
                                          -
                                          Tests fail add case when user tries to add a new Expense name that exists in the recurringData.
                                          -
                                          -
                                          AddExpenseV - Class in views.add_edit_epense_views
                                          +
                                          AddExpenseView - Class in views.add_edit_epense_views
                                          -
                                          A view class for the AddExpenseV that extends Component class and implements ActionListener interface.
                                          +
                                          A view class for the AddExpenseView that extends Component class and implements ActionListener interface.
                                          -
                                          AddExpenseV(ExpenseC, String[], int, SessionStorage) - Constructor for class views.add_edit_epense_views.AddExpenseV
                                          +
                                          AddExpenseView(MonthMenuView, ExpenseController, String[], int, SessionStorage) - Constructor for class views.add_edit_epense_views.AddExpenseView
                                          -
                                          Builds AddExpenseV
                                          +
                                          Builds AddExpenseView for user entries.
                                          addMonth(MonthlyStorage) - Method in class entities.SessionStorage
                                          -
                                          Adds a new month to the monthlyData.
                                          +
                                          Adds a new month to monthlyData.
                                          addRecurExpense(Expense) - Method in class entities.SessionStorage
                                          Adds a new expense to the Session's recurExpense array.
                                          -A B C D E F G I L M N O P R S T U V W Y 
                                          All Classes All Packages
                                          +A C D E F G I L M N O S T U V 
                                          All Classes All Packages
                                        • +
                                        • + + +

                                          Class views.add_edit_category_views.EditCategoryView extends javax.swing.JFrame implements Serializable

                                          +
                                            +
                                          • +

                                            Serialized Fields

                                            +
                                              +
                                            • +

                                              budgetInput

                                              +
                                              javax.swing.JTextField budgetInput
                                              +
                                            • +
                                            • +

                                              categoryCombo

                                              +
                                              javax.swing.JComboBox<java.lang.String> categoryCombo
                                              +
                                            • +
                                            • +

                                              controller

                                              +
                                              CategoryController controller
                                              +
                                            • +
                                            • +

                                              currSession

                                              +
                                              SessionStorage currSession
                                              +
                                            • +
                                            • +

                                              frame

                                              +
                                              javax.swing.JFrame frame
                                              +
                                            • +
                                            • +

                                              monthID

                                              +
                                              int monthID
                                              +
                                            • +
                                            • +

                                              monthMenu

                                              +
                                              MonthMenuView monthMenu
                                              +
                                            • +
                                            • +

                                              nameInput

                                              +
                                              javax.swing.JTextField nameInput
                                              +
                                            • +
                                            • selectedCategory

                                              java.lang.String selectedCategory
                                            • +
                                            • +

                                              submit

                                              +
                                              javax.swing.JButton submit
                                              +
                                          @@ -301,10 +417,66 @@

                                          selectedCategory

                                          Package views.add_edit_epense_views

                                            +
                                          • + + +

                                            Class views.add_edit_epense_views.AddExpenseV extends javax.swing.JFrame implements Serializable

                                            +
                                              +
                                            • +

                                              Serialized Fields

                                              +
                                                +
                                              • +

                                                categoryCombo

                                                +
                                                javax.swing.JComboBox<java.lang.String> categoryCombo
                                                +
                                              • +
                                              • +

                                                controller

                                                +
                                                views.add_edit_epense_views.ExpenseC controller
                                                +
                                              • +
                                              • +

                                                currSession

                                                +
                                                SessionStorage currSession
                                                +
                                              • +
                                              • +

                                                frame

                                                +
                                                javax.swing.JFrame frame
                                                +
                                              • +
                                              • +

                                                isRecurringCheckBox

                                                +
                                                javax.swing.JCheckBox isRecurringCheckBox
                                                +
                                              • +
                                              • +

                                                monthID

                                                +
                                                int monthID
                                                +
                                              • +
                                              • +

                                                monthMenu

                                                +
                                                views.monthly_menu.MonthMenuV monthMenu
                                                +
                                              • +
                                              • +

                                                nameInput

                                                +
                                                javax.swing.JTextField nameInput
                                                +
                                              • +
                                              • +

                                                selectedExpense

                                                +
                                                java.lang.String selectedExpense
                                                +
                                              • +
                                              • +

                                                submit

                                                +
                                                javax.swing.JButton submit
                                                +
                                              • +
                                              • +

                                                valueInput

                                                +
                                                javax.swing.JTextField valueInput
                                                +
                                              • +
                                              +
                                            • +
                                            +
                                          • -

                                            Class views.add_edit_epense_views.AddExpenseView extends java.awt.Component implements Serializable

                                            +

                                            Class views.add_edit_epense_views.AddExpenseView extends javax.swing.JFrame implements Serializable

                                            • Serialized Fields

                                              @@ -315,15 +487,15 @@

                                              categoryCombo

                                            • controller

                                              -
                                              ExpenseC controller
                                              +
                                              ExpenseController controller
                                            • currSession

                                              SessionStorage currSession
                                            • -

                                              isRecurring

                                              -
                                              boolean isRecurring
                                              +

                                              frame

                                              +
                                              javax.swing.JFrame frame
                                            • isRecurringCheckBox

                                              @@ -334,6 +506,70 @@

                                              monthID

                                              int monthID
                                            • +

                                              monthMenu

                                              +
                                              MonthMenuView monthMenu
                                              +
                                            • +
                                            • +

                                              nameInput

                                              +
                                              javax.swing.JTextField nameInput
                                              +
                                            • +
                                            • +

                                              selectedExpense

                                              +
                                              java.lang.String selectedExpense
                                              +
                                            • +
                                            • +

                                              submit

                                              +
                                              javax.swing.JButton submit
                                              +
                                            • +
                                            • +

                                              valueInput

                                              +
                                              javax.swing.JTextField valueInput
                                              +
                                            • +
                                            +
                                          • +
                                          +
                                        • +
                                        • + + +

                                          Class views.add_edit_epense_views.EditExpenseV extends javax.swing.JFrame implements Serializable

                                          +
                                            +
                                          • +

                                            Serialized Fields

                                            +
                                              +
                                            • +

                                              categoryCombo

                                              +
                                              javax.swing.JComboBox<java.lang.String> categoryCombo
                                              +
                                            • +
                                            • +

                                              controller

                                              +
                                              views.add_edit_epense_views.ExpenseC controller
                                              +
                                            • +
                                            • +

                                              currSession

                                              +
                                              SessionStorage currSession
                                              +
                                            • +
                                            • +

                                              expenseCombo

                                              +
                                              javax.swing.JComboBox<java.lang.String> expenseCombo
                                              +
                                            • +
                                            • +

                                              frame

                                              +
                                              javax.swing.JFrame frame
                                              +
                                            • +
                                            • +

                                              isRecurringCheckBox

                                              +
                                              javax.swing.JCheckBox isRecurringCheckBox
                                              +
                                            • +
                                            • +

                                              monthID

                                              +
                                              int monthID
                                              +
                                            • +
                                            • +

                                              monthMenu

                                              +
                                              views.monthly_menu.MonthMenuV monthMenu
                                              +
                                            • +
                                            • nameInput

                                              javax.swing.JTextField nameInput
                                            • @@ -345,6 +581,10 @@

                                              selectedCategory

                                              selectedExpense

                                              java.lang.String selectedExpense
                                              +
                                            • +

                                              submit

                                              +
                                              javax.swing.JButton submit
                                              +
                                            • valueInput

                                              javax.swing.JTextField valueInput
                                              @@ -356,7 +596,7 @@

                                              valueInput

                                            • -

                                              Class views.add_edit_epense_views.EditExpenseView extends java.awt.Component implements Serializable

                                              +

                                              Class views.add_edit_epense_views.EditExpenseView extends javax.swing.JFrame implements Serializable

                                              • Serialized Fields

                                                @@ -367,7 +607,7 @@

                                                categoryCombo

                                              • controller

                                                -
                                                ExpenseC controller
                                                +
                                                ExpenseController controller
                                              • currSession

                                                @@ -378,8 +618,8 @@

                                                expenseCombo

                                                javax.swing.JComboBox<java.lang.String> expenseCombo
                                              • -

                                                isRecurring

                                                -
                                                boolean isRecurring
                                                +

                                                frame

                                                +
                                                javax.swing.JFrame frame
                                              • isRecurringCheckBox

                                                @@ -390,6 +630,10 @@

                                                monthID

                                                int monthID
                                              • +

                                                monthMenu

                                                +
                                                MonthMenuView monthMenu
                                                +
                                              • +
                                              • nameInput

                                                javax.swing.JTextField nameInput
                                              • @@ -401,6 +645,10 @@

                                                selectedCategory

                                                selectedExpense

                                                java.lang.String selectedExpense
                                                +
                                              • +

                                                submit

                                                +
                                                javax.swing.JButton submit
                                                +
                                              • valueInput

                                                javax.swing.JTextField valueInput
                                                @@ -416,17 +664,41 @@

                                                valueInput

                                                Package views.generate_summary_views

                                                  +
                                                • + + +

                                                  Class views.generate_summary_views.GenerateSummaryV extends javax.swing.JFrame implements Serializable

                                                  +
                                                    +
                                                  • +

                                                    Serialized Fields

                                                    +
                                                      +
                                                    • +

                                                      controller

                                                      +
                                                      views.generate_summary_views.GenerateSummaryC controller
                                                      +
                                                    • +
                                                    • +

                                                      monthID

                                                      +
                                                      int monthID
                                                      +
                                                    • +
                                                    • +

                                                      session

                                                      +
                                                      SessionStorage session
                                                      +
                                                    • +
                                                    +
                                                  • +
                                                  +
                                                • -

                                                  Class views.generate_summary_views.GenerateSummaryView extends javax.swing.JFrame implements Serializable

                                                  +

                                                  Class views.generate_summary_views.GenerateSummaryView extends javax.swing.JFrame implements Serializable

                                                  • Serialized Fields

                                                    • controller

                                                      -
                                                      GenerateSummaryC controller
                                                      +
                                                      GenerateSummaryController controller
                                                    • monthID

                                                      @@ -494,21 +766,41 @@

                                                      session

                                                      Package views.session_load

                                                        +
                                                      • + + +

                                                        Class views.session_load.SessionLoadMenuV extends javax.swing.JPanel implements Serializable

                                                        +
                                                          +
                                                        • +

                                                          Serialized Fields

                                                          +
                                                            +
                                                          • +

                                                            controller

                                                            +
                                                            views.session_load.SessionLoadC controller
                                                            +
                                                          • +
                                                          • +

                                                            mainMenuV

                                                            +
                                                            views.session_load.SessionLoadMainMenuVB mainMenuV
                                                            +
                                                          • +
                                                          +
                                                        • +
                                                        +
                                                      • -

                                                        Class views.session_load.SessionLoadMenuView extends javax.swing.JPanel implements Serializable

                                                        +

                                                        Class views.session_load.SessionLoadMenuView extends javax.swing.JPanel implements Serializable

                                                        • Serialized Fields

                                                        • diff --git a/reports/JavaDoc/type-search-index.js b/reports/JavaDoc/type-search-index.js index fabcae2..8a3f0d6 100644 --- a/reports/JavaDoc/type-search-index.js +++ b/reports/JavaDoc/type-search-index.js @@ -1 +1 @@ -typeSearchIndex = [{"p":"views.add_edit_category_views","l":"AddCategoryV"},{"p":"views.add_edit_epense_views","l":"AddExpenseV"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"entities","l":"Category"},{"p":"views.add_edit_category_views","l":"CategoryC"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryIB"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryID"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryOB"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryOD"},{"p":"views.add_edit_category_views","l":"CategoryP"},{"p":"entities","l":"CategoryTest"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryUCI"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryUCITest"},{"p":"views.add_edit_category_views","l":"EditCategoryV"},{"p":"views.add_edit_epense_views","l":"EditExpenseV"},{"p":"entities","l":"EntityException"},{"p":"entities","l":"Expense"},{"p":"views.add_edit_epense_views","l":"ExpenseC"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseIB"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseID"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseOB"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseOD"},{"p":"views.add_edit_epense_views","l":"ExpenseP"},{"p":"entities","l":"ExpenseTest"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseUCI"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseUCITest"},{"p":"views.file_session_storage","l":"FileSessionStorage"},{"p":"views.file_session_storage","l":"FileSessionStorageTest"},{"p":"views.generate_summary_views","l":"GenerateSummaryC"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryIB"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryID"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryOB"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryOD"},{"p":"views.generate_summary_views","l":"GenerateSummaryP"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUCI"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUCInterpreter"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUCInterpreterTest"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUCITest"},{"p":"views.generate_summary_views","l":"GenerateSummaryV"},{"p":"views.load_monthly_menu","l":"LoadMonthMenuVB"},{"p":"","l":"Main"},{"p":"views.main_menu","l":"MainMenuC"},{"p":"views.main_menu","l":"MainMenuP"},{"p":"views.main_menu","l":"MainMenuV"},{"p":"entities","l":"MonthlyStorage"},{"p":"entities","l":"MonthlyStorageTest"},{"p":"use_cases.monthly_menu","l":"MonthMenuOB"},{"p":"use_cases.monthly_menu","l":"MonthMenuOD"},{"p":"views.monthly_menu","l":"MonthMenuP"},{"p":"views.monthly_menu","l":"MonthMenuV"},{"p":"views.create_new_month","l":"NewMonthC"},{"p":"use_cases.create_new_month","l":"NewMonthIB"},{"p":"use_cases.create_new_month","l":"NewMonthID"},{"p":"use_cases.create_new_month","l":"NewMonthOB"},{"p":"use_cases.create_new_month","l":"NewMonthOD"},{"p":"views.create_new_month","l":"NewMonthP"},{"p":"use_cases.create_new_month","l":"NewMonthUCI"},{"p":"use_cases.create_new_month","l":"NewMonthUCITest"},{"p":"views.create_new_month","l":"NewMonthV"},{"p":"views.session_load","l":"SessionLoadC"},{"p":"use_cases.session_load","l":"SessionLoadException"},{"p":"use_cases.session_load","l":"SessionLoadIB"},{"p":"use_cases.session_load","l":"SessionLoadID"},{"p":"views.session_load","l":"SessionLoadMainMenuVB"},{"p":"views.session_load","l":"SessionLoadMenuV"},{"p":"views.session_load","l":"SessionLoadMenuVB"},{"p":"use_cases.session_load","l":"SessionLoadOB"},{"p":"use_cases.session_load","l":"SessionLoadOD"},{"p":"views.session_load","l":"SessionLoadP"},{"p":"use_cases.session_load","l":"SessionLoadUCI"},{"p":"use_cases.session_load","l":"SessionLoadUCITest"},{"p":"use_cases.main_menu","l":"SessionSaveIB"},{"p":"use_cases.main_menu","l":"SessionSaveID"},{"p":"use_cases.main_menu","l":"SessionSaveOB"},{"p":"use_cases.main_menu","l":"SessionSaveOD"},{"p":"use_cases.main_menu","l":"SessionSaveUCI"},{"p":"use_cases.main_menu","l":"SessionSaveUCITest"},{"p":"entities","l":"SessionStorage"},{"p":"use_cases.session_load","l":"SessionStorageG"},{"p":"entities","l":"SessionStorageTest"},{"p":"views.monthly_menu","l":"UpdateViewC"},{"p":"use_cases.monthly_menu","l":"UpdateViewIB"},{"p":"use_cases.monthly_menu","l":"UpdateViewID"},{"p":"use_cases.monthly_menu","l":"UpdateViewUCI"},{"p":"use_cases.monthly_menu","l":"UpdateViewUCITest"}] \ No newline at end of file +typeSearchIndex = [{"p":"views.add_edit_category_views","l":"AddCategoryView"},{"p":"views.add_edit_epense_views","l":"AddExpenseView"},{"l":"All Classes","url":"allclasses-index.html"},{"p":"entities","l":"Category"},{"p":"views.add_edit_category_views","l":"CategoryController"},{"p":"entities","l":"CategoryCreatorInputData"},{"p":"entities","l":"CategoryEditorInputData"},{"p":"entities","l":"CategoryFactory"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryInputBoundary"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryInputData"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryOutputBoundary"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryOutputData"},{"p":"views.add_edit_category_views","l":"CategoryPresenter"},{"p":"use_cases.add_edit_category_use_case","l":"CategoryUseCaseInteractor"},{"p":"views.add_edit_category_views","l":"EditCategoryView"},{"p":"views.add_edit_epense_views","l":"EditExpenseView"},{"p":"entities","l":"EntityException"},{"p":"entities","l":"Expense"},{"p":"views.add_edit_epense_views","l":"ExpenseController"},{"p":"entities","l":"ExpenseCreatorInputData"},{"p":"entities","l":"ExpenseEditorInputData"},{"p":"entities","l":"ExpenseFactory"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseInputBoundary"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseInputData"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseOutputBoundary"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseOutputData"},{"p":"views.add_edit_epense_views","l":"ExpensePresenter"},{"p":"use_cases.add_edit_expenses_use_case","l":"ExpenseUseCaseInteractor"},{"p":"views.file_session_storage","l":"FileSessionStorage"},{"p":"views.generate_summary_views","l":"GenerateSummaryController"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryInputBoundary"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryInputData"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryOutputBoundary"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryOutputData"},{"p":"views.generate_summary_views","l":"GenerateSummaryPresenter"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUseCaseInteractor"},{"p":"use_cases.generate_summary_use_case","l":"GenerateSummaryUseCaseInterpreter"},{"p":"views.generate_summary_views","l":"GenerateSummaryView"},{"p":"views.load_monthly_menu","l":"LoadMonthMenuViewBoundary"},{"p":"","l":"Main"},{"p":"views.main_menu","l":"MainMenuC"},{"p":"views.main_menu","l":"MainMenuP"},{"p":"views.main_menu","l":"MainMenuV"},{"p":"entities","l":"MonthlyStorage"},{"p":"use_cases.monthly_menu","l":"MonthMenuOutputBoundary"},{"p":"use_cases.monthly_menu","l":"MonthMenuOutputData"},{"p":"views.monthly_menu","l":"MonthMenuPresenter"},{"p":"views.monthly_menu","l":"MonthMenuView"},{"p":"entities","l":"MonthObject"},{"p":"entities","l":"MonthObjectFactory"},{"p":"entities","l":"MonthObjectFactoryInputData"},{"p":"views.create_new_month","l":"NewMonthController"},{"p":"use_cases.create_new_month","l":"NewMonthInputBoundary"},{"p":"use_cases.create_new_month","l":"NewMonthInputData"},{"p":"use_cases.create_new_month","l":"NewMonthOutputBoundary"},{"p":"use_cases.create_new_month","l":"NewMonthOutputData"},{"p":"views.create_new_month","l":"NewMonthPresenter"},{"p":"use_cases.create_new_month","l":"NewMonthUseCaseInteractor"},{"p":"views.create_new_month","l":"NewMonthView"},{"p":"views.session_load","l":"SessionLoadController"},{"p":"use_cases.session_load","l":"SessionLoadException"},{"p":"use_cases.session_load","l":"SessionLoadInputBoundary"},{"p":"use_cases.session_load","l":"SessionLoadInputData"},{"p":"views.session_load","l":"SessionLoadMainMenuViewBoundary"},{"p":"views.session_load","l":"SessionLoadMenuView"},{"p":"use_cases.session_load","l":"SessionLoadOutputBoundary"},{"p":"use_cases.session_load","l":"SessionLoadOutputData"},{"p":"views.session_load","l":"SessionLoadPresenter"},{"p":"use_cases.session_load","l":"SessionLoadUseCaseInteractor"},{"p":"use_cases.main_menu","l":"SessionSaveInputBoundary"},{"p":"use_cases.main_menu","l":"SessionSaveInputData"},{"p":"use_cases.main_menu","l":"SessionSaveOutputBoundary"},{"p":"use_cases.main_menu","l":"SessionSaveOutputData"},{"p":"use_cases.main_menu","l":"SessionSaveUseCaseInteractor"},{"p":"entities","l":"SessionStorage"},{"p":"use_cases.session_load","l":"SessionStorageGateway"},{"p":"views.monthly_menu","l":"UpdateViewController"},{"p":"use_cases.monthly_menu","l":"UpdateViewInputBoundary"},{"p":"use_cases.monthly_menu","l":"UpdateViewInputData"},{"p":"use_cases.monthly_menu","l":"UpdateViewUseCaseInteractor"}] \ No newline at end of file diff --git a/reports/JavaDoc/type-search-index.zip b/reports/JavaDoc/type-search-index.zip index a92ab66..afda33b 100644 Binary files a/reports/JavaDoc/type-search-index.zip and b/reports/JavaDoc/type-search-index.zip differ diff --git a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryID.html b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryID.html deleted file mode 100644 index be4a33e..0000000 --- a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryID.html +++ /dev/null @@ -1,495 +0,0 @@ - - - - - -CategoryID - - - - - - - - - - - - - - - -
                                                          - -
                                                          - -
                                                          -
                                                          - -

                                                          Class CategoryID

                                                          -
                                                          -
                                                          -
                                                            -
                                                          • java.lang.Object
                                                          • -
                                                          • -
                                                              -
                                                            • use_cases.add_edit_category_use_case.CategoryInputData
                                                            • -
                                                            -
                                                          • -
                                                          -
                                                          -
                                                            -
                                                          • -
                                                            -
                                                            public class CategoryID
                                                            -extends java.lang.Object
                                                            -
                                                            CategoryID contains all user inputs. - Created in CategoryC and used in CategoryUCI to perform addCategoryInMonth() and editCategoryInMonth().
                                                            -
                                                          • -
                                                          -
                                                          -
                                                          -
                                                            -
                                                          • - -
                                                            -
                                                              -
                                                            • - - -

                                                              Field Summary

                                                              -
                                      Class Summary 
                                      Class
                                      CategoryTestCategoryCreatorInputData -
                                      A class that tests the Category class.
                                      +
                                      A class that holds the input data for use by the CategoryFactory.
                                      +
                                      CategoryEditorInputData +
                                      A class that holds the input data for use by the CategoryFactory.
                                      +
                                      CategoryFactory +
                                      A class that creates and edits a Category.
                                      ExpenseTestExpenseCreatorInputData +
                                      A class that holds the input data for use by the ExpenseFactory.
                                      +
                                      ExpenseEditorInputData +
                                      A class that holds the input data for use by the ExpenseFactory.
                                      +
                                      ExpenseFactory -
                                      A class that tests the Expense class.
                                      +
                                      A class that creates an Expense.
                                      MonthlyStorageTestMonthObjectFactory -
                                      A class that tests the MonthlyStorage class.
                                      +
                                      An abstract class that contains the method needed to create and edit a MonthObject.
                                      SessionStorageMonthObjectFactoryInputData -
                                      A class that will store all the user data for a session.
                                      +
                                      An abstract class that other concrete CreatorInputData and EditorInputData classes extend.
                                      SessionStorageTestSessionStorage -
                                      A class that tests the SessionStorage class.
                                      +
                                      A class that will store all the user data for a session.
                                      - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                      Fields 
                                      Modifier and TypeFieldDescription
                                      private intmonthID 
                                      private java.lang.Stringname 
                                      private java.lang.StringoldCategory 
                                      private SessionStoragesession 
                                      private java.lang.Objectvalue 
                                      -
                                    • -
                                    -
                                  - -
                                  -
                                    -
                                  • - - -

                                    Constructor Summary

                                    - - - - - - - - - - -
                                    Constructors 
                                    ConstructorDescription
                                    CategoryID​(java.lang.String name, - java.lang.Object value, - int monthID, - SessionStorage session, - java.lang.String oldCategory) -
                                    Constructs CategoryID for adding/editing an existing Category Object.
                                    -
                                    -
                                  • -
                                  -
                                  - -
                                  - -
                                  -
                                • -
                                -
                                -
                                -
                                  -
                                • - -
                                  -
                                    -
                                  • - - -

                                    Field Detail

                                    - - - -
                                      -
                                    • -

                                      name

                                      -
                                      private final java.lang.String name
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      value

                                      -
                                      private java.lang.Object value
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      monthID

                                      -
                                      private final int monthID
                                      -
                                    • -
                                    - - - - - - - -
                                      -
                                    • -

                                      oldCategory

                                      -
                                      private final java.lang.String oldCategory
                                      -
                                    • -
                                    -
                                  • -
                                  -
                                  - -
                                  -
                                    -
                                  • - - -

                                    Constructor Detail

                                    - - - -
                                      -
                                    • -

                                      CategoryID

                                      -
                                      public CategoryID​(java.lang.String name,
                                      -                  java.lang.Object value,
                                      -                  int monthID,
                                      -                  SessionStorage session,
                                      -                  java.lang.String oldCategory)
                                      -
                                      Constructs CategoryID for adding/editing an existing Category Object.
                                      -
                                      -
                                      Parameters:
                                      -
                                      name - Category name
                                      -
                                      value - Category budget
                                      -
                                      monthID - An int representing the month which the Category Object belongs to.
                                      -
                                      session - The current session which the MonthlyStorage Object belongs to.
                                      -
                                      oldCategory - An existing Category in the MonthlyStorage Object the user wish to edit. - Otherwise, oldCategory is null when in an add Category use case. (implemented in AddCategoryV)
                                      -
                                      -
                                    • -
                                    -
                                  • -
                                  -
                                  - -
                                  -
                                    -
                                  • - - -

                                    Method Detail

                                    - - - -
                                      -
                                    • -

                                      getName

                                      -
                                      public java.lang.String getName()
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      getValue

                                      -
                                      public java.lang.Object getValue()
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      setValue

                                      -
                                      public void setValue​(double value)
                                      -
                                    • -
                                    - - - -
                                      -
                                    • -

                                      getMonthID

                                      -
                                      public int getMonthID()
                                      -
                                    • -
                                    - - - - - - - -
                                      -
                                    • -

                                      getOldCategory

                                      -
                                      public java.lang.String getOldCategory()
                                      -
                                    • -
                                    -
                                  • -
                                  -
                                  -
                                • -
                                -
                                -
                            - - - - - diff --git a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryIB.html b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryInputBoundary.html similarity index 75% rename from reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryIB.html rename to reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryInputBoundary.html index 3978f0d..6bcf34b 100644 --- a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryIB.html +++ b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryInputBoundary.html @@ -2,10 +2,10 @@ - -CategoryIB + +CategoryInputBoundary - + @@ -22,7 +22,7 @@ + + + + + + + + + +
                            + +
                            + +
                            +
                            + +

                            Class CategoryInputData

                            +
                            +
                            +
                              +
                            • java.lang.Object
                            • +
                            • +
                                +
                              • use_cases.add_edit_category_use_case.CategoryInputData
                              • +
                              +
                            • +
                            +
                            +
                              +
                            • +
                              +
                              public class CategoryInputData
                              +extends java.lang.Object
                              +
                              CategoryInputData contains all user inputs. + Created in CategoryController and used in CategoryUseCaseInteractor to perform addCategoryInMonth() and editCategoryInMonth().
                              +
                            • +
                            +
                            +
                            +
                              +
                            • + +
                              +
                                +
                              • + + +

                                Constructor Summary

                                + + + + + + + + + + +
                                Constructors 
                                ConstructorDescription
                                CategoryInputData​(java.lang.String name, + java.lang.Object value, + int monthID, + SessionStorage session, + java.lang.String oldCategory) +
                                Constructs CategoryInputData for adding/editing an existing Category Object.
                                +
                                +
                              • +
                              +
                              + +
                              + +
                              +
                            • +
                            +
                            +
                            +
                              +
                            • + +
                              +
                                +
                              • + + +

                                Constructor Detail

                                + + + +
                                  +
                                • +

                                  CategoryInputData

                                  +
                                  public CategoryInputData​(java.lang.String name,
                                  +                         java.lang.Object value,
                                  +                         int monthID,
                                  +                         SessionStorage session,
                                  +                         java.lang.String oldCategory)
                                  +
                                  Constructs CategoryInputData for adding/editing an existing Category Object.
                                  +
                                  +
                                  Parameters:
                                  +
                                  name - Category name
                                  +
                                  value - Category budget
                                  +
                                  monthID - An int representing the month which the Category Object belongs to.
                                  +
                                  session - The current session which the MonthlyStorage Object belongs to.
                                  +
                                  oldCategory - An existing Category in the MonthlyStorage Object the user wish to edit. + Otherwise, oldCategory is null when in an add Category use case. (implemented in AddCategoryView)
                                  +
                                  +
                                • +
                                +
                              • +
                              +
                              + +
                              +
                                +
                              • + + +

                                Method Detail

                                + + + +
                                  +
                                • +

                                  getName

                                  +
                                  public java.lang.String getName()
                                  +
                                • +
                                + + + +
                                  +
                                • +

                                  getValue

                                  +
                                  public java.lang.Object getValue()
                                  +
                                • +
                                + + + +
                                  +
                                • +

                                  getMonthID

                                  +
                                  public int getMonthID()
                                  +
                                • +
                                + + + + + + + +
                                  +
                                • +

                                  getOldCategory

                                  +
                                  public java.lang.String getOldCategory()
                                  +
                                • +
                                +
                              • +
                              +
                              +
                            • +
                            +
                            +
                            +
                            + + + + diff --git a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOB.html b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOutputBoundary.html similarity index 76% rename from reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOB.html rename to reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOutputBoundary.html index 6e6bd63..b3b6b39 100644 --- a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOB.html +++ b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryOutputBoundary.html @@ -2,10 +2,10 @@ - -CategoryOB + +CategoryOutputBoundary - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                            - -
                            - -
                            -
                            - -

                            Class CategoryUCITest

                            -
                            -
                            -
                              -
                            • java.lang.Object
                            • -
                            • -
                                -
                              • use_cases.add_edit_category_use_case.CategoryUseCaseInteractorTest
                              • -
                              -
                            • -
                            -
                            -
                              -
                            • -
                              -
                              class CategoryUCITest
                              -extends java.lang.Object
                              -
                              CategoryUCITest contains tests for the Category use cases (add and edit category).
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              -
                                -
                              • - - -

                                Field Summary

                                - - - - - - - - - - - - -
                                Fields 
                                Modifier and TypeFieldDescription
                                private static SessionStoragesession 
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Constructor Summary

                                - - - - - - - - - - -
                                Constructors 
                                ConstructorDescription
                                CategoryUCITest() 
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Summary

                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                All Methods Static Methods Instance Methods Concrete Methods 
                                Modifier and TypeMethodDescription
                                (package private) voidaddCategoryInMonthInvalidDoubleFail() -
                                Tests fail add case when user tries to add a new Category budget that is an invalid double.
                                -
                                (package private) voidaddCategoryInMonthNegValueFail() -
                                Tests fail add case when user tries to add a new Category budget that is a negative number.
                                -
                                (package private) voidaddCategoryInMonthSameNameFail() -
                                Tests fail add case when user tries to add a new Category name that exists in the MonthlyStorage.
                                -
                                (package private) voidaddCategoryInMonthSuccess() -
                                Tests success add case by checking if the size of categoryData in MonthlyStorage is correctly updated.
                                -
                                static voidcategorySetUp() -
                                Creates a SessionStorage for the following test cases.
                                -
                                (package private) voideditCategoryInMonthInvalidDoubleFail() -
                                Tests fail edit case when user tries to edit the Category budget into an invalid double.
                                -
                                (package private) voideditCategoryInMonthNegValueFail() -
                                Tests fail edit case when user tries to edit the Category budget into a negative number.
                                -
                                (package private) voideditCategoryInMonthNoCategoryFail() -
                                Tests fail edit case when user tries to edit a Category that does not exist in MonthlyStorage.
                                -
                                (package private) voideditCategoryInMonthSameNameFail() -
                                Tests fail edit case when user tries to edit the Category name to another name that exists in MonthlyStorage.
                                -
                                (package private) voideditCategoryInMonthSuccess() -
                                Tests success edit use case by adding a valid category and then a successful edit.
                                -
                                -
                                  -
                                • - - -

                                  Methods inherited from class java.lang.Object

                                  -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              - -
                              - -
                              -
                                -
                              • - - -

                                Constructor Detail

                                - - - -
                                  -
                                • -

                                  CategoryUCITest

                                  -
                                  CategoryUCITest()
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Detail

                                - - - -
                                  -
                                • -

                                  categorySetUp

                                  -
                                  @BeforeAll
                                  -public static void categorySetUp()
                                  -
                                  Creates a SessionStorage for the following test cases.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addCategoryInMonthSuccess

                                  -
                                  @Test
                                  -void addCategoryInMonthSuccess()
                                  -                        throws EntityException
                                  -
                                  Tests success add case by checking if the size of categoryData in MonthlyStorage is correctly updated.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addCategoryInMonthSameNameFail

                                  -
                                  @Test
                                  -void addCategoryInMonthSameNameFail()
                                  -                             throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Category name that exists in the MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addCategoryInMonthNegValueFail

                                  -
                                  @Test
                                  -void addCategoryInMonthNegValueFail()
                                  -                             throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Category budget that is a negative number.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addCategoryInMonthInvalidDoubleFail

                                  -
                                  @Test
                                  -void addCategoryInMonthInvalidDoubleFail()
                                  -                                  throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Category budget that is an invalid double.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editCategoryInMonthSuccess

                                  -
                                  @Test
                                  -void editCategoryInMonthSuccess()
                                  -                         throws EntityException
                                  -
                                  Tests success edit use case by adding a valid category and then a successful edit. - Use findCategory() to see if the category name is successfully edited.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editCategoryInMonthSameNameFail

                                  -
                                  @Test
                                  -void editCategoryInMonthSameNameFail()
                                  -                              throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Category name to another name that exists in MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editCategoryInMonthNegValueFail

                                  -
                                  @Test
                                  -void editCategoryInMonthNegValueFail()
                                  -                              throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Category budget into a negative number.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editCategoryInMonthNoCategoryFail

                                  -
                                  @Test
                                  -void editCategoryInMonthNoCategoryFail()
                                  -                                throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit a Category that does not exist in MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editCategoryInMonthInvalidDoubleFail

                                  -
                                  @Test
                                  -void editCategoryInMonthInvalidDoubleFail()
                                  -                                   throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Category budget into an invalid double.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - if a valid method call throws, so that should fail the test
                                  -
                                  -
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                            - - - - diff --git a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUCI.html b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUseCaseInteractor.html similarity index 62% rename from reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUCI.html rename to reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUseCaseInteractor.html index 307bd95..f5fcb1f 100644 --- a/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUCI.html +++ b/reports/JavaDoc/use_cases/add_edit_category_use_case/CategoryUseCaseInteractor.html @@ -2,10 +2,10 @@ - -CategoryUCI + +CategoryUseCaseInteractor - + @@ -22,13 +22,13 @@ - - - - - - - - - -
                            - -
                            - -
                            -
                            - -

                            Class ExpenseUCITest

                            -
                            -
                            -
                              -
                            • java.lang.Object
                            • -
                            • -
                                -
                              • use_cases.add_edit_expenses_use_case.ExpenseUseCaseInteractorTest
                              • -
                              -
                            • -
                            -
                            -
                              -
                            • -
                              -
                              class ExpenseUCITest
                              -extends java.lang.Object
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              -
                                -
                              • - - -

                                Field Summary

                                - - - - - - - - - - - - -
                                Fields 
                                Modifier and TypeFieldDescription
                                private static Categoryfood 
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Constructor Summary

                                - - - - - - - - - - -
                                Constructors 
                                ConstructorDescription
                                ExpenseUCITest() 
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Summary

                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                All Methods Static Methods Instance Methods Concrete Methods 
                                Modifier and TypeMethodDescription
                                (package private) voidaddExpenseInMonthInvalidDoubleFail() -
                                Tests success add case by checking if the size of expenseData in recurringData is correctly updated.
                                -
                                (package private) voidaddExpenseInMonthNegValueFail() -
                                Tests fail add case when user tries to add a new Expense budget that is a negative number.
                                -
                                (package private) voidaddExpenseInMonthSameNameFail() -
                                Tests fail add case when user tries to add a new Expense name that exists in the MonthlyStorage.
                                -
                                (package private) voidaddExpenseInMonthSuccess() -
                                Tests success add case by checking if the size of expenseData in MonthlyStorage is correctly updated.
                                -
                                (package private) voidaddExpenseInRecurringSameNameFail() 
                                (package private) voidaddExpenseInRecurringSuccess() -
                                Tests fail add case when user tries to add a new Expense name that exists in the recurringData.
                                -
                                (package private) voideditExpenseInMonthInvalidDoubleFail() -
                                Tests fail edit case when user tries to edit the Expense budget into an invalid double.
                                -
                                (package private) voideditExpenseInMonthNegValueFail() -
                                Tests fail edit case when user tries to edit the Expense budget into a negative number.
                                -
                                (package private) voideditExpenseInMonthNoExpenseFail() -
                                Tests fail edit case when user tries to edit an Expense that does not exist in MonthlyStorage.
                                -
                                (package private) voideditExpenseInMonthSameNameFail() -
                                Tests fail edit case when user tries to edit the Expense name to another name that exists in MonthlyStorage.
                                -
                                (package private) voideditExpenseInMonthSuccess() -
                                Tests success edit use case by adding one valid expense and then a successful edit.
                                -
                                static voidexpenseSetUp() -
                                Creates a SessionStorage for the following test cases.
                                -
                                -
                                  -
                                • - - -

                                  Methods inherited from class java.lang.Object

                                  -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              - -
                              - -
                              -
                                -
                              • - - -

                                Constructor Detail

                                - - - -
                                  -
                                • -

                                  ExpenseUCITest

                                  -
                                  ExpenseUCITest()
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Detail

                                - - - -
                                  -
                                • -

                                  expenseSetUp

                                  -
                                  @BeforeAll
                                  -public static void expenseSetUp()
                                  -
                                  Creates a SessionStorage for the following test cases.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addExpenseInMonthSuccess

                                  -
                                  @Test
                                  -void addExpenseInMonthSuccess()
                                  -                       throws EntityException
                                  -
                                  Tests success add case by checking if the size of expenseData in MonthlyStorage is correctly updated.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addExpenseInMonthSameNameFail

                                  -
                                  @Test
                                  -void addExpenseInMonthSameNameFail()
                                  -                            throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Expense name that exists in the MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addExpenseInMonthNegValueFail

                                  -
                                  @Test
                                  -void addExpenseInMonthNegValueFail()
                                  -                            throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Expense budget that is a negative number.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addExpenseInMonthInvalidDoubleFail

                                  -
                                  @Test
                                  -void addExpenseInMonthInvalidDoubleFail()
                                  -                                 throws EntityException
                                  -
                                  Tests success add case by checking if the size of expenseData in recurringData is correctly updated.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  addExpenseInRecurringSuccess

                                  -
                                  @Test
                                  -void addExpenseInRecurringSuccess()
                                  -                           throws EntityException
                                  -
                                  Tests fail add case when user tries to add a new Expense name that exists in the recurringData.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - - - - - -
                                  -
                                • -

                                  editExpenseInMonthSuccess

                                  -
                                  @Test
                                  -void editExpenseInMonthSuccess()
                                  -                        throws EntityException
                                  -
                                  Tests success edit use case by adding one valid expense and then a successful edit. - Use findExpense() to see if the expense_name is successfully edited.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editExpenseInMonthSameNameFail

                                  -
                                  @Test
                                  -void editExpenseInMonthSameNameFail()
                                  -                             throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Expense name to another name that exists in MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editExpenseInMonthNegValueFail

                                  -
                                  @Test
                                  -void editExpenseInMonthNegValueFail()
                                  -                             throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Expense budget into a negative number.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editExpenseInMonthNoExpenseFail

                                  -
                                  @Test
                                  -void editExpenseInMonthNoExpenseFail()
                                  -                              throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit an Expense that does not exist in MonthlyStorage.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  editExpenseInMonthInvalidDoubleFail

                                  -
                                  @Test
                                  -void editExpenseInMonthInvalidDoubleFail()
                                  -                                  throws EntityException
                                  -
                                  Tests fail edit case when user tries to edit the Expense budget into an invalid double.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException
                                  -
                                  -
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                            - - - - diff --git a/reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUCI.html b/reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUseCaseInteractor.html similarity index 59% rename from reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUCI.html rename to reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUseCaseInteractor.html index ebecc68..764eb62 100644 --- a/reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUCI.html +++ b/reports/JavaDoc/use_cases/add_edit_expenses_use_case/ExpenseUseCaseInteractor.html @@ -2,10 +2,10 @@ - -ExpenseUCI + +ExpenseUseCaseInteractor - + @@ -22,13 +22,13 @@ - - - - - - - - - -
                            - -
                            - -
                            -
                            - -

                            Class NewMonthUCI

                            -
                            -
                            -
                              -
                            • java.lang.Object
                            • -
                            • -
                                -
                              • use_cases.create_new_month.NewMonthUseCaseInteractor
                              • -
                              -
                            • -
                            -
                            -
                              -
                            • -
                              -
                              All Implemented Interfaces:
                              -
                              NewMonthIB
                              -
                              -
                              -
                              public class NewMonthUCI
                              -extends java.lang.Object
                              -implements NewMonthIB
                              -
                              The use case interactor class for creating a new MonthlyStorage. - This class implements the NewMonthIB interface. The controller - class calls this class to get the NewMonthOD object.
                              -
                            • -
                            -
                            -
                            - -
                            -
                            -
                              -
                            • - -
                              -
                                -
                              • - - -

                                Field Detail

                                - - - -
                                  -
                                • -

                                  outputBoundary

                                  -
                                  private final NewMonthOB outputBoundary
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Constructor Detail

                                - - - -
                                  -
                                • -

                                  NewMonthUCI

                                  -
                                  public NewMonthUCI​(NewMonthOB outputBoundary)
                                  -
                                  Construct a NewMonthUCI.
                                  -
                                  -
                                  Parameters:
                                  -
                                  outputBoundary - NewMonthOB related to using output
                                  -
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Detail

                                - - - -
                                  -
                                • -

                                  createOutput

                                  -
                                  public NewMonthOD createOutput​(NewMonthID input)
                                  -
                                  Pass in and use NewMonthID containing input data to create output data.
                                  -
                                  -
                                  Specified by:
                                  -
                                  createOutput in interface NewMonthIB
                                  -
                                  Parameters:
                                  -
                                  input - input passed in from the controller class
                                  -
                                  Returns:
                                  -
                                  NewMonthOD object that contains output data
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  checkMonthInSession

                                  -
                                  private static boolean checkMonthInSession​(SessionStorage session,
                                  -                                           int monthID)
                                  -
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                            - - - - diff --git a/reports/JavaDoc/use_cases/create_new_month/NewMonthUCITest.html b/reports/JavaDoc/use_cases/create_new_month/NewMonthUCITest.html deleted file mode 100644 index dad97dc..0000000 --- a/reports/JavaDoc/use_cases/create_new_month/NewMonthUCITest.html +++ /dev/null @@ -1,505 +0,0 @@ - - - - - -NewMonthUCITest - - - - - - - - - - - - - - - -
                            - -
                            - -
                            -
                            - -

                            Class NewMonthUCITest

                            -
                            -
                            -
                              -
                            • java.lang.Object
                            • -
                            • -
                                -
                              • use_cases.create_new_month.NewMonthUseCaseInteractorTest
                              • -
                              -
                            • -
                            -
                            -
                              -
                            • -
                              -
                              class NewMonthUCITest
                              -extends java.lang.Object
                              -
                              Tests the NewMonthUCI class.
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              - -
                              - -
                              -
                                -
                              • - - -

                                Constructor Summary

                                - - - - - - - - - - -
                                Constructors 
                                ConstructorDescription
                                NewMonthUCITest() 
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Summary

                                - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                                All Methods Instance Methods Concrete Methods 
                                Modifier and TypeMethodDescription
                                (package private) voidcreateOutputFailMonthAlreadyExist() -
                                Test case when new MonthlyStorage is not added to session because there already exist a - MonthlyStorage with the same monthID.
                                -
                                (package private) voidcreateOutputNoRecurExpenseSuccess() -
                                Test case when new MonthlyStorage is created with correct ID.
                                -
                                (package private) voidcreateOutputRecurExpenseFail() -
                                Test case when new MonthlyStorage is not added to session because there were duplicate - recurring expenses.
                                -
                                (package private) voidcreateOutputRecurExpenseSuccess() -
                                Test case when new MonthlyStorage is created with correct ID, and recurring expenses added.
                                -
                                (package private) voidsetUp() 
                                -
                                  -
                                • - - -

                                  Methods inherited from class java.lang.Object

                                  -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                              -
                            • - -
                              -
                                -
                              • - - -

                                Field Detail

                                - - - -
                                  -
                                • -

                                  outputBoundary

                                  -
                                  static NewMonthOB outputBoundary
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  monthID1

                                  -
                                  static int monthID1
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  monthID2

                                  -
                                  static int monthID2
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  budgetValue

                                  -
                                  static double budgetValue
                                  -
                                • -
                                - - - - - - - - -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Constructor Detail

                                - - - -
                                  -
                                • -

                                  NewMonthUCITest

                                  -
                                  NewMonthUCITest()
                                  -
                                • -
                                -
                              • -
                              -
                              - -
                              -
                                -
                              • - - -

                                Method Detail

                                - - - -
                                  -
                                • -

                                  setUp

                                  -
                                  @BeforeEach
                                  -void setUp()
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  createOutputNoRecurExpenseSuccess

                                  -
                                  @Test
                                  -void createOutputNoRecurExpenseSuccess()
                                  -                                throws EntityException
                                  -
                                  Test case when new MonthlyStorage is created with correct ID.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - when test fails
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  createOutputRecurExpenseSuccess

                                  -
                                  @Test
                                  -void createOutputRecurExpenseSuccess()
                                  -                              throws EntityException
                                  -
                                  Test case when new MonthlyStorage is created with correct ID, and recurring expenses added.
                                  -
                                  -
                                  Throws:
                                  -
                                  EntityException - when test fails
                                  -
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  createOutputRecurExpenseFail

                                  -
                                  @Test
                                  -void createOutputRecurExpenseFail()
                                  -
                                  Test case when new MonthlyStorage is not added to session because there were duplicate - recurring expenses. This should not occur if all use case in the program run correctly.
                                  -
                                • -
                                - - - -
                                  -
                                • -

                                  createOutputFailMonthAlreadyExist

                                  -
                                  @Test
                                  -void createOutputFailMonthAlreadyExist()
                                  -
                                  Test case when new MonthlyStorage is not added to session because there already exist a - MonthlyStorage with the same monthID.
                                  -
                                • -
                                -
                              • -
                              -
                              -
                            • -
                            -
                            -
                            -
                            - - - - diff --git a/reports/JavaDoc/use_cases/create_new_month/NewMonthUseCaseInteractor.html b/reports/JavaDoc/use_cases/create_new_month/NewMonthUseCaseInteractor.html new file mode 100644 index 0000000..56ec031 --- /dev/null +++ b/reports/JavaDoc/use_cases/create_new_month/NewMonthUseCaseInteractor.html @@ -0,0 +1,333 @@ + + + + + +NewMonthUseCaseInteractor + + + + + + + + + + + + + + + +
                            + +
                            + +
                            +
                            + +

                            Class NewMonthUseCaseInteractor

                            +
                            +
                            +
                              +
                            • java.lang.Object
                            • +
                            • +
                                +
                              • use_cases.create_new_month.NewMonthUseCaseInteractor
                              • +
                              +
                            • +
                            +
                            +
                              +
                            • +
                              +
                              All Implemented Interfaces:
                              +
                              NewMonthInputBoundary
                              +
                              +
                              +
                              public class NewMonthUseCaseInteractor
                              +extends java.lang.Object
                              +implements NewMonthInputBoundary
                              +
                              The use case interactor class for creating a new MonthlyStorage. + This class implements the NewMonthInputBoundary interface. The controller + class calls this class to get the NewMonthOutputData object.
                              +
                            • +
                            +
                            +
                            +
                              +
                            • + +
                              + +
                              + +
                              +
                                +
                              • + + +

                                Method Summary

                                + + + + + + + + + + + + +
                                All Methods Instance Methods Concrete Methods 
                                Modifier and TypeMethodDescription
                                NewMonthOutputDatacreateOutput​(NewMonthInputData input) +
                                Pass in and use NewMonthInputData containing input data to add new MonthlyStorage to session + and to create output data.
                                +
                                +
                                  +
                                • + + +

                                  Methods inherited from class java.lang.Object

                                  +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                                • +
                                +
                              • +
                              +
                              +
                            • +
                            +
                            +
                            +
                              +
                            • + +
                              +
                                +
                              • + + +

                                Constructor Detail

                                + + + +
                                  +
                                • +

                                  NewMonthUseCaseInteractor

                                  +
                                  public NewMonthUseCaseInteractor​(NewMonthOutputBoundary outputBoundary)
                                  +
                                  Construct a NewMonthUseCaseInteractor.
                                  +
                                  +
                                  Parameters:
                                  +
                                  outputBoundary - NewMonthOutputBoundary related to using output
                                  +
                                  +
                                • +
                                +
                              • +
                              +
                              + +
                              +
                                +
                              • + + +

                                Method Detail

                                + + + +
                                  +
                                • +

                                  createOutput

                                  +
                                  public NewMonthOutputData createOutput​(NewMonthInputData input)
                                  +
                                  Pass in and use NewMonthInputData containing input data to add new MonthlyStorage to session + and to create output data.
                                  +
                                  +
                                  Specified by:
                                  +
                                  createOutput in interface NewMonthInputBoundary
                                  +
                                  Parameters:
                                  +
                                  input - input passed in from the controller class
                                  +
                                  Returns:
                                  +
                                  NewMonthOutputData object that contains output data
                                  +
                                  +
                                • +
                                +
                              • +
                              +
                              +
                            • +
                            +
                            +
                            +
                            + + + + diff --git a/reports/JavaDoc/use_cases/create_new_month/package-summary.html b/reports/JavaDoc/use_cases/create_new_month/package-summary.html index f4bbfaa..3e3a357 100644 --- a/reports/JavaDoc/use_cases/create_new_month/package-summary.html +++ b/reports/JavaDoc/use_cases/create_new_month/package-summary.html @@ -2,10 +2,10 @@ - + use_cases.create_new_month - + @@ -107,13 +107,13 @@

                            Package use_cases.create_new_month

                            -NewMonthIB +NewMonthInputBoundary
                            The input boundary interface for creating a new MonthlyStorage.
                            -NewMonthOB +NewMonthOutputBoundary
                            The output boundary interface for creating a mew MonthlyStorage.
                            @@ -130,29 +130,23 @@

                            Package use_cases.create_new_month

                            -NewMonthID +NewMonthInputData
                            The input data class for storing Create New Month use case inputs.
                            -NewMonthOD +NewMonthOutputData
                            The output data class for storing view output.
                            -NewMonthUCI +NewMonthUseCaseInteractor
                            The use case interactor class for creating a new MonthlyStorage.
                            - -NewMonthUCITest - -
                            Tests the NewMonthUCI class.
                            - - diff --git a/reports/JavaDoc/use_cases/create_new_month/package-tree.html b/reports/JavaDoc/use_cases/create_new_month/package-tree.html index 127259a..5af62c0 100644 --- a/reports/JavaDoc/use_cases/create_new_month/package-tree.html +++ b/reports/JavaDoc/use_cases/create_new_month/package-tree.html @@ -2,10 +2,10 @@ - + use_cases.create_new_month Class Hierarchy - + @@ -106,10 +106,9 @@

                            Class Hierarchy

                            @@ -117,8 +116,8 @@

                            Class Hierarchy

                            Interface Hierarchy

                        diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryIB.html b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryInputBoundary.html similarity index 81% rename from reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryIB.html rename to reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryInputBoundary.html index 2137abb..a152062 100644 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryIB.html +++ b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryInputBoundary.html @@ -2,10 +2,10 @@ - -GenerateSummaryIB + +GenerateSummaryInputBoundary - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class GenerateSummaryUCITest

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.generate_summary_use_case.GenerateSummaryUseCaseInteractorTest
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          class GenerateSummaryUCITest
                          -extends java.lang.Object
                          -
                          A class that tests the GenerateSummaryUCI.
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              GenerateSummaryUCITest

                              -
                              GenerateSummaryUCITest()
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              GenerateSummaryUCICreateBaseEntities

                              -
                              @BeforeAll
                              -public static void GenerateSummaryUCICreateBaseEntities()
                              -                                                 throws EntityException
                              -
                              Runs once before the methods to set up the necessary entities for the tests.
                              -
                              -
                              Throws:
                              -
                              EntityException - if Category and Expense names are the same, which is not a concern for this test.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryUCINormalMonth

                              -
                              @Test
                              -public void GenerateSummaryUCINormalMonth()
                              -                                   throws EntityException
                              -
                              Tests generateNewSummary() with a MonthlyStorage with Expense and Category objects.
                              -
                              -
                              Throws:
                              -
                              EntityException - if there is no MonthID corresponding to a month in a monthly storage. This error being - raised is a sign that there is something broken in the way that the MonthlyStorage objects are stored in the - SessionStorage, and is not something the user can fix.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryUCIFullMonth

                              -
                              @Test
                              -public void GenerateSummaryUCIFullMonth()
                              -                                 throws EntityException
                              -
                              Tests generateNewSummary() with a MonthlyStorage with Expense and Category objects and is over budget.
                              -
                              -
                              Throws:
                              -
                              EntityException - if there is no MonthID corresponding to a month in a monthly storage. This error being - raised is a sign that there is something broken in the way that the MonthlyStorage objects are stored in the - SessionStorage, and is not something the user can fix.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryUCIEmptyMonth

                              -
                              @Test
                              -public void GenerateSummaryUCIEmptyMonth()
                              -                                  throws EntityException
                              -
                              Tests generateNewSummary() with an empty MonthlyStorage.
                              -
                              -
                              Throws:
                              -
                              EntityException - if there is no MonthID corresponding to a month in a monthly storage. This error being - raised is a sign that there is something broken in the way that the MonthlyStorage objects are stored in the - SessionStorage, and is not something the user can fix.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryUCIFailCase

                              -
                              @Test
                              -public void GenerateSummaryUCIFailCase()
                              -
                              Tests generateNewSummary() with an invalid test case. - Note: An invalid test case should never occur in this use case. If an EntityException is thrown, it means that - the monthID that is passed in from the MonthMenuV is not the monthID of that MonthlyStorage. If this happens, - there is nothing the user can do except for try to restart the program. Additionally, valid entity data is - checked by other use cases, so all Expense and Category data should have distinct names and non-negative numbers - in this MonthlyStorage.
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreter.html b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreter.html deleted file mode 100644 index 3ddee2f..0000000 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreter.html +++ /dev/null @@ -1,480 +0,0 @@ - - - - - -GenerateSummaryUCInterpreter - - - - - - - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class GenerateSummaryUCInterpreter

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.generate_summary_use_case.GenerateSummaryUseCaseInterpreter
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          public class GenerateSummaryUCInterpreter
                          -extends java.lang.Object
                          -
                          A class that generates all the data in the correct format to make the Bar Graph and Pie Chart.
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Field Summary

                            - - - - - - - - - - - - - - - - - -
                            Fields 
                            Modifier and TypeFieldDescription
                            private doubleremainder 
                            private java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>>statisticalData 
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Summary

                            - - - - - - - - - - -
                            Constructors 
                            ConstructorDescription
                            GenerateSummaryUCInterpreter​(MonthlyStorage monthlyStorage) -
                            Creates a new GenerateSummaryUCInterpreter with the provided MonthlyStorage.
                            -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Summary

                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            private doublegenerateRemainder​(MonthlyStorage monthlyStorage, - java.util.Map<Category,​java.util.ArrayList<Expense>> mappedExpenses) -
                            Generates a double representing the money that the user has not spent in their budget.
                            -
                            private java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>>generateStatisticalData​(MonthlyStorage monthlyStorage, - java.util.Map<Category,​java.util.ArrayList<Expense>> mappedExpenses) -
                            Generates a map containing String names of Category objects as the keys and doubles representing money spent - and budget as the values.
                            -
                            doublegetRemainder() -
                            Gets the remainder of this MonthlyStorage object.
                            -
                            java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>>getStatisticalData() -
                            Gets the statistical data required for creating the graphs.
                            -
                            private java.util.Map<Category,​java.util.ArrayList<Expense>>sortExpenses​(MonthlyStorage monthlyStorage) -
                            Generates a map that has Category objects as keys and a list of Expense objects associated with that Category as - values.
                            -
                            -
                              -
                            • - - -

                              Methods inherited from class java.lang.Object

                              -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Field Detail

                            - - - -
                              -
                            • -

                              statisticalData

                              -
                              private final java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>> statisticalData
                              -
                            • -
                            - - - -
                              -
                            • -

                              remainder

                              -
                              private final double remainder
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              GenerateSummaryUCInterpreter

                              -
                              public GenerateSummaryUCInterpreter​(MonthlyStorage monthlyStorage)
                              -
                              Creates a new GenerateSummaryUCInterpreter with the provided MonthlyStorage.
                              -
                              -
                              Parameters:
                              -
                              monthlyStorage - the MonthlyStorage object that the data will be generated for
                              -
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              getStatisticalData

                              -
                              public java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>> getStatisticalData()
                              -
                              Gets the statistical data required for creating the graphs.
                              -
                              -
                              Returns:
                              -
                              a Map holding data used to make the graphs
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              getRemainder

                              -
                              public double getRemainder()
                              -
                              Gets the remainder of this MonthlyStorage object.
                              -
                              -
                              Returns:
                              -
                              the remainder of this MonthlyStorage
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              sortExpenses

                              -
                              private java.util.Map<Category,​java.util.ArrayList<Expense>> sortExpenses​(MonthlyStorage monthlyStorage)
                              -
                              Generates a map that has Category objects as keys and a list of Expense objects associated with that Category as - values.
                              -
                              -
                              Parameters:
                              -
                              monthlyStorage - a MonthlyStorage object for the current month
                              -
                              Returns:
                              -
                              a Map holding sorted month data
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              generateStatisticalData

                              -
                              private java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>> generateStatisticalData​(MonthlyStorage monthlyStorage,
                              -                                                                                                            java.util.Map<Category,​java.util.ArrayList<Expense>> mappedExpenses)
                              -
                              Generates a map containing String names of Category objects as the keys and doubles representing money spent - and budget as the values.
                              -
                              -
                              Parameters:
                              -
                              monthlyStorage - a MonthlyStorage object for the current month
                              -
                              mappedExpenses - a Map that has Category objects as keys and a list of Expense objects associated with that - Category as values
                              -
                              Returns:
                              -
                              a Map holding data used to make the graphs. The key values are Stings representing Category names, and - the values are lists with the first double as the money spent in the Category and the second as the remainder of - money left in the budget of that Category.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              generateRemainder

                              -
                              private double generateRemainder​(MonthlyStorage monthlyStorage,
                              -                                 java.util.Map<Category,​java.util.ArrayList<Expense>> mappedExpenses)
                              -
                              Generates a double representing the money that the user has not spent in their budget.
                              -
                              -
                              Parameters:
                              -
                              monthlyStorage - a MonthlyStorage object for the current month
                              -
                              mappedExpenses - a Map that has Category objects as keys and a list of Expense objects associated with that - Category as values
                              -
                              Returns:
                              -
                              the remainder of this MonthlyStorage
                              -
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreterTest.html b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreterTest.html deleted file mode 100644 index d16a0a1..0000000 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCInterpreterTest.html +++ /dev/null @@ -1,455 +0,0 @@ - - - - - -GenerateSummaryUCInterpreterTest - - - - - - - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class GenerateSummaryUCInterpreterTest

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.generate_summary_use_case.GenerateSummaryUseCaseInterpreterTest
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          class GenerateSummaryUCInterpreterTest
                          -extends java.lang.Object
                          -
                          A class that tests the GenerateSummaryUCInterpreter class.
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              GenerateSummaryUCInterpreterTest

                              -
                              GenerateSummaryUCInterpreterTest()
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              GenerateSummaryUCInterpreterCreateBaseEntities

                              -
                              @BeforeAll
                              -public static void GenerateSummaryUCInterpreterCreateBaseEntities()
                              -                                                           throws EntityException
                              -
                              Runs once before the methods to set up the necessary entities for the tests.
                              -
                              -
                              Throws:
                              -
                              EntityException - if Category and Expense names are the same, which is not a concern for this test.
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryNormalMonth

                              -
                              @Test
                              -public void GenerateSummaryNormalMonth()
                              -
                              Tests getStatisticalData() and getRemainder() on a MonthlyStorage that contains Expense and Category objects.
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryFullMonth

                              -
                              @Test
                              -public void GenerateSummaryFullMonth()
                              -
                              Tests getStatisticalData() and getRemainder() on a MonthlyStorage that contains Expense and Category objects and - is over budget.
                              -
                            • -
                            - - - -
                              -
                            • -

                              GenerateSummaryEmptyMonth

                              -
                              @Test
                              -public void GenerateSummaryEmptyMonth()
                              -
                              Tests getStatisticalData() and getRemainder() on an empty MonthlyStorage object.
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCI.html b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUseCaseInteractor.html similarity index 70% rename from reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCI.html rename to reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUseCaseInteractor.html index 9cd1b58..d418697 100644 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUCI.html +++ b/reports/JavaDoc/use_cases/generate_summary_use_case/GenerateSummaryUseCaseInteractor.html @@ -2,10 +2,10 @@ - -GenerateSummaryUCI + +GenerateSummaryUseCaseInteractor - + @@ -22,7 +22,7 @@ + + + + + + + + + +
                        + +
                        + +
                        +
                        + +

                        Class GenerateSummaryUseCaseInterpreter

                        +
                        +
                        +
                          +
                        • java.lang.Object
                        • +
                        • +
                            +
                          • use_cases.generate_summary_use_case.GenerateSummaryUseCaseInterpreter
                          • +
                          +
                        • +
                        +
                        +
                          +
                        • +
                          +
                          public class GenerateSummaryUseCaseInterpreter
                          +extends java.lang.Object
                          +
                          A class that generates all the data in the correct format to make the Bar Graph and Pie Chart.
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          + +
                          + +
                          +
                            +
                          • + + +

                            Method Summary

                            + + + + + + + + + + + + + + + + + +
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            doublegetRemainder() +
                            Gets the remainder of this MonthlyStorage object.
                            +
                            java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>>getStatisticalData() +
                            Gets the statistical data required for creating the graphs.
                            +
                            +
                              +
                            • + + +

                              Methods inherited from class java.lang.Object

                              +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          +
                            +
                          • + + +

                            Constructor Detail

                            + + + +
                              +
                            • +

                              GenerateSummaryUseCaseInterpreter

                              +
                              public GenerateSummaryUseCaseInterpreter​(MonthlyStorage monthlyStorage)
                              +
                              Creates a new GenerateSummaryUseCaseInterpreter with the provided MonthlyStorage.
                              +
                              +
                              Parameters:
                              +
                              monthlyStorage - the MonthlyStorage object that the data will be generated for
                              +
                              +
                            • +
                            +
                          • +
                          +
                          + +
                          +
                            +
                          • + + +

                            Method Detail

                            + + + +
                              +
                            • +

                              getStatisticalData

                              +
                              public java.util.Map<java.lang.String,​java.util.ArrayList<java.lang.Double>> getStatisticalData()
                              +
                              Gets the statistical data required for creating the graphs.
                              +
                              +
                              Returns:
                              +
                              a Map holding data used to make the graphs
                              +
                              +
                            • +
                            + + + +
                              +
                            • +

                              getRemainder

                              +
                              public double getRemainder()
                              +
                              Gets the remainder of this MonthlyStorage object.
                              +
                              +
                              Returns:
                              +
                              the remainder of this MonthlyStorage
                              +
                              +
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                        + + + + diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/package-summary.html b/reports/JavaDoc/use_cases/generate_summary_use_case/package-summary.html index 647d8bf..b866590 100644 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/package-summary.html +++ b/reports/JavaDoc/use_cases/generate_summary_use_case/package-summary.html @@ -2,10 +2,10 @@ - + use_cases.generate_summary_use_case - + @@ -107,15 +107,15 @@

                        Package use_cases.generate_summary_use_ca -GenerateSummaryIB +GenerateSummaryInputBoundary -
                        An interface that the GenerateSummaryUCI interactor implements to maintain the dependency inversion principle.
                        +
                        An interface that the GenerateSummaryUseCaseInteractor interactor implements to maintain the dependency inversion principle.
                        -GenerateSummaryOB +GenerateSummaryOutputBoundary -
                        An interface that the GenerateSummaryP presenter implements to maintain the dependency inversion principle.
                        +
                        An interface that the GenerateSummaryPresenter presenter implements to maintain the dependency inversion principle.
                        @@ -130,42 +130,30 @@

                        Package use_cases.generate_summary_use_ca -GenerateSummaryID +GenerateSummaryInputData
                        A class that holds the input data for use by the interactor.
                        -GenerateSummaryOD +GenerateSummaryOutputData -
                        A class that holds the output data for use by the GenerateSummaryV.
                        +
                        A class that holds the output data for use by the GenerateSummaryView.
                        -GenerateSummaryUCI +GenerateSummaryUseCaseInteractor -
                        A class that calls GenerateSummaryP presenter and GenerateSummaryUCInterpreter interpreter to execute the steps in +
                        A class that calls GenerateSummaryPresenter presenter and GenerateSummaryUseCaseInterpreter interpreter to execute the steps in generating the information for the graphical summary.
                        -GenerateSummaryUCInterpreter +GenerateSummaryUseCaseInterpreter
                        A class that generates all the data in the correct format to make the Bar Graph and Pie Chart.
                        - -GenerateSummaryUCInterpreterTest - -
                        A class that tests the GenerateSummaryUCInterpreter class.
                        - - - -GenerateSummaryUCITest - -
                        A class that tests the GenerateSummaryUCI.
                        - - diff --git a/reports/JavaDoc/use_cases/generate_summary_use_case/package-tree.html b/reports/JavaDoc/use_cases/generate_summary_use_case/package-tree.html index 272e6ae..82b5f7d 100644 --- a/reports/JavaDoc/use_cases/generate_summary_use_case/package-tree.html +++ b/reports/JavaDoc/use_cases/generate_summary_use_case/package-tree.html @@ -2,10 +2,10 @@ - + use_cases.generate_summary_use_case Class Hierarchy - + @@ -106,12 +106,10 @@

                        Class Hierarchy

                        @@ -119,8 +117,8 @@

                        Class Hierarchy

                        Interface Hierarchy

                        diff --git a/reports/JavaDoc/use_cases/main_menu/SessionSaveIB.html b/reports/JavaDoc/use_cases/main_menu/SessionSaveInputBoundary.html similarity index 84% rename from reports/JavaDoc/use_cases/main_menu/SessionSaveIB.html rename to reports/JavaDoc/use_cases/main_menu/SessionSaveInputBoundary.html index afd4662..c0aede8 100644 --- a/reports/JavaDoc/use_cases/main_menu/SessionSaveIB.html +++ b/reports/JavaDoc/use_cases/main_menu/SessionSaveInputBoundary.html @@ -2,10 +2,10 @@ - -SessionSaveIB + +SessionSaveInputBoundary - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class SessionSaveUCITest

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.main_menu.SessionSaveUseCaseInteractorTest
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          class SessionSaveUCITest
                          -extends java.lang.Object
                          -
                          Tests the SessionSaveUCI class
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              SessionSaveUCITest

                              -
                              SessionSaveUCITest()
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              SessionLoadUCICreateSampleSession

                              -
                              @BeforeAll
                              -public static void SessionLoadUCICreateSampleSession()
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionSaveUCISave

                              -
                              @Test
                              -void SessionSaveUCISave()
                              -                 throws java.io.IOException,
                              -                        java.lang.ClassNotFoundException
                              -
                              Tests the save method with valid inputs and no IOExceptions
                              -
                              -
                              Throws:
                              -
                              java.io.IOException - shouldn't throw since we are saving and loading to valid files
                              -
                              java.lang.ClassNotFoundException - shouldn't throw since we are only loading the file we just created
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionSaveUCIFailSave

                              -
                              @Test
                              -void SessionSaveUCIFailSave()
                              -
                              Tests the save method with an invalid filename that will cause an IOException to throw
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/main_menu/SessionSaveUCI.html b/reports/JavaDoc/use_cases/main_menu/SessionSaveUseCaseInteractor.html similarity index 68% rename from reports/JavaDoc/use_cases/main_menu/SessionSaveUCI.html rename to reports/JavaDoc/use_cases/main_menu/SessionSaveUseCaseInteractor.html index a282fe8..6201091 100644 --- a/reports/JavaDoc/use_cases/main_menu/SessionSaveUCI.html +++ b/reports/JavaDoc/use_cases/main_menu/SessionSaveUseCaseInteractor.html @@ -2,10 +2,10 @@ - -SessionSaveUCI + +SessionSaveUseCaseInteractor - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class UpdateViewUCITest

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.monthly_menu.UpdateViewUseCaseInteractorTest
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          class UpdateViewUCITest
                          -extends java.lang.Object
                          -
                          Tests the UpdateViewUCI class.
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              UpdateViewUCITest

                              -
                              UpdateViewUCITest()
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              setUp

                              -
                              @BeforeEach
                              -void setUp()
                              -
                            • -
                            - - - -
                              -
                            • -

                              createOutputNewMonthSuccess

                              -
                              @Test
                              -void createOutputNewMonthSuccess()
                              -
                              Test case when viewing a new month created. Method should output MonthMenuOD - object storing empty list of Expense and list of Category containing other.
                              -
                            • -
                            - - - -
                              -
                            • -

                              createOutputNormalMonthSuccess

                              -
                              @Test
                              -void createOutputNormalMonthSuccess()
                              -                             throws EntityException
                              -
                              Test case when accessing a MonthlyStorage in the specified SessionStorage. - Method should output MonthMenuOD storing list of Expense and list of Category.
                              -
                              -
                              Throws:
                              -
                              EntityException - the exception thrown when adding an Expense/Category that already exist in the month
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              createOutputFail

                              -
                              @Test
                              -void createOutputFail()
                              -
                              Test case when accessing a MonthlyStorage that does not exist in the - specified SessionStorage. Method should output MonthMenuOD storing - a String of error message.
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/monthly_menu/UpdateViewUCI.html b/reports/JavaDoc/use_cases/monthly_menu/UpdateViewUseCaseInteractor.html similarity index 71% rename from reports/JavaDoc/use_cases/monthly_menu/UpdateViewUCI.html rename to reports/JavaDoc/use_cases/monthly_menu/UpdateViewUseCaseInteractor.html index 202b1e8..f4f1771 100644 --- a/reports/JavaDoc/use_cases/monthly_menu/UpdateViewUCI.html +++ b/reports/JavaDoc/use_cases/monthly_menu/UpdateViewUseCaseInteractor.html @@ -2,10 +2,10 @@ - -UpdateViewUCI + +UpdateViewUseCaseInteractor - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class SessionLoadUCI

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.session_load.SessionLoadUseCaseInteractor
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          All Implemented Interfaces:
                          -
                          SessionLoadIB
                          -
                          -
                          -
                          public class SessionLoadUCI
                          -extends java.lang.Object
                          -implements SessionLoadIB
                          -
                          The use case interactor for loading a session. - This class implements the SessionLoadIB interface and is the one responsible for - doing the file accesses and modifying our entities.
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              load

                              -
                              public SessionLoadOD load​(SessionLoadID inputData)
                              -                   throws SessionLoadException
                              -
                              Either loads a SessionStorage from a file, or creates a new empty one. - Then, mutates this.sessionToModify to reflect the data loaded/created.
                              -
                              -
                              Specified by:
                              -
                              load in interface SessionLoadIB
                              -
                              Parameters:
                              -
                              inputData - the user input data
                              -
                              Returns:
                              -
                              a SessionLoadOD object with the output data to be used by the View
                              -
                              Throws:
                              -
                              SessionLoadException - if the user chose to load a file and there is an error while opening it
                              -
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/session_load/SessionLoadUCITest.html b/reports/JavaDoc/use_cases/session_load/SessionLoadUCITest.html deleted file mode 100644 index af5dbc0..0000000 --- a/reports/JavaDoc/use_cases/session_load/SessionLoadUCITest.html +++ /dev/null @@ -1,431 +0,0 @@ - - - - - -SessionLoadUCITest - - - - - - - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class SessionLoadUCITest

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • use_cases.session_load.SessionLoadUseCaseInteractorTest
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          class SessionLoadUCITest
                          -extends java.lang.Object
                          -
                          Tests the SessionLoadUCI class
                          -
                        • -
                        -
                        -
                        - -
                        -
                        -
                          -
                        • - -
                          - -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              SessionLoadUCITest

                              -
                              SessionLoadUCITest()
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              SessionLoadUCICreateSampleSession

                              -
                              @BeforeAll
                              -public static void SessionLoadUCICreateSampleSession()
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionLoadUCILoadNew

                              -
                              @Test
                              -public void SessionLoadUCILoadNew()
                              -
                              Tests loading a new empty session
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionLoadUCILoadFile

                              -
                              @Test
                              -public void SessionLoadUCILoadFile()
                              -                            throws java.io.IOException
                              -
                              Tests loading an existing session from a file
                              -
                              -
                              Throws:
                              -
                              java.io.IOException - if an IO error that's outside the scope of this test happens
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionLoadUCILoadNonexistentFile

                              -
                              @Test
                              -public void SessionLoadUCILoadNonexistentFile()
                              -
                              Tests trying to load a file that doesn't exist and that a SessionLoadException will be raised
                              -
                            • -
                            - - - -
                              -
                            • -

                              SessionLoadUCILoadInvalidFile

                              -
                              @Test
                              -public void SessionLoadUCILoadInvalidFile()
                              -                                   throws java.io.IOException
                              -
                              Tests trying to load an invalid file and that a SessionLoadException will be raised
                              -
                              -
                              Throws:
                              -
                              java.io.IOException - if an IO error that's outside the scope of this test happens
                              -
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/use_cases/session_load/SessionLoadUseCaseInteractor.html b/reports/JavaDoc/use_cases/session_load/SessionLoadUseCaseInteractor.html new file mode 100644 index 0000000..66a9fba --- /dev/null +++ b/reports/JavaDoc/use_cases/session_load/SessionLoadUseCaseInteractor.html @@ -0,0 +1,332 @@ + + + + + +SessionLoadUseCaseInteractor + + + + + + + + + + + + + + + +
                        + +
                        + +
                        +
                        + +

                        Class SessionLoadUseCaseInteractor

                        +
                        +
                        +
                          +
                        • java.lang.Object
                        • +
                        • +
                            +
                          • use_cases.session_load.SessionLoadUseCaseInteractor
                          • +
                          +
                        • +
                        +
                        +
                          +
                        • +
                          +
                          All Implemented Interfaces:
                          +
                          SessionLoadInputBoundary
                          +
                          +
                          +
                          public class SessionLoadUseCaseInteractor
                          +extends java.lang.Object
                          +implements SessionLoadInputBoundary
                          +
                          The use case interactor for loading a session. + This class implements the SessionLoadInputBoundary interface and is the one responsible for + doing the file accesses and modifying our entities.
                          +
                        • +
                        +
                        +
                        + +
                        +
                        + +
                        +
                        +
                        + + + + diff --git a/reports/JavaDoc/use_cases/session_load/SessionStorageG.html b/reports/JavaDoc/use_cases/session_load/SessionStorageGateway.html similarity index 96% rename from reports/JavaDoc/use_cases/session_load/SessionStorageG.html rename to reports/JavaDoc/use_cases/session_load/SessionStorageGateway.html index 3d0097f..081f91b 100644 --- a/reports/JavaDoc/use_cases/session_load/SessionStorageG.html +++ b/reports/JavaDoc/use_cases/session_load/SessionStorageGateway.html @@ -2,10 +2,10 @@ - -SessionStorageG + +SessionStorageGateway - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class AddCategoryV

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • java.awt.Component
                          • -
                          • -
                              -
                            • views.add_edit_category_views.AddCategoryView
                            • -
                            -
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          All Implemented Interfaces:
                          -
                          java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
                          -
                          -
                          -
                          public class AddCategoryV
                          -extends java.awt.Component
                          -implements java.awt.event.ActionListener
                          -
                          A view class for the AddCategoryV that extends Component class and implements ActionListener interface. - Creates a new controller that produces a CategoryOD object.
                          -
                          -
                          See Also:
                          -
                          Serialized Form
                          -
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Nested Class Summary

                            -
                              -
                            • - - -

                              Nested classes/interfaces inherited from class java.awt.Component

                              -java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Field Summary

                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            Fields 
                            Modifier and TypeFieldDescription
                            private javax.swing.JTextFieldbudgetInput 
                            private CategoryCcontroller 
                            private SessionStoragecurrSession 
                            private intmonthID 
                            private javax.swing.JTextFieldnameInput 
                            private java.lang.StringoldCategory 
                            -
                              -
                            • - - -

                              Fields inherited from class java.awt.Component

                              -accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                            • -
                            -
                              -
                            • - - -

                              Fields inherited from interface java.awt.image.ImageObserver

                              -ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Summary

                            - - - - - - - - - - -
                            Constructors 
                            ConstructorDescription
                            AddCategoryV​(CategoryC controller, - int monthID, - SessionStorage currSession) -
                            Builds AddCategoryV.
                            -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Summary

                            - - - - - - - - - - - - - - - - - -
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            voidactionPerformed​(java.awt.event.ActionEvent evt) -
                            Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                            -
                            private voidtryUseCaseAdd() -
                            Tries an Add Category use case.
                            -
                            -
                              -
                            • - - -

                              Methods inherited from class java.awt.Component

                              -action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
                            • -
                            -
                              -
                            • - - -

                              Methods inherited from class java.lang.Object

                              -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Field Detail

                            - - - -
                              -
                            • -

                              controller

                              -
                              private final CategoryC controller
                              -
                            • -
                            - - - -
                              -
                            • -

                              nameInput

                              -
                              private final javax.swing.JTextField nameInput
                              -
                            • -
                            - - - -
                              -
                            • -

                              budgetInput

                              -
                              private final javax.swing.JTextField budgetInput
                              -
                            • -
                            - - - -
                              -
                            • -

                              monthID

                              -
                              private final int monthID
                              -
                            • -
                            - - - - - - - -
                              -
                            • -

                              oldCategory

                              -
                              private final java.lang.String oldCategory
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              AddCategoryV

                              -
                              public AddCategoryV​(CategoryC controller,
                              -                    int monthID,
                              -                    SessionStorage currSession)
                              -
                              Builds AddCategoryV.
                              -
                              -
                              Parameters:
                              -
                              controller - CategoryC reacts to user input to return a CategoryOD.
                              -
                              monthID - int representing the MonthlyStorage.
                              -
                              currSession - SessionStorage the current working session.
                              -
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              tryUseCaseAdd

                              -
                              private void tryUseCaseAdd()
                              -
                              Tries an Add Category use case. - Pop-up window with context specific message may be shown to user.
                              -
                            • -
                            - - - -
                              -
                            • -

                              actionPerformed

                              -
                              public void actionPerformed​(java.awt.event.ActionEvent evt)
                              -
                              Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                              -
                              -
                              Specified by:
                              -
                              actionPerformed in interface java.awt.event.ActionListener
                              -
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/views/add_edit_category_views/AddCategoryView.html b/reports/JavaDoc/views/add_edit_category_views/AddCategoryView.html new file mode 100644 index 0000000..f10b2fe --- /dev/null +++ b/reports/JavaDoc/views/add_edit_category_views/AddCategoryView.html @@ -0,0 +1,542 @@ + + + + + +AddCategoryView + + + + + + + + + + + + + + + +
                        + +
                        + +
                        +
                        + +

                        Class AddCategoryView

                        +
                        +
                        +
                          +
                        • java.lang.Object
                        • +
                        • +
                            +
                          • java.awt.Component
                          • +
                          • +
                              +
                            • java.awt.Container
                            • +
                            • +
                                +
                              • java.awt.Window
                              • +
                              • +
                                  +
                                • java.awt.Frame
                                • +
                                • +
                                    +
                                  • javax.swing.JFrame
                                  • +
                                  • +
                                      +
                                    • views.add_edit_category_views.AddCategoryView
                                    • +
                                    +
                                  • +
                                  +
                                • +
                                +
                              • +
                              +
                            • +
                            +
                          • +
                          +
                        • +
                        +
                        +
                          +
                        • +
                          +
                          All Implemented Interfaces:
                          +
                          java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, LoadMonthMenuViewBoundary
                          +
                          +
                          +
                          public class AddCategoryView
                          +extends javax.swing.JFrame
                          +implements java.awt.event.ActionListener, LoadMonthMenuViewBoundary
                          +
                          A view class for the AddCategoryView that extends Component class and implements ActionListener interface. + Creates a new controller that produces a CategoryOutputData object.
                          +
                          +
                          See Also:
                          +
                          Serialized Form
                          +
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          +
                            +
                          • + + +

                            Nested Class Summary

                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class javax.swing.JFrame

                              +javax.swing.JFrame.AccessibleJFrame
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Frame

                              +java.awt.Frame.AccessibleAWTFrame
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Window

                              +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Container

                              +java.awt.Container.AccessibleAWTContainer
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Component

                              +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                            • +
                            +
                          • +
                          +
                          + +
                          +
                            +
                          • + + +

                            Field Summary

                            +
                              +
                            • + + +

                              Fields inherited from class javax.swing.JFrame

                              +accessibleContext, rootPane, rootPaneCheckingEnabled
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from class java.awt.Frame

                              +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from class java.awt.Component

                              +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from interface java.awt.image.ImageObserver

                              +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from interface javax.swing.WindowConstants

                              +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
                            • +
                            +
                          • +
                          +
                          + +
                          + +
                          + +
                          +
                            +
                          • + + +

                            Method Summary

                            + + + + + + + + + + + + + + + + + + + + + + +
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            voidactionPerformed​(java.awt.event.ActionEvent evt) +
                            Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                            +
                            voidloadMonthMenu​(SessionStorage session, + int monthID, + java.lang.String message) +
                            Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                            +
                            voidopenAddCategory() +
                            Open add category GUI.
                            +
                            +
                              +
                            • + + +

                              Methods inherited from class javax.swing.JFrame

                              +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Frame

                              +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Window

                              +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Container

                              +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Component

                              +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.lang.Object

                              +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from interface java.awt.MenuContainer

                              +getFont, postEvent
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          +
                            +
                          • + + +

                            Constructor Detail

                            + + + +
                              +
                            • +

                              AddCategoryView

                              +
                              public AddCategoryView​(MonthMenuView monthMenu,
                              +                       CategoryController controller,
                              +                       int monthID,
                              +                       SessionStorage currSession)
                              +
                              Builds AddCategoryView for user entries.
                              +
                              +
                              Parameters:
                              +
                              monthMenu - MonthMenuView that need to be updated when a new Category is created
                              +
                              controller - CategoryController reacts to user input to return a CategoryOutputData.
                              +
                              monthID - int representing the MonthlyStorage.
                              +
                              currSession - SessionStorage the current working session.
                              +
                              +
                            • +
                            +
                          • +
                          +
                          + +
                          +
                            +
                          • + + +

                            Method Detail

                            + + + +
                              +
                            • +

                              openAddCategory

                              +
                              public void openAddCategory()
                              +
                              Open add category GUI.
                              +
                            • +
                            + + + +
                              +
                            • +

                              actionPerformed

                              +
                              public void actionPerformed​(java.awt.event.ActionEvent evt)
                              +
                              Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                              +
                              +
                              Specified by:
                              +
                              actionPerformed in interface java.awt.event.ActionListener
                              +
                              +
                            • +
                            + + + +
                              +
                            • +

                              loadMonthMenu

                              +
                              public void loadMonthMenu​(SessionStorage session,
                              +                          int monthID,
                              +                          java.lang.String message)
                              +
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              +
                              +
                              Specified by:
                              +
                              loadMonthMenu in interface LoadMonthMenuViewBoundary
                              +
                              Parameters:
                              +
                              session - the SessionStorage holding the required MonthlyStorage
                              +
                              monthID - the monthID of the required MonthlyStorage
                              +
                              message - notify user when new MonthlyStorage is created, otherwise null
                              +
                              +
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                        + + + + diff --git a/reports/JavaDoc/views/add_edit_category_views/CategoryC.html b/reports/JavaDoc/views/add_edit_category_views/CategoryController.html similarity index 72% rename from reports/JavaDoc/views/add_edit_category_views/CategoryC.html rename to reports/JavaDoc/views/add_edit_category_views/CategoryController.html index afdaff4..60c0d0e 100644 --- a/reports/JavaDoc/views/add_edit_category_views/CategoryC.html +++ b/reports/JavaDoc/views/add_edit_category_views/CategoryController.html @@ -2,10 +2,10 @@ - -CategoryC + +CategoryController - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                        - -
                        - -
                        -
                        - -

                        Class EditCategoryV

                        -
                        -
                        -
                          -
                        • java.lang.Object
                        • -
                        • -
                            -
                          • java.awt.Component
                          • -
                          • -
                              -
                            • views.add_edit_category_views.EditCategoryView
                            • -
                            -
                          • -
                          -
                        • -
                        -
                        -
                          -
                        • -
                          -
                          All Implemented Interfaces:
                          -
                          java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
                          -
                          -
                          -
                          public class EditCategoryV
                          -extends java.awt.Component
                          -implements java.awt.event.ActionListener
                          -
                          View class for the EditCategoryV that extends Component class and implements ActionListener interface.
                          -
                          -
                          See Also:
                          -
                          Serialized Form
                          -
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Nested Class Summary

                            -
                              -
                            • - - -

                              Nested classes/interfaces inherited from class java.awt.Component

                              -java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Field Summary

                            - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                            Fields 
                            Modifier and TypeFieldDescription
                            private javax.swing.JTextFieldbudgetInput 
                            private javax.swing.JComboBox<java.lang.String>categoryCombo 
                            private CategoryCcontroller 
                            private SessionStoragecurrSession 
                            private intmonthID 
                            private javax.swing.JTextFieldnameInput 
                            private java.lang.StringselectedCategory 
                            -
                              -
                            • - - -

                              Fields inherited from class java.awt.Component

                              -accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                            • -
                            -
                              -
                            • - - -

                              Fields inherited from interface java.awt.image.ImageObserver

                              -ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Summary

                            - - - - - - - - - - -
                            Constructors 
                            ConstructorDescription
                            EditCategoryV​(CategoryC controller, - java.lang.String[] existingCategory, - int monthID, - SessionStorage currSession) -
                            Builds EditCategoryV for user entries.
                            -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Summary

                            - - - - - - - - - - - - - - - - - -
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            voidactionPerformed​(java.awt.event.ActionEvent evt) -
                            Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                            -
                            private voidtryUseCaseEdit() -
                            Tries an Edit Category Use Case.
                            -
                            -
                              -
                            • - - -

                              Methods inherited from class java.awt.Component

                              -action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
                            • -
                            -
                              -
                            • - - -

                              Methods inherited from class java.lang.Object

                              -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                          -
                        • - -
                          -
                            -
                          • - - -

                            Field Detail

                            - - - -
                              -
                            • -

                              controller

                              -
                              private final CategoryC controller
                              -
                            • -
                            - - - -
                              -
                            • -

                              categoryCombo

                              -
                              private final javax.swing.JComboBox<java.lang.String> categoryCombo
                              -
                            • -
                            - - - -
                              -
                            • -

                              nameInput

                              -
                              private final javax.swing.JTextField nameInput
                              -
                            • -
                            - - - -
                              -
                            • -

                              budgetInput

                              -
                              private final javax.swing.JTextField budgetInput
                              -
                            • -
                            - - - -
                              -
                            • -

                              selectedCategory

                              -
                              private java.lang.String selectedCategory
                              -
                            • -
                            - - - -
                              -
                            • -

                              monthID

                              -
                              private final int monthID
                              -
                            • -
                            - - - - -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Constructor Detail

                            - - - -
                              -
                            • -

                              EditCategoryV

                              -
                              public EditCategoryV​(CategoryC controller,
                              -                     java.lang.String[] existingCategory,
                              -                     int monthID,
                              -                     SessionStorage currSession)
                              -
                              Builds EditCategoryV for user entries.
                              -
                              -
                              Parameters:
                              -
                              controller - CategoryC reacts to user input to return a CategoryOD.
                              -
                              existingCategory - String of existing categories in the MonthlyStorage with monthID.
                              -
                              monthID - int representing the MonthlyStorage.
                              -
                              currSession - SessionStorage the current working session.
                              -
                              -
                            • -
                            -
                          • -
                          -
                          - -
                          -
                            -
                          • - - -

                            Method Detail

                            - - - -
                              -
                            • -

                              actionPerformed

                              -
                              public void actionPerformed​(java.awt.event.ActionEvent evt)
                              -
                              Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                              -
                              -
                              Specified by:
                              -
                              actionPerformed in interface java.awt.event.ActionListener
                              -
                              -
                            • -
                            - - - -
                              -
                            • -

                              tryUseCaseEdit

                              -
                              private void tryUseCaseEdit()
                              -
                              Tries an Edit Category Use Case. - Pop-up window with context specific message may be shown to user.
                              -
                            • -
                            -
                          • -
                          -
                          -
                        • -
                        -
                        -
                        -
                        - - - - diff --git a/reports/JavaDoc/views/add_edit_category_views/EditCategoryView.html b/reports/JavaDoc/views/add_edit_category_views/EditCategoryView.html new file mode 100644 index 0000000..06d1d16 --- /dev/null +++ b/reports/JavaDoc/views/add_edit_category_views/EditCategoryView.html @@ -0,0 +1,544 @@ + + + + + +EditCategoryView + + + + + + + + + + + + + + + +
                        + +
                        + +
                        +
                        + +

                        Class EditCategoryView

                        +
                        +
                        +
                          +
                        • java.lang.Object
                        • +
                        • +
                            +
                          • java.awt.Component
                          • +
                          • +
                              +
                            • java.awt.Container
                            • +
                            • +
                                +
                              • java.awt.Window
                              • +
                              • +
                                  +
                                • java.awt.Frame
                                • +
                                • +
                                    +
                                  • javax.swing.JFrame
                                  • +
                                  • +
                                      +
                                    • views.add_edit_category_views.EditCategoryView
                                    • +
                                    +
                                  • +
                                  +
                                • +
                                +
                              • +
                              +
                            • +
                            +
                          • +
                          +
                        • +
                        +
                        +
                          +
                        • +
                          +
                          All Implemented Interfaces:
                          +
                          java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, LoadMonthMenuViewBoundary
                          +
                          +
                          +
                          public class EditCategoryView
                          +extends javax.swing.JFrame
                          +implements java.awt.event.ActionListener, LoadMonthMenuViewBoundary
                          +
                          View class for the EditCategoryView that extends Component class and implements ActionListener interface.
                          +
                          +
                          See Also:
                          +
                          Serialized Form
                          +
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          +
                            +
                          • + + +

                            Nested Class Summary

                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class javax.swing.JFrame

                              +javax.swing.JFrame.AccessibleJFrame
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Frame

                              +java.awt.Frame.AccessibleAWTFrame
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Window

                              +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Container

                              +java.awt.Container.AccessibleAWTContainer
                            • +
                            +
                              +
                            • + + +

                              Nested classes/interfaces inherited from class java.awt.Component

                              +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                            • +
                            +
                          • +
                          +
                          + +
                          +
                            +
                          • + + +

                            Field Summary

                            +
                              +
                            • + + +

                              Fields inherited from class javax.swing.JFrame

                              +accessibleContext, rootPane, rootPaneCheckingEnabled
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from class java.awt.Frame

                              +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from class java.awt.Component

                              +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from interface java.awt.image.ImageObserver

                              +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                            • +
                            +
                              +
                            • + + +

                              Fields inherited from interface javax.swing.WindowConstants

                              +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
                            • +
                            +
                          • +
                          +
                          + +
                          + +
                          + +
                          +
                            +
                          • + + +

                            Method Summary

                            + + + + + + + + + + + + + + + + + + + + + + +
                            All Methods Instance Methods Concrete Methods 
                            Modifier and TypeMethodDescription
                            voidactionPerformed​(java.awt.event.ActionEvent evt) +
                            Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                            +
                            voidloadMonthMenu​(SessionStorage session, + int monthID, + java.lang.String message) +
                            Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                            +
                            voidopenEditCategory() +
                            Open edit category GUI.
                            +
                            +
                              +
                            • + + +

                              Methods inherited from class javax.swing.JFrame

                              +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Frame

                              +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Window

                              +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Container

                              +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.awt.Component

                              +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from class java.lang.Object

                              +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                            • +
                            +
                              +
                            • + + +

                              Methods inherited from interface java.awt.MenuContainer

                              +getFont, postEvent
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                          +
                        • + +
                          +
                            +
                          • + + +

                            Constructor Detail

                            + + + +
                              +
                            • +

                              EditCategoryView

                              +
                              public EditCategoryView​(MonthMenuView monthMenu,
                              +                        CategoryController controller,
                              +                        java.lang.String[] existingCategory,
                              +                        int monthID,
                              +                        SessionStorage currSession)
                              +
                              Builds EditCategoryView for user entries.
                              +
                              +
                              Parameters:
                              +
                              monthMenu - MonthMenuView to be updated after editing
                              +
                              controller - CategoryController reacts to user input to return a CategoryOutputData.
                              +
                              existingCategory - String of existing categories in the MonthlyStorage with monthID.
                              +
                              monthID - int representing the MonthlyStorage.
                              +
                              currSession - SessionStorage the current working session.
                              +
                              +
                            • +
                            +
                          • +
                          +
                          + +
                          +
                            +
                          • + + +

                            Method Detail

                            + + + +
                              +
                            • +

                              openEditCategory

                              +
                              public void openEditCategory()
                              +
                              Open edit category GUI.
                              +
                            • +
                            + + + +
                              +
                            • +

                              actionPerformed

                              +
                              public void actionPerformed​(java.awt.event.ActionEvent evt)
                              +
                              Checks and formats user input to pass in valid parameters for a CategoryController to start a use case.
                              +
                              +
                              Specified by:
                              +
                              actionPerformed in interface java.awt.event.ActionListener
                              +
                              +
                            • +
                            + + + +
                              +
                            • +

                              loadMonthMenu

                              +
                              public void loadMonthMenu​(SessionStorage session,
                              +                          int monthID,
                              +                          java.lang.String message)
                              +
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              +
                              +
                              Specified by:
                              +
                              loadMonthMenu in interface LoadMonthMenuViewBoundary
                              +
                              Parameters:
                              +
                              session - the SessionStorage holding the required MonthlyStorage
                              +
                              monthID - the monthID of the required MonthlyStorage
                              +
                              message - notify user when new MonthlyStorage is created, otherwise null
                              +
                              +
                            • +
                            +
                          • +
                          +
                          +
                        • +
                        +
                        +
                        +
                        + + + + diff --git a/reports/JavaDoc/views/add_edit_category_views/package-summary.html b/reports/JavaDoc/views/add_edit_category_views/package-summary.html index 6e4c87b..aab6314 100644 --- a/reports/JavaDoc/views/add_edit_category_views/package-summary.html +++ b/reports/JavaDoc/views/add_edit_category_views/package-summary.html @@ -2,10 +2,10 @@ - + views.add_edit_category_views - + @@ -107,27 +107,27 @@

                        Package views.add_edit_category_views

                        -AddCategoryV +AddCategoryView -
                        A view class for the AddCategoryV that extends Component class and implements ActionListener interface.
                        +
                        A view class for the AddCategoryView that extends Component class and implements ActionListener interface.
                        -CategoryC +CategoryController -
                        CategoryC passes in user input information in the form of CategoryID.
                        +
                        CategoryController passes in user input information in the form of CategoryInputData.
                        -CategoryP +CategoryPresenter -
                        CategoryP notifies success/fail to add or edit category, implements CategoryOB.
                        +
                        CategoryPresenter notifies success/fail to add or edit category, implements CategoryOutputBoundary.
                        -EditCategoryV +EditCategoryView -
                        View class for the EditCategoryV that extends Component class and implements ActionListener interface.
                        +
                        View class for the EditCategoryView that extends Component class and implements ActionListener interface.
                        diff --git a/reports/JavaDoc/views/add_edit_category_views/package-tree.html b/reports/JavaDoc/views/add_edit_category_views/package-tree.html index 354f459..9073c73 100644 --- a/reports/JavaDoc/views/add_edit_category_views/package-tree.html +++ b/reports/JavaDoc/views/add_edit_category_views/package-tree.html @@ -2,10 +2,10 @@ - + views.add_edit_category_views Class Hierarchy - + @@ -106,12 +106,28 @@

                        Class Hierarchy

                        • java.lang.Object
                            -
                          • views.add_edit_category_views.CategoryC
                          • -
                          • views.add_edit_category_views.CategoryP (implements use_cases.add_edit_category_use_case.CategoryOB)
                          • +
                          • views.add_edit_category_views.CategoryController
                          • +
                          • views.add_edit_category_views.CategoryPresenter (implements use_cases.add_edit_category_use_case.CategoryOutputBoundary)
                          • java.awt.Component (implements java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable)
                              -
                            • views.add_edit_category_views.AddCategoryV (implements java.awt.event.ActionListener)
                            • -
                            • views.add_edit_category_views.EditCategoryV (implements java.awt.event.ActionListener)
                            • +
                            • java.awt.Container +
                                +
                              • java.awt.Window (implements javax.accessibility.Accessible) +
                                  +
                                • java.awt.Frame (implements java.awt.MenuContainer) +
                                    +
                                  • javax.swing.JFrame (implements javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants) + +
                                  • +
                                  +
                                • +
                                +
                              • +
                              +
                          diff --git a/reports/JavaDoc/views/add_edit_epense_views/AddExpenseV.html b/reports/JavaDoc/views/add_edit_epense_views/AddExpenseV.html deleted file mode 100644 index 895dd0c..0000000 --- a/reports/JavaDoc/views/add_edit_epense_views/AddExpenseV.html +++ /dev/null @@ -1,550 +0,0 @@ - - - - - -AddExpenseV - - - - - - - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class AddExpenseV

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • java.awt.Component
                            • -
                            • -
                                -
                              • views.add_edit_epense_views.AddExpenseView
                              • -
                              -
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            All Implemented Interfaces:
                            -
                            java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
                            -
                            -
                            -
                            public class AddExpenseV
                            -extends java.awt.Component
                            -implements java.awt.event.ActionListener
                            -
                            A view class for the AddExpenseV that extends Component class and implements ActionListener interface. - Creates a new controller that produces a ExpenseOD object.
                            -
                            -
                            See Also:
                            -
                            Serialized Form
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Nested Class Summary

                              -
                                -
                              • - - -

                                Nested classes/interfaces inherited from class java.awt.Component

                                -java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Field Summary

                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                              Fields 
                              Modifier and TypeFieldDescription
                              private javax.swing.JComboBox<java.lang.String>categoryCombo 
                              private ExpenseCcontroller 
                              private SessionStoragecurrSession 
                              private booleanisRecurring 
                              private javax.swing.JCheckBoxisRecurringCheckBox 
                              private intmonthID 
                              private javax.swing.JTextFieldnameInput 
                              private java.lang.StringselectedCategory 
                              private java.lang.StringselectedExpense 
                              private javax.swing.JTextFieldvalueInput 
                              -
                                -
                              • - - -

                                Fields inherited from class java.awt.Component

                                -accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                              • -
                              -
                                -
                              • - - -

                                Fields inherited from interface java.awt.image.ImageObserver

                                -ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Summary

                              - - - - - - - - - - -
                              Constructors 
                              ConstructorDescription
                              AddExpenseV​(ExpenseC controller, - java.lang.String[] existingCategory, - int monthID, - SessionStorage currSession) -
                              Builds AddExpenseV
                              -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - -
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) -
                              Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                              -
                              -
                                -
                              • - - -

                                Methods inherited from class java.awt.Component

                                -action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
                              • -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Field Detail

                              - - - -
                                -
                              • -

                                controller

                                -
                                private final ExpenseC controller
                                -
                              • -
                              - - - -
                                -
                              • -

                                nameInput

                                -
                                private final javax.swing.JTextField nameInput
                                -
                              • -
                              - - - -
                                -
                              • -

                                valueInput

                                -
                                private final javax.swing.JTextField valueInput
                                -
                              • -
                              - - - -
                                -
                              • -

                                categoryCombo

                                -
                                private final javax.swing.JComboBox<java.lang.String> categoryCombo
                                -
                              • -
                              - - - -
                                -
                              • -

                                selectedExpense

                                -
                                private final java.lang.String selectedExpense
                                -
                              • -
                              - - - -
                                -
                              • -

                                selectedCategory

                                -
                                private java.lang.String selectedCategory
                                -
                              • -
                              - - - -
                                -
                              • -

                                isRecurringCheckBox

                                -
                                private javax.swing.JCheckBox isRecurringCheckBox
                                -
                              • -
                              - - - -
                                -
                              • -

                                isRecurring

                                -
                                private boolean isRecurring
                                -
                              • -
                              - - - -
                                -
                              • -

                                monthID

                                -
                                private final int monthID
                                -
                              • -
                              - - - - -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                AddExpenseV

                                -
                                public AddExpenseV​(ExpenseC controller,
                                -                   java.lang.String[] existingCategory,
                                -                   int monthID,
                                -                   SessionStorage currSession)
                                -
                                Builds AddExpenseV
                                -
                                -
                                Parameters:
                                -
                                controller - ExpenseC reacts to user input to return ExpenseOD.
                                -
                                existingCategory - String[] of Category names that exists in current month.
                                -
                                monthID - int representing the MonthlyStorage.
                                -
                                currSession - SessionStorage the current working session.
                                -
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                actionPerformed

                                -
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                -
                                Checks and formats user input to pass in valid parameters for a CategtoryC to start a use case.
                                -
                                -
                                Specified by:
                                -
                                actionPerformed in interface java.awt.event.ActionListener
                                -
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/add_edit_epense_views/AddExpenseView.html b/reports/JavaDoc/views/add_edit_epense_views/AddExpenseView.html new file mode 100644 index 0000000..e183f3a --- /dev/null +++ b/reports/JavaDoc/views/add_edit_epense_views/AddExpenseView.html @@ -0,0 +1,545 @@ + + + + + +AddExpenseView + + + + + + + + + + + + + + + +
                          + +
                          + +
                          +
                          + +

                          Class AddExpenseView

                          +
                          +
                          +
                            +
                          • java.lang.Object
                          • +
                          • +
                              +
                            • java.awt.Component
                            • +
                            • +
                                +
                              • java.awt.Container
                              • +
                              • +
                                  +
                                • java.awt.Window
                                • +
                                • +
                                    +
                                  • java.awt.Frame
                                  • +
                                  • +
                                      +
                                    • javax.swing.JFrame
                                    • +
                                    • +
                                        +
                                      • views.add_edit_epense_views.AddExpenseView
                                      • +
                                      +
                                    • +
                                    +
                                  • +
                                  +
                                • +
                                +
                              • +
                              +
                            • +
                            +
                          • +
                          +
                          +
                            +
                          • +
                            +
                            All Implemented Interfaces:
                            +
                            java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, LoadMonthMenuViewBoundary
                            +
                            +
                            +
                            public class AddExpenseView
                            +extends javax.swing.JFrame
                            +implements java.awt.event.ActionListener, LoadMonthMenuViewBoundary
                            +
                            A view class for the AddExpenseView that extends Component class and implements ActionListener interface. + Creates a new controller that produces a ExpenseOutputData object.
                            +
                            +
                            See Also:
                            +
                            Serialized Form
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Nested Class Summary

                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class javax.swing.JFrame

                                +javax.swing.JFrame.AccessibleJFrame
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Frame

                                +java.awt.Frame.AccessibleAWTFrame
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Window

                                +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Container

                                +java.awt.Container.AccessibleAWTContainer
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Component

                                +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Field Summary

                              +
                                +
                              • + + +

                                Fields inherited from class javax.swing.JFrame

                                +accessibleContext, rootPane, rootPaneCheckingEnabled
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from class java.awt.Frame

                                +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from class java.awt.Component

                                +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from interface java.awt.image.ImageObserver

                                +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from interface javax.swing.WindowConstants

                                +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
                              • +
                              +
                            • +
                            +
                            + +
                            + +
                            + +
                            +
                              +
                            • + + +

                              Method Summary

                              + + + + + + + + + + + + + + + + + + + + + + +
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) +
                              Checks and formats user input to pass in valid parameters to start a use case.
                              +
                              voidloadMonthMenu​(SessionStorage session, + int monthID, + java.lang.String message) +
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              +
                              voidopenAddExpense() +
                              Open add expense GUI.
                              +
                              +
                                +
                              • + + +

                                Methods inherited from class javax.swing.JFrame

                                +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Frame

                                +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Window

                                +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Container

                                +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Component

                                +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from interface java.awt.MenuContainer

                                +getFont, postEvent
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Constructor Detail

                              + + + +
                                +
                              • +

                                AddExpenseView

                                +
                                public AddExpenseView​(MonthMenuView monthMenu,
                                +                      ExpenseController controller,
                                +                      java.lang.String[] existingCategory,
                                +                      int monthID,
                                +                      SessionStorage currSession)
                                +
                                Builds AddExpenseView for user entries.
                                +
                                +
                                Parameters:
                                +
                                monthMenu - MonthMenuView that contains the button that creates AddExpenseView
                                +
                                controller - ExpenseController reacts to user input to return ExpenseOutputData.
                                +
                                existingCategory - String[] of Category names that exists in current month.
                                +
                                monthID - int representing the MonthlyStorage.
                                +
                                currSession - SessionStorage the current working session.
                                +
                                +
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Method Detail

                              + + + +
                                +
                              • +

                                openAddExpense

                                +
                                public void openAddExpense()
                                +
                                Open add expense GUI.
                                +
                              • +
                              + + + +
                                +
                              • +

                                actionPerformed

                                +
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                +
                                Checks and formats user input to pass in valid parameters to start a use case.
                                +
                                +
                                Specified by:
                                +
                                actionPerformed in interface java.awt.event.ActionListener
                                +
                                +
                              • +
                              + + + +
                                +
                              • +

                                loadMonthMenu

                                +
                                public void loadMonthMenu​(SessionStorage session,
                                +                          int monthID,
                                +                          java.lang.String message)
                                +
                                Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                                +
                                +
                                Specified by:
                                +
                                loadMonthMenu in interface LoadMonthMenuViewBoundary
                                +
                                Parameters:
                                +
                                session - the SessionStorage holding the required MonthlyStorage
                                +
                                monthID - the monthID of the required MonthlyStorage
                                +
                                message - notify user when new MonthlyStorage is created, otherwise null
                                +
                                +
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                          + + + + diff --git a/reports/JavaDoc/views/add_edit_epense_views/EditExpenseV.html b/reports/JavaDoc/views/add_edit_epense_views/EditExpenseV.html deleted file mode 100644 index 93ad826..0000000 --- a/reports/JavaDoc/views/add_edit_epense_views/EditExpenseV.html +++ /dev/null @@ -1,559 +0,0 @@ - - - - - -EditExpenseV - - - - - - - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class EditExpenseV

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • java.awt.Component
                            • -
                            • -
                                -
                              • views.add_edit_epense_views.EditExpenseView
                              • -
                              -
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            All Implemented Interfaces:
                            -
                            java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener
                            -
                            -
                            -
                            public class EditExpenseV
                            -extends java.awt.Component
                            -implements java.awt.event.ActionListener
                            -
                            View class for the EditExpenseV that extends Component class and implements ActionListener interface.
                            -
                            -
                            See Also:
                            -
                            Serialized Form
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Nested Class Summary

                              -
                                -
                              • - - -

                                Nested classes/interfaces inherited from class java.awt.Component

                                -java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Field Summary

                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                              Fields 
                              Modifier and TypeFieldDescription
                              (package private) javax.swing.JComboBox<java.lang.String>categoryCombo 
                              (package private) ExpenseCcontroller 
                              (package private) SessionStoragecurrSession 
                              (package private) javax.swing.JComboBox<java.lang.String>expenseCombo 
                              (package private) booleanisRecurring 
                              (package private) javax.swing.JCheckBoxisRecurringCheckBox 
                              (package private) intmonthID 
                              (package private) javax.swing.JTextFieldnameInput 
                              (package private) java.lang.StringselectedCategory 
                              (package private) java.lang.StringselectedExpense 
                              (package private) javax.swing.JTextFieldvalueInput 
                              -
                                -
                              • - - -

                                Fields inherited from class java.awt.Component

                                -accessibleContext, BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                              • -
                              -
                                -
                              • - - -

                                Fields inherited from interface java.awt.image.ImageObserver

                                -ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Summary

                              - - - - - - - - - - -
                              Constructors 
                              ConstructorDescription
                              EditExpenseV​(ExpenseC controller, - java.lang.String[] existingExpense, - java.lang.String[] existingCategory, - int monthID, - SessionStorage currSession) 
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - -
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) 
                              -
                                -
                              • - - -

                                Methods inherited from class java.awt.Component

                                -action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, addNotify, addPropertyChangeListener, addPropertyChangeListener, applyComponentOrientation, areFocusTraversalKeysSet, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, deliverEvent, disable, disableEvents, dispatchEvent, doLayout, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getAccessibleContext, getAlignmentX, getAlignmentY, getBackground, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentAt, getComponentAt, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusCycleRootAncestor, getFocusListeners, getFocusTraversalKeys, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputContext, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getListeners, getLocale, getLocation, getLocation, getLocationOnScreen, getMaximumSize, getMinimumSize, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPreferredSize, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getToolkit, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, hide, imageUpdate, inside, invalidate, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusCycleRoot, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isShowing, isValid, isVisible, keyDown, keyUp, layout, list, list, list, list, list, locate, location, lostFocus, minimumSize, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paint, paintAll, paramString, postEvent, preferredSize, prepareImage, prepareImage, print, printAll, processComponentEvent, processEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, revalidate, setBackground, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeys, setFocusTraversalKeysEnabled, setFont, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setMixingCutoutShape, setName, setPreferredSize, setSize, setSize, setVisible, show, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle, update, validate
                              • -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Field Detail

                              - - - - - - - -
                                -
                              • -

                                expenseCombo

                                -
                                javax.swing.JComboBox<java.lang.String> expenseCombo
                                -
                              • -
                              - - - -
                                -
                              • -

                                categoryCombo

                                -
                                javax.swing.JComboBox<java.lang.String> categoryCombo
                                -
                              • -
                              - - - -
                                -
                              • -

                                nameInput

                                -
                                javax.swing.JTextField nameInput
                                -
                              • -
                              - - - -
                                -
                              • -

                                valueInput

                                -
                                javax.swing.JTextField valueInput
                                -
                              • -
                              - - - -
                                -
                              • -

                                selectedCategory

                                -
                                java.lang.String selectedCategory
                                -
                              • -
                              - - - -
                                -
                              • -

                                selectedExpense

                                -
                                java.lang.String selectedExpense
                                -
                              • -
                              - - - -
                                -
                              • -

                                isRecurringCheckBox

                                -
                                javax.swing.JCheckBox isRecurringCheckBox
                                -
                              • -
                              - - - -
                                -
                              • -

                                isRecurring

                                -
                                boolean isRecurring
                                -
                              • -
                              - - - -
                                -
                              • -

                                monthID

                                -
                                int monthID
                                -
                              • -
                              - - - - -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                EditExpenseV

                                -
                                public EditExpenseV​(ExpenseC controller,
                                -                    java.lang.String[] existingExpense,
                                -                    java.lang.String[] existingCategory,
                                -                    int monthID,
                                -                    SessionStorage currSession)
                                -
                                -
                                Parameters:
                                -
                                controller -
                                -
                                existingExpense -
                                -
                                monthID -
                                -
                                currSession -
                                -
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                actionPerformed

                                -
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                -
                                -
                                Specified by:
                                -
                                actionPerformed in interface java.awt.event.ActionListener
                                -
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/add_edit_epense_views/EditExpenseView.html b/reports/JavaDoc/views/add_edit_epense_views/EditExpenseView.html new file mode 100644 index 0000000..8cd42d6 --- /dev/null +++ b/reports/JavaDoc/views/add_edit_epense_views/EditExpenseView.html @@ -0,0 +1,547 @@ + + + + + +EditExpenseView + + + + + + + + + + + + + + + +
                          + +
                          + +
                          +
                          + +

                          Class EditExpenseView

                          +
                          +
                          +
                            +
                          • java.lang.Object
                          • +
                          • +
                              +
                            • java.awt.Component
                            • +
                            • +
                                +
                              • java.awt.Container
                              • +
                              • +
                                  +
                                • java.awt.Window
                                • +
                                • +
                                    +
                                  • java.awt.Frame
                                  • +
                                  • +
                                      +
                                    • javax.swing.JFrame
                                    • +
                                    • +
                                        +
                                      • views.add_edit_epense_views.EditExpenseView
                                      • +
                                      +
                                    • +
                                    +
                                  • +
                                  +
                                • +
                                +
                              • +
                              +
                            • +
                            +
                          • +
                          +
                          +
                            +
                          • +
                            +
                            All Implemented Interfaces:
                            +
                            java.awt.event.ActionListener, java.awt.image.ImageObserver, java.awt.MenuContainer, java.io.Serializable, java.util.EventListener, javax.accessibility.Accessible, javax.swing.RootPaneContainer, javax.swing.WindowConstants, LoadMonthMenuViewBoundary
                            +
                            +
                            +
                            public class EditExpenseView
                            +extends javax.swing.JFrame
                            +implements java.awt.event.ActionListener, LoadMonthMenuViewBoundary
                            +
                            View class for the EditExpenseView that extends Component class and implements ActionListener interface.
                            +
                            +
                            See Also:
                            +
                            Serialized Form
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Nested Class Summary

                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class javax.swing.JFrame

                                +javax.swing.JFrame.AccessibleJFrame
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Frame

                                +java.awt.Frame.AccessibleAWTFrame
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Window

                                +java.awt.Window.AccessibleAWTWindow, java.awt.Window.Type
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Container

                                +java.awt.Container.AccessibleAWTContainer
                              • +
                              +
                                +
                              • + + +

                                Nested classes/interfaces inherited from class java.awt.Component

                                +java.awt.Component.AccessibleAWTComponent, java.awt.Component.BaselineResizeBehavior, java.awt.Component.BltBufferStrategy, java.awt.Component.FlipBufferStrategy
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Field Summary

                              +
                                +
                              • + + +

                                Fields inherited from class javax.swing.JFrame

                                +accessibleContext, rootPane, rootPaneCheckingEnabled
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from class java.awt.Frame

                                +CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from class java.awt.Component

                                +BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from interface java.awt.image.ImageObserver

                                +ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
                              • +
                              +
                                +
                              • + + +

                                Fields inherited from interface javax.swing.WindowConstants

                                +DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, EXIT_ON_CLOSE, HIDE_ON_CLOSE
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Constructor Summary

                              + + + + + + + + + + +
                              Constructors 
                              ConstructorDescription
                              EditExpenseView​(MonthMenuView monthMenu, + ExpenseController controller, + java.lang.String[] existingExpense, + java.lang.String[] existingCategory, + int monthID, + SessionStorage currSession) +
                              Builds EditExpenseView for user entries.
                              +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Method Summary

                              + + + + + + + + + + + + + + + + + + + + + + +
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) +
                              Checks and formats user input to pass in valid parameters to start a use case.
                              +
                              voidloadMonthMenu​(SessionStorage session, + int monthID, + java.lang.String message) +
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              +
                              voidopenEditExpense() +
                              Open edit expense GUI.
                              +
                              +
                                +
                              • + + +

                                Methods inherited from class javax.swing.JFrame

                                +addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getGraphics, getJMenuBar, getLayeredPane, getRootPane, getTransferHandler, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, repaint, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, setTransferHandler, update
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Frame

                                +addNotify, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setBackground, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setOpacity, setResizable, setShape, setState, setTitle, setUndecorated
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Window

                                +addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBackground, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getIconImages, getInputContext, getListeners, getLocale, getModalExclusionType, getMostRecentFocusOwner, getOpacity, getOwnedWindows, getOwner, getOwnerlessWindows, getShape, getToolkit, getType, getWarningString, getWindowFocusListeners, getWindowListeners, getWindows, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isAlwaysOnTopSupported, isAutoRequestFocus, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isOpaque, isShowing, isValidateRoot, pack, paint, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, reshape, setAlwaysOnTop, setAutoRequestFocus, setBounds, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setIconImages, setLocation, setLocation, setLocationByPlatform, setLocationRelativeTo, setMinimumSize, setModalExclusionType, setSize, setSize, setType, setVisible, show, toBack, toFront
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Container

                                +add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusDownCycle, validate, validateTree
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.awt.Component

                                +action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, addMouseWheelListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBaseline, getBaselineResizeBehavior, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, removeMouseWheelListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, requestFocusInWindow, resize, resize, revalidate, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setMaximumSize, setMixingCutoutShape, setName, setPreferredSize, show, size, toString, transferFocus, transferFocusBackward, transferFocusUpCycle
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
                              • +
                              +
                                +
                              • + + +

                                Methods inherited from interface java.awt.MenuContainer

                                +getFont, postEvent
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Constructor Detail

                              + + + +
                                +
                              • +

                                EditExpenseView

                                +
                                public EditExpenseView​(MonthMenuView monthMenu,
                                +                       ExpenseController controller,
                                +                       java.lang.String[] existingExpense,
                                +                       java.lang.String[] existingCategory,
                                +                       int monthID,
                                +                       SessionStorage currSession)
                                +
                                Builds EditExpenseView for user entries.
                                +
                                +
                                Parameters:
                                +
                                monthMenu - MonthMenuView that contains the button that creates EditExpenseView.
                                +
                                controller - ExpenseController reacts to user input to return ExpenseOutputData.
                                +
                                existingExpense - String[] of Expense names that exists in current month.
                                +
                                existingCategory - String[] of Category names that exists in current month.
                                +
                                monthID - int representing the MonthlyStorage.
                                +
                                currSession - SessionStorage the current working session.
                                +
                                +
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Method Detail

                              + + + +
                                +
                              • +

                                openEditExpense

                                +
                                public void openEditExpense()
                                +
                                Open edit expense GUI.
                                +
                              • +
                              + + + +
                                +
                              • +

                                actionPerformed

                                +
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                +
                                Checks and formats user input to pass in valid parameters to start a use case.
                                +
                                +
                                Specified by:
                                +
                                actionPerformed in interface java.awt.event.ActionListener
                                +
                                +
                              • +
                              + + + +
                                +
                              • +

                                loadMonthMenu

                                +
                                public void loadMonthMenu​(SessionStorage session,
                                +                          int monthID,
                                +                          java.lang.String message)
                                +
                                Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                                +
                                +
                                Specified by:
                                +
                                loadMonthMenu in interface LoadMonthMenuViewBoundary
                                +
                                Parameters:
                                +
                                session - the SessionStorage holding the required MonthlyStorage
                                +
                                monthID - the monthID of the required MonthlyStorage
                                +
                                message - notify user when new MonthlyStorage is created, otherwise null
                                +
                                +
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                          + + + + diff --git a/reports/JavaDoc/views/add_edit_epense_views/ExpenseC.html b/reports/JavaDoc/views/add_edit_epense_views/ExpenseController.html similarity index 71% rename from reports/JavaDoc/views/add_edit_epense_views/ExpenseC.html rename to reports/JavaDoc/views/add_edit_epense_views/ExpenseController.html index a3a8807..dcf8367 100644 --- a/reports/JavaDoc/views/add_edit_epense_views/ExpenseC.html +++ b/reports/JavaDoc/views/add_edit_epense_views/ExpenseController.html @@ -2,10 +2,10 @@ - -ExpenseC + +ExpenseController - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class NewMonthC

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • views.create_new_month.NewMonthController
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            public class NewMonthC
                            -extends java.lang.Object
                            -
                            The controller class for creating new MonthlyStorage. The view class - calls this class to get the NewMonthOD object. This class generates the - input data class and calls the input boundary interface to get the - NewMonthOD object.
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            - -
                            - -
                            -
                              -
                            • - - -

                              Constructor Summary

                              - - - - - - - - - - -
                              Constructors 
                              ConstructorDescription
                              NewMonthC​(NewMonthIB inputBoundary) -
                              Construct the controller class.
                              -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - -
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              (package private) NewMonthODgetOutput​(SessionStorage session, - int monthID, - double budgetValue) -
                              Create and pass the NewMonthID object to the inputBoundary method call.
                              -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Field Detail

                              - - - -
                                -
                              • -

                                inputBoundary

                                -
                                private final NewMonthIB inputBoundary
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                NewMonthC

                                -
                                public NewMonthC​(NewMonthIB inputBoundary)
                                -
                                Construct the controller class.
                                -
                                -
                                Parameters:
                                -
                                inputBoundary - the NewMonthIB containing the method to create new MonthlyStorage
                                -
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                getOutput

                                -
                                NewMonthOD getOutput​(SessionStorage session,
                                -                     int monthID,
                                -                     double budgetValue)
                                -
                                Create and pass the NewMonthID object to the inputBoundary method call.
                                -
                                -
                                Parameters:
                                -
                                session - the SessionStorage to store the new MonthlyStorage
                                -
                                monthID - the monthID of the new MonthlyStorage
                                -
                                budgetValue - the budget for the new MonthlyStorage
                                -
                                Returns:
                                -
                                NewMonthOD object that contains output data
                                -
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/create_new_month/NewMonthController.html b/reports/JavaDoc/views/create_new_month/NewMonthController.html new file mode 100644 index 0000000..b502770 --- /dev/null +++ b/reports/JavaDoc/views/create_new_month/NewMonthController.html @@ -0,0 +1,278 @@ + + + + + +NewMonthController + + + + + + + + + + + + + + + +
                          + +
                          + +
                          +
                          + +

                          Class NewMonthController

                          +
                          +
                          +
                            +
                          • java.lang.Object
                          • +
                          • +
                              +
                            • views.create_new_month.NewMonthController
                            • +
                            +
                          • +
                          +
                          +
                            +
                          • +
                            +
                            public class NewMonthController
                            +extends java.lang.Object
                            +
                            The controller class for creating new MonthlyStorage. The view class + calls this class to get the NewMonthOutputData object. This class generates the + input data class and calls the input boundary interface to get the + NewMonthOutputData object.
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            + +
                            + +
                            +
                              +
                            • + + +

                              Method Summary

                              +
                                +
                              • + + +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Constructor Detail

                              + + + +
                                +
                              • +

                                NewMonthController

                                +
                                public NewMonthController​(NewMonthInputBoundary inputBoundary)
                                +
                                Construct the controller class.
                                +
                                +
                                Parameters:
                                +
                                inputBoundary - the NewMonthInputBoundary containing the method to create new MonthlyStorage
                                +
                                +
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                          + +
                          + +
                          + + diff --git a/reports/JavaDoc/views/create_new_month/NewMonthP.html b/reports/JavaDoc/views/create_new_month/NewMonthPresenter.html similarity index 80% rename from reports/JavaDoc/views/create_new_month/NewMonthP.html rename to reports/JavaDoc/views/create_new_month/NewMonthPresenter.html index 8bd3ddb..0d743f6 100644 --- a/reports/JavaDoc/views/create_new_month/NewMonthP.html +++ b/reports/JavaDoc/views/create_new_month/NewMonthPresenter.html @@ -2,10 +2,10 @@ - -NewMonthP + +NewMonthPresenter - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class NewMonthV

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • views.create_new_month.NewMonthView
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            All Implemented Interfaces:
                            -
                            java.awt.event.ActionListener, java.util.EventListener, LoadMonthMenuVB
                            -
                            -
                            -
                            public class NewMonthV
                            -extends java.lang.Object
                            -implements java.awt.event.ActionListener, LoadMonthMenuVB
                            -
                            The view class for creating new MonthlyStorage. This class implements the - ActionListener interface. This class calls the controller class to get the - NewMonthOD object, and use the output to set up success and fail view.
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            - -
                            - -
                            - -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - - - - - - - - - - - -
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) -
                              React to drop down selection and button click that result in ActionEvent.
                              -
                              private voidgetOutput() -
                              Helper method to all controller method when user input is valid.
                              -
                              voidloadMonthMenu​(SessionStorage session, - int monthID, - java.lang.String message) -
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Field Detail

                              - - - -
                                -
                              • -

                                mainMenu

                                -
                                private final MainMenuV mainMenu
                                -
                              • -
                              - - - -
                                -
                              • -

                                controller

                                -
                                private final NewMonthC controller
                                -
                              • -
                              - - - - - - - -
                                -
                              • -

                                frame

                                -
                                private final javax.swing.JFrame frame
                                -
                              • -
                              - - - -
                                -
                              • -

                                year

                                -
                                private final javax.swing.JTextField year
                                -
                              • -
                              - - - -
                                -
                              • -

                                month

                                -
                                private final javax.swing.JComboBox<java.lang.String> month
                                -
                              • -
                              - - - -
                                -
                              • -

                                budget

                                -
                                private final javax.swing.JTextField budget
                                -
                              • -
                              - - - -
                                -
                              • -

                                submitButton

                                -
                                private final javax.swing.JButton submitButton
                                -
                              • -
                              - - - -
                                -
                              • -

                                selectedMonth

                                -
                                private int selectedMonth
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                NewMonthV

                                -
                                public NewMonthV​(MainMenuV mainMenu,
                                -                 NewMonthC controller,
                                -                 SessionStorage session)
                                -
                                Set up the window for user input. User is required to input the year, - select the month, and input the budget for the month. - Code inspired from here.
                                -
                                -
                                Parameters:
                                -
                                mainMenu - the MainMenuV to update after creating the month
                                -
                                controller - the controller class to get output data
                                -
                                session - the SessionStorage to store the new MonthlyStorage
                                -
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                actionPerformed

                                -
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                -
                                React to drop down selection and button click that result in ActionEvent. - Code inspired from here.
                                -
                                -
                                Specified by:
                                -
                                actionPerformed in interface java.awt.event.ActionListener
                                -
                                Parameters:
                                -
                                evt - the event to be processed
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                loadMonthMenu

                                -
                                public void loadMonthMenu​(SessionStorage session,
                                -                          int monthID,
                                -                          java.lang.String message)
                                -
                                Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                                -
                                -
                                Specified by:
                                -
                                loadMonthMenu in interface LoadMonthMenuVB
                                -
                                Parameters:
                                -
                                session - the SessionStorage holding the required MonthlyStorage
                                -
                                monthID - the monthID of the required MonthlyStorage
                                -
                                message - notify user when new MonthlyStorage is created, otherwise null
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                getOutput

                                -
                                private void getOutput()
                                -
                                Helper method to all controller method when user input is valid.
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/create_new_month/NewMonthView.html b/reports/JavaDoc/views/create_new_month/NewMonthView.html new file mode 100644 index 0000000..0fa5ca6 --- /dev/null +++ b/reports/JavaDoc/views/create_new_month/NewMonthView.html @@ -0,0 +1,367 @@ + + + + + +NewMonthView + + + + + + + + + + + + + + + +
                          + +
                          + +
                          +
                          + +

                          Class NewMonthView

                          +
                          +
                          +
                            +
                          • java.lang.Object
                          • +
                          • +
                              +
                            • views.create_new_month.NewMonthView
                            • +
                            +
                          • +
                          +
                          +
                            +
                          • +
                            +
                            All Implemented Interfaces:
                            +
                            java.awt.event.ActionListener, java.util.EventListener, LoadMonthMenuViewBoundary
                            +
                            +
                            +
                            public class NewMonthView
                            +extends java.lang.Object
                            +implements java.awt.event.ActionListener, LoadMonthMenuViewBoundary
                            +
                            The view class for creating new MonthlyStorage. This class implements the + ActionListener interface. This class calls the controller class to get the + NewMonthOutputData object, and use the output to set up success and fail view.
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            + +
                            + +
                            +
                              +
                            • + + +

                              Method Summary

                              + + + + + + + + + + + + + + + + + +
                              All Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent evt) +
                              React to drop down selection and button click that result in ActionEvent.
                              +
                              voidloadMonthMenu​(SessionStorage session, + int monthID, + java.lang.String message) +
                              Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                              +
                              +
                                +
                              • + + +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Constructor Detail

                              + + + +
                                +
                              • +

                                NewMonthView

                                +
                                public NewMonthView​(SessionLoadMainMenuViewBoundary mainMenu,
                                +                    NewMonthController controller,
                                +                    SessionStorage session)
                                +
                                Set up the window for user input. User is required to input the year, + select the month, and input the budget for the month. + Code inspired from here.
                                +
                                +
                                Parameters:
                                +
                                mainMenu - the MainMenuV to update after creating the month
                                +
                                controller - the controller class to get output data
                                +
                                session - the SessionStorage to store the new MonthlyStorage
                                +
                                +
                              • +
                              +
                            • +
                            +
                            + +
                            +
                              +
                            • + + +

                              Method Detail

                              + + + +
                                +
                              • +

                                actionPerformed

                                +
                                public void actionPerformed​(java.awt.event.ActionEvent evt)
                                +
                                React to drop down selection and button click that result in ActionEvent. + Code inspired from here.
                                +
                                +
                                Specified by:
                                +
                                actionPerformed in interface java.awt.event.ActionListener
                                +
                                Parameters:
                                +
                                evt - the event to be processed
                                +
                                +
                              • +
                              + + + +
                                +
                              • +

                                loadMonthMenu

                                +
                                public void loadMonthMenu​(SessionStorage session,
                                +                          int monthID,
                                +                          java.lang.String message)
                                +
                                Load Month Menu and notify user if opening Month Menu of a new MonthlyStorage created.
                                +
                                +
                                Specified by:
                                +
                                loadMonthMenu in interface LoadMonthMenuViewBoundary
                                +
                                Parameters:
                                +
                                session - the SessionStorage holding the required MonthlyStorage
                                +
                                monthID - the monthID of the required MonthlyStorage
                                +
                                message - notify user when new MonthlyStorage is created, otherwise null
                                +
                                +
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                          + + + + diff --git a/reports/JavaDoc/views/create_new_month/package-summary.html b/reports/JavaDoc/views/create_new_month/package-summary.html index 018921f..5a48467 100644 --- a/reports/JavaDoc/views/create_new_month/package-summary.html +++ b/reports/JavaDoc/views/create_new_month/package-summary.html @@ -2,10 +2,10 @@ - + views.create_new_month - + @@ -107,19 +107,19 @@

                          Package views.create_new_month

                          -NewMonthC +NewMonthController
                          The controller class for creating new MonthlyStorage.
                          -NewMonthP +NewMonthPresenter
                          The presenter class for creating new MonthlyStorage.
                          -NewMonthV +NewMonthView
                          The view class for creating new MonthlyStorage.
                          diff --git a/reports/JavaDoc/views/create_new_month/package-tree.html b/reports/JavaDoc/views/create_new_month/package-tree.html index bc435ea..c96a3a5 100644 --- a/reports/JavaDoc/views/create_new_month/package-tree.html +++ b/reports/JavaDoc/views/create_new_month/package-tree.html @@ -2,10 +2,10 @@ - + views.create_new_month Class Hierarchy - + @@ -106,9 +106,9 @@

                          Class Hierarchy

                          diff --git a/reports/JavaDoc/views/file_session_storage/FileSessionStorage.html b/reports/JavaDoc/views/file_session_storage/FileSessionStorage.html index 8a07ad3..edfd638 100644 --- a/reports/JavaDoc/views/file_session_storage/FileSessionStorage.html +++ b/reports/JavaDoc/views/file_session_storage/FileSessionStorage.html @@ -2,10 +2,10 @@ - + FileSessionStorage - + @@ -133,14 +133,14 @@

                          Class FileSessionStorage

                        • All Implemented Interfaces:
                          -
                          SessionStorageG
                          +
                          SessionStorageGateway

                          public class FileSessionStorage
                           extends java.lang.Object
                          -implements SessionStorageG
                          +implements SessionStorageGateway
                          A storage system for loading and saving SessionLoad to files. - Implements the SessionStorageG interface and is called from the SessionLoadUCI + Implements the SessionStorageGateway interface and is called from the SessionLoadUseCaseInteractor interactor class. Implementation of serializing and deserializing inspired from here
                          @@ -255,7 +255,7 @@

                          save

                          Saves a SessionStorage object into a file on disk.
                          Specified by:
                          -
                          save in interface SessionStorageG
                          +
                          save in interface SessionStorageGateway
                          Parameters:
                          filename - the name of file to save the session to.
                          session - the SessionStorage object to serialize and save to the file.
                          @@ -276,7 +276,7 @@

                          load

                          Loads a SessionStorage object from a file on disk.
                          Specified by:
                          -
                          load in interface SessionStorageG
                          +
                          load in interface SessionStorageGateway
                          Parameters:
                          filename - the name of the file to read the session from.
                          Returns:
                          diff --git a/reports/JavaDoc/views/file_session_storage/FileSessionStorageTest.html b/reports/JavaDoc/views/file_session_storage/FileSessionStorageTest.html deleted file mode 100644 index faa1620..0000000 --- a/reports/JavaDoc/views/file_session_storage/FileSessionStorageTest.html +++ /dev/null @@ -1,443 +0,0 @@ - - - - - -FileSessionStorageTest - - - - - - - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class FileSessionStorageTest

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • views.file_session_storage.FileSessionStorageTest
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            class FileSessionStorageTest
                            -extends java.lang.Object
                            -
                            Tests the FileSessionStorage class
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            - -
                            - -
                            - -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                              All Methods Static Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidFileSessionStorage() -
                              Tests the successful saving and loading functionality of FileSessionStorage - This isn't split into two test cases because they are heavily intertwined; we can't test loading - a file without saving one first too.
                              -
                              voidFileSessionStorageLoadInvalidFile() -
                              Tests that the load method will throw an exception when loading a file that is not a serialization - of a SessionStorage
                              -
                              voidFileSessionStorageLoadNonexistentFile() -
                              Tests that the load method will throw an exception when loading a file that doesn't exist
                              -
                              voidFileSessionStorageSaveFail() -
                              Tests that the save method will throw an exception when an error occurs while saving to the file
                              -
                              static voidSessionLoadUCICreateSampleSession() -
                              Creates a sample SessionStorage object that following test cases will use
                              -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            - -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                FileSessionStorageTest

                                -
                                FileSessionStorageTest()
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                SessionLoadUCICreateSampleSession

                                -
                                @BeforeAll
                                -public static void SessionLoadUCICreateSampleSession()
                                -
                                Creates a sample SessionStorage object that following test cases will use
                                -
                              • -
                              - - - -
                                -
                              • -

                                FileSessionStorage

                                -
                                @Test
                                -public void FileSessionStorage()
                                -                        throws java.io.IOException,
                                -                               java.lang.ClassNotFoundException
                                -
                                Tests the successful saving and loading functionality of FileSessionStorage - This isn't split into two test cases because they are heavily intertwined; we can't test loading - a file without saving one first too. And we can't test that a save was successful without - loading it back to check.
                                -
                                -
                                Throws:
                                -
                                java.io.IOException - if an IO error that's outside the scope of this test happens
                                -
                                java.lang.ClassNotFoundException - Shouldn't throw this since it is testing a valid file
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                FileSessionStorageLoadNonexistentFile

                                -
                                @Test
                                -public void FileSessionStorageLoadNonexistentFile()
                                -
                                Tests that the load method will throw an exception when loading a file that doesn't exist
                                -
                              • -
                              - - - -
                                -
                              • -

                                FileSessionStorageLoadInvalidFile

                                -
                                @Test
                                -public void FileSessionStorageLoadInvalidFile()
                                -                                       throws java.io.IOException
                                -
                                Tests that the load method will throw an exception when loading a file that is not a serialization - of a SessionStorage
                                -
                                -
                                Throws:
                                -
                                java.io.IOException - if an IO error that's outside the scope of this test happens
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                FileSessionStorageSaveFail

                                -
                                @Test
                                -public void FileSessionStorageSaveFail()
                                -
                                Tests that the save method will throw an exception when an error occurs while saving to the file
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/file_session_storage/package-summary.html b/reports/JavaDoc/views/file_session_storage/package-summary.html index ee277d4..2b20021 100644 --- a/reports/JavaDoc/views/file_session_storage/package-summary.html +++ b/reports/JavaDoc/views/file_session_storage/package-summary.html @@ -2,10 +2,10 @@ - + views.file_session_storage - + @@ -112,12 +112,6 @@

                          Package views.file_session_storage

                          A storage system for loading and saving SessionLoad to files.
                          - -FileSessionStorageTest - -
                          Tests the FileSessionStorage class
                          - -
                        • diff --git a/reports/JavaDoc/views/file_session_storage/package-tree.html b/reports/JavaDoc/views/file_session_storage/package-tree.html index 242b470..a25cdf6 100644 --- a/reports/JavaDoc/views/file_session_storage/package-tree.html +++ b/reports/JavaDoc/views/file_session_storage/package-tree.html @@ -2,10 +2,10 @@ - + views.file_session_storage Class Hierarchy - + @@ -106,8 +106,7 @@

                          Class Hierarchy

                          diff --git a/reports/JavaDoc/views/generate_summary_views/GenerateSummaryC.html b/reports/JavaDoc/views/generate_summary_views/GenerateSummaryController.html similarity index 74% rename from reports/JavaDoc/views/generate_summary_views/GenerateSummaryC.html rename to reports/JavaDoc/views/generate_summary_views/GenerateSummaryController.html index c3a2cb4..6cef4f2 100644 --- a/reports/JavaDoc/views/generate_summary_views/GenerateSummaryC.html +++ b/reports/JavaDoc/views/generate_summary_views/GenerateSummaryController.html @@ -2,10 +2,10 @@ - -GenerateSummaryC + +GenerateSummaryController - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Class MonthMenuV

                          -
                          -
                          -
                            -
                          • java.lang.Object
                          • -
                          • -
                              -
                            • views.monthly_menu.MonthMenuView
                            • -
                            -
                          • -
                          -
                          -
                            -
                          • -
                            -
                            All Implemented Interfaces:
                            -
                            java.awt.event.ActionListener, java.util.EventListener
                            -
                            -
                            -
                            public class MonthMenuV
                            -extends java.lang.Object
                            -implements java.awt.event.ActionListener
                            -
                            The view class for creating/updating the Month Menu view. This class implements the - ActionListener interface. This class calls the controller class to get the - MonthMenuOD object, and use the output to set up success and fail view.
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            - -
                            - -
                            -
                              -
                            • - - -

                              Constructor Summary

                              - - - - - - - - - - -
                              Constructors 
                              ConstructorDescription
                              MonthMenuV​(UpdateViewC controller, - SessionStorage session, - int monthID) -
                              Construct the view class and call private method to set up GUI.
                              -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
                              All Methods Static Methods Instance Methods Concrete Methods 
                              Modifier and TypeMethodDescription
                              voidactionPerformed​(java.awt.event.ActionEvent event) -
                              React to various button clicks that result in ActionEvent.
                              -
                              private voidcreateMonthMenuView() -
                              Set up success and fail view.
                              -
                              private static javax.swing.JTablegetCategoryTable​(Category[] categoryData) -
                              Format list of Category to JTable that shows the category names and budget values.
                              -
                              private static javax.swing.JTablegetExpenseTable​(Expense[] expenseData) -
                              Format list of Expense to JTable that shows the expense names and values.
                              -
                              private static javax.swing.JPanelgetMonthPanel​(int monthID) -
                              Create the JPanel that shows the monthID.
                              -
                              voidopenMonthMenu​(java.lang.String message, - boolean loadMonthSaved) -
                              Open Month Menu and notify user if opening Month Menu for a new MonthlyStorage created.
                              -
                              -
                                -
                              • - - -

                                Methods inherited from class java.lang.Object

                                -clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Field Detail

                              - - - -
                                -
                              • -

                                controller

                                -
                                private final UpdateViewC controller
                                -
                              • -
                              - - - - - - - -
                                -
                              • -

                                monthID

                                -
                                private final int monthID
                                -
                              • -
                              - - - -
                                -
                              • -

                                frame

                                -
                                private final javax.swing.JFrame frame
                                -
                              • -
                              - - - -
                                -
                              • -

                                addExpense

                                -
                                private javax.swing.JButton addExpense
                                -
                              • -
                              - - - -
                                -
                              • -

                                editExpense

                                -
                                private javax.swing.JButton editExpense
                                -
                              • -
                              - - - -
                                -
                              • -

                                addCategory

                                -
                                private javax.swing.JButton addCategory
                                -
                              • -
                              - - - -
                                -
                              • -

                                editCategory

                                -
                                private javax.swing.JButton editCategory
                                -
                              • -
                              - - - -
                                -
                              • -

                                generateSummary

                                -
                                private javax.swing.JButton generateSummary
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Constructor Detail

                              - - - -
                                -
                              • -

                                MonthMenuV

                                -
                                public MonthMenuV​(UpdateViewC controller,
                                -                  SessionStorage session,
                                -                  int monthID)
                                -
                                Construct the view class and call private method to set up GUI.
                                -
                                -
                                Parameters:
                                -
                                controller - the controller class to get output data
                                -
                                session - the SessionStorage holding the required MonthlyStorage
                                -
                                monthID - the monthID of the required MonthlyStorage
                                -
                                -
                              • -
                              -
                            • -
                            -
                            - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                actionPerformed

                                -
                                public void actionPerformed​(java.awt.event.ActionEvent event)
                                -
                                React to various button clicks that result in ActionEvent. - Code inspired from here
                                -
                                -
                                Specified by:
                                -
                                actionPerformed in interface java.awt.event.ActionListener
                                -
                                Parameters:
                                -
                                event - the event to be processed
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                openMonthMenu

                                -
                                public void openMonthMenu​(java.lang.String message,
                                -                          boolean loadMonthSaved)
                                -
                                Open Month Menu and notify user if opening Month Menu for a new MonthlyStorage created.
                                -
                                -
                                Parameters:
                                -
                                message - notify user if a new MonthlyStorage is created, else null
                                -
                                loadMonthSaved - true if method is called from MainMenuV to load saved MonthlyStorage
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                createMonthMenuView

                                -
                                private void createMonthMenuView()
                                -
                                Set up success and fail view. The success view shows the Month Menu - window showing the ID for the month accessed, buttons to add/edit - expenses/categories, and the button to generate summary. The Month - Menu window also shows the list of expenses and categories currently - stored in the MonthlyStorage. The fail view shows a pop-up window - showing the error message. - Code inspired from - here - and here.
                                -
                              • -
                              - - - -
                                -
                              • -

                                getMonthPanel

                                -
                                private static javax.swing.JPanel getMonthPanel​(int monthID)
                                -
                                Create the JPanel that shows the monthID.
                                -
                                -
                                Parameters:
                                -
                                monthID - the monthID of the required MonthlyStorage
                                -
                                Returns:
                                -
                                JPanel containing the monthID
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                getExpenseTable

                                -
                                private static javax.swing.JTable getExpenseTable​(Expense[] expenseData)
                                -
                                Format list of Expense to JTable that shows the expense names and values.
                                -
                                -
                                Parameters:
                                -
                                expenseData - expenseData to be outputted
                                -
                                Returns:
                                -
                                JTable containing table of expense names and values
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                getCategoryTable

                                -
                                private static javax.swing.JTable getCategoryTable​(Category[] categoryData)
                                -
                                Format list of Category to JTable that shows the category names and budget values.
                                -
                                -
                                Parameters:
                                -
                                categoryData - categoryData to be outputted
                                -
                                Returns:
                                -
                                JTable containing table of category names and budget values
                                -
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - - - - diff --git a/reports/JavaDoc/views/monthly_menu/UpdateViewC.html b/reports/JavaDoc/views/monthly_menu/MonthMenuView.html similarity index 68% rename from reports/JavaDoc/views/monthly_menu/UpdateViewC.html rename to reports/JavaDoc/views/monthly_menu/MonthMenuView.html index 33734c7..15568a0 100644 --- a/reports/JavaDoc/views/monthly_menu/UpdateViewC.html +++ b/reports/JavaDoc/views/monthly_menu/MonthMenuView.html @@ -2,10 +2,10 @@ - -UpdateViewC + +MonthMenuView - + @@ -22,13 +22,13 @@ + + + + + + + + + +
                          + +
                          + +
                          +
                          + +

                          Class UpdateViewController

                          +
                          +
                          +
                            +
                          • java.lang.Object
                          • +
                          • +
                              +
                            • views.monthly_menu.UpdateViewController
                            • +
                            +
                          • +
                          +
                          +
                            +
                          • +
                            +
                            public class UpdateViewController
                            +extends java.lang.Object
                            +
                            The controller class for getting the Month Menu output. The view class + calls this class to get the MonthMenuOutputData object. This class generates the + input data class and calls the input boundary interface to get the + MonthMenuOutputData object.
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            + +
                            + +
                            +
                              +
                            • + + +

                              Method Summary

                              +
                                +
                              • + + +

                                Methods inherited from class java.lang.Object

                                +clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                            +
                          • + +
                            +
                              +
                            • + + +

                              Constructor Detail

                              + + + +
                                +
                              • +

                                UpdateViewController

                                +
                                public UpdateViewController​(UpdateViewInputBoundary inputBoundary)
                                +
                                Construct the controller class.
                                +
                                +
                                Parameters:
                                +
                                inputBoundary - the UpdateViewInputBoundary containing the method to create output data
                                +
                                +
                              • +
                              +
                            • +
                            +
                            +
                          • +
                          +
                          +
                          +
                          + +
                          + +
                          + + diff --git a/reports/JavaDoc/views/monthly_menu/package-summary.html b/reports/JavaDoc/views/monthly_menu/package-summary.html index 3d5b970..7126e68 100644 --- a/reports/JavaDoc/views/monthly_menu/package-summary.html +++ b/reports/JavaDoc/views/monthly_menu/package-summary.html @@ -2,10 +2,10 @@ - + views.monthly_menu - + @@ -107,19 +107,19 @@

                          Package views.monthly_menu

                          -MonthMenuP +MonthMenuPresenter
                          The presenter class for creating the Month Menu view.
                          -MonthMenuV +MonthMenuView
                          The view class for creating/updating the Month Menu view.
                          -UpdateViewC +UpdateViewController
                          The controller class for getting the Month Menu output.
                          diff --git a/reports/JavaDoc/views/monthly_menu/package-tree.html b/reports/JavaDoc/views/monthly_menu/package-tree.html index ea08c45..852fbd5 100644 --- a/reports/JavaDoc/views/monthly_menu/package-tree.html +++ b/reports/JavaDoc/views/monthly_menu/package-tree.html @@ -2,10 +2,10 @@ - + views.monthly_menu Class Hierarchy - + @@ -106,9 +106,9 @@

                          Class Hierarchy

                          diff --git a/reports/JavaDoc/views/session_load/SessionLoadC.html b/reports/JavaDoc/views/session_load/SessionLoadController.html similarity index 76% rename from reports/JavaDoc/views/session_load/SessionLoadC.html rename to reports/JavaDoc/views/session_load/SessionLoadController.html index 504ae53..4110b12 100644 --- a/reports/JavaDoc/views/session_load/SessionLoadC.html +++ b/reports/JavaDoc/views/session_load/SessionLoadController.html @@ -2,10 +2,10 @@ - -SessionLoadC + +SessionLoadController - + @@ -22,7 +22,7 @@ - - - - - - - - - -
                          - -
                          - -
                          -
                          - -

                          Interface SessionLoadMenuVB

                          -
                          -
                          -
                          -
                            -
                          • -
                            -
                            All Known Implementing Classes:
                            -
                            SessionLoadMenuV
                            -
                            -
                            -
                            public interface SessionLoadMenuVB
                            -
                            A view boundary interface to display a success or error message when loading a session - The SessionLoadMenuV view class implements this interface
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Method Summary

                              - - - - - - - - - - - - - - - - - -
                              All Methods Instance Methods Abstract Methods 
                              Modifier and TypeMethodDescription
                              voiddisplayError​(java.lang.String message) -
                              Displays an error message in a popup
                              -
                              voiddisplaySuccess​(java.lang.String message, - SessionStorage session) -
                              Closes this menu by setting its visibility to false and opens the main menu
                              -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                            -
                          • - -
                            -
                              -
                            • - - -

                              Method Detail

                              - - - -
                                -
                              • -

                                displayError

                                -
                                void displayError​(java.lang.String message)
                                -
                                Displays an error message in a popup
                                -
                                -
                                Parameters:
                                -
                                message - a String containing an error message to display
                                -
                                -
                              • -
                              - - - -
                                -
                              • -

                                displaySuccess

                                -
                                void displaySuccess​(java.lang.String message,
                                -                    SessionStorage session)
                                -
                                Closes this menu by setting its visibility to false and opens the main menu
                                -
                                -
                                Parameters:
                                -
                                message - a String containing a success message to display
                                -
                                session - a SessionStorage object with the loaded session that will be displayed in the main menu
                                -
                                -
                              • -
                              -
                            • -
                            -
                            -
                          • -
                          -
                          -
                          -
                          - -
                          - -
                          - - diff --git a/reports/JavaDoc/views/session_load/SessionLoadMenuV.html b/reports/JavaDoc/views/session_load/SessionLoadMenuView.html similarity index 77% rename from reports/JavaDoc/views/session_load/SessionLoadMenuV.html rename to reports/JavaDoc/views/session_load/SessionLoadMenuView.html index c8400b7..37f87b4 100644 --- a/reports/JavaDoc/views/session_load/SessionLoadMenuV.html +++ b/reports/JavaDoc/views/session_load/SessionLoadMenuView.html @@ -2,10 +2,10 @@ - -SessionLoadMenuV + +SessionLoadMenuView - + @@ -22,13 +22,13 @@