Add new class for tableView

This commit is contained in:
cugurlu
2019-03-29 18:10:01 +01:00
parent 0530fc4ddb
commit e41f434a28

View File

@@ -0,0 +1,32 @@
package greenify.client;
import javafx.beans.property.SimpleFloatProperty;
import javafx.beans.property.SimpleStringProperty;
public class Friend {
private SimpleStringProperty friend;
private SimpleFloatProperty friendScore;
public Friend(String friend, Float friendScore) {
this.friend = new SimpleStringProperty(friend);
this.friendScore = new SimpleFloatProperty(friendScore);
}
public String getFriend() {
return friend.get();
}
public void setFriend(String name) {
this.friend = new SimpleStringProperty(name);
}
public Float getFriendScore() {
return friendScore.get();
}
public void setScore(Float score) {
this.friendScore = new SimpleFloatProperty(score);
}
}