blob: 61a044994f3398e32ef5e242feeaa6a6395cb2cd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
package main;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
public class LeaderboardEntry
{
private SimpleIntegerProperty score;
private SimpleStringProperty name;
//all below is required for table view
public LeaderboardEntry(String name, int score)
{
this.name = new SimpleStringProperty(name);
this.score = new SimpleIntegerProperty(score);
}
public int getScore() {
return score.get();
}
public void setScore(int score) {
this.score.set(score);
}
public String getName() {
return name.get();
}
public void setName(String name) {
this.name.set(name);
}
}
|