-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathStudent.java
More file actions
100 lines (86 loc) · 2.79 KB
/
Student.java
File metadata and controls
100 lines (86 loc) · 2.79 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
/**
* Created by IRGeekSauce on 11/26/15.
*/
import javafx.beans.property.*;
public class Student {
private StringProperty firstName = new SimpleStringProperty(this, "firstName", "");
public String getFirstName() {
return firstName.get();
}
public StringProperty firstNameProperty() {
return firstName;
}
public void setFirstName(String firstName) {
this.firstName.set(firstName);
}
private StringProperty lastName = new SimpleStringProperty(this, "lastName", "");
public String getLastName() {return lastName.get();}
public StringProperty lastNameProperty() {return lastName;}
public void setLastName(String lastName) {
this.lastName.set(lastName);
}
private StringProperty major = new SimpleStringProperty(this, "major", "");
public String getMajor() {
return major.get();
}
public StringProperty majorProperty() {
return major;
}
public void setMajor(String major) {
this.major.set(major);
}
private DoubleProperty gradepoint = new SimpleDoubleProperty(this, "gradePoint", 0.0);
public double getGradepoint() {
return gradepoint.get();
}
public DoubleProperty gradepointProperty() {
return gradepoint;
}
public void setGradepoint(double gradepoint) {
this.gradepoint.set(gradepoint);
}
private StringProperty uin = new SimpleStringProperty(this, "uin", "");
public String getUin() {
return uin.get();
}
public StringProperty uinProperty() {
return uin;
}
public void setUin(String uin) {
this.uin.set(uin);
}
private StringProperty netID = new SimpleStringProperty(this, "netID", "");
public String getNetID() {
return netID.get();
}
public StringProperty netIDProperty() {
return netID;
}
public void setNetID(String netID) {
this.netID.set(netID);
}
private IntegerProperty age = new SimpleIntegerProperty(this, "age", 0);
public int getAge() {
return age.get();
}
public IntegerProperty ageProperty() {
return age;
}
public void setAge(int age) {
this.age.set(age);
}
private StringProperty gender = new SimpleStringProperty(this, "gender", "");
public String getGender() {
return gender.get();
}
public StringProperty genderProperty() {
return gender;
}
public void setGender(String gender) {
this.gender.set(gender);
}
//for console printing purposes
public String toString() {
return "First Name: " + getFirstName() + " | Last Name: " + getLastName() + " | UIN: " + getUin() + " | NetID: " + getNetID() + " | Major: " + getMajor() + " | Age: " + getAge() + " | GPA: " + getGradepoint() + " | Gender: " + getGender();
}
}