Skip to content

Commit

Permalink
Some extra documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
RealityAdmin committed Dec 6, 2022
1 parent f2cf534 commit 0afdd1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions views/CalendarView.java
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ public static CalendarView getView(CalendarModel model, Stage stage){
return instance;
}

// private constructor to enforce Singleton
private CalendarView(CalendarModel model, Stage stage){
// Get a model
this.model = model;
Expand All @@ -107,6 +108,7 @@ private CalendarView(CalendarModel model, Stage stage){
initUI();
}

// load stored info
public void loadModel() {
File folder = new File("save/");
if (!folder.exists()) {
Expand Down Expand Up @@ -137,6 +139,7 @@ public void loadModel() {
}
}

// Save our model
public void saveModel() {
this.model.colour = colour.toString();
this.model.colour_font = colour_font.toString();
Expand Down

0 comments on commit 0afdd1e

Please sign in to comment.