diff options
author | Adrien Hopkins <ahopk127@my.yorku.ca> | 2022-04-19 16:10:44 -0500 |
---|---|---|
committer | Adrien Hopkins <ahopk127@my.yorku.ca> | 2022-04-19 16:10:44 -0500 |
commit | 0aacba9fc8a9140fdf331172ad66afe280d09b5e (patch) | |
tree | 3699f6cf4ce40db818233287853474a4cf99ba5c /src/main/java/sevenUnitsGUI/View.java | |
parent | 40f7b6e806140fc2fc741c63c71f5ce97b4bd1d2 (diff) |
Implemented prefix settings, saving & loading of settings
Also fixed some bugs:
- Presenter now has default values for its settings in case they don't load properly
- UnitDatabase ensures its units, prefixes and dimensions have all of the names
you give it
Diffstat (limited to 'src/main/java/sevenUnitsGUI/View.java')
-rw-r--r-- | src/main/java/sevenUnitsGUI/View.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main/java/sevenUnitsGUI/View.java b/src/main/java/sevenUnitsGUI/View.java index da3749e..011e87f 100644 --- a/src/main/java/sevenUnitsGUI/View.java +++ b/src/main/java/sevenUnitsGUI/View.java @@ -30,6 +30,12 @@ import sevenUnits.utils.NameSymbol; */ public interface View { /** + * @return the presenter associated with this view + * @since 2022-04-19 + */ + Presenter getPresenter(); + + /** * @return name of prefix currently being viewed * @since 2022-04-10 */ |