From 1ec2cdd33df864b55cafe3326aadaf8e83cb0651 Mon Sep 17 00:00:00 2001 From: sowgro Date: Tue, 23 May 2023 07:51:51 -0400 Subject: add date to leaderboard --- src/main/LeaderboardEntry.java | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/main/LeaderboardEntry.java') diff --git a/src/main/LeaderboardEntry.java b/src/main/LeaderboardEntry.java index 61a0449..673ca11 100644 --- a/src/main/LeaderboardEntry.java +++ b/src/main/LeaderboardEntry.java @@ -7,12 +7,14 @@ public class LeaderboardEntry { private SimpleIntegerProperty score; private SimpleStringProperty name; + private SimpleStringProperty date; //all below is required for table view - public LeaderboardEntry(String name, int score) + public LeaderboardEntry(String name, int score, String date) { this.name = new SimpleStringProperty(name); this.score = new SimpleIntegerProperty(score); + this.date = new SimpleStringProperty(date); } public int getScore() { @@ -30,4 +32,14 @@ public class LeaderboardEntry public void setName(String name) { this.name.set(name); } + + public String getDate() + { + return date.get(); + } + + public void setDate(String date) + { + this.date = new SimpleStringProperty(date); + } } -- cgit v1.2.3