From e41f434a28e84714375e70fcaabb300f29778595 Mon Sep 17 00:00:00 2001 From: cugurlu Date: Fri, 29 Mar 2019 18:10:01 +0100 Subject: [PATCH] Add new class for tableView --- .../src/main/java/greenify/client/Friend.java | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 src/Client/src/main/java/greenify/client/Friend.java diff --git a/src/Client/src/main/java/greenify/client/Friend.java b/src/Client/src/main/java/greenify/client/Friend.java new file mode 100644 index 0000000..87ec3cd --- /dev/null +++ b/src/Client/src/main/java/greenify/client/Friend.java @@ -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); + } +} \ No newline at end of file