-
Notifications
You must be signed in to change notification settings - Fork 0
/
Users.java
66 lines (53 loc) · 1.5 KB
/
Users.java
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
package emailapp;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
public class Users{
private final SimpleIntegerProperty employeeID;
private final SimpleStringProperty fName;
private final SimpleStringProperty lName;
private final SimpleStringProperty emailProp;
private final SimpleStringProperty deptComboBox;
public Users(int empID, String firstName, String lastName, String email, String deptComboBox){
this.employeeID = new SimpleIntegerProperty(empID);
this.fName = new SimpleStringProperty(firstName);
this.lName = new SimpleStringProperty(lastName);
this.emailProp = new SimpleStringProperty(email);
this.deptComboBox = new SimpleStringProperty(deptComboBox);
}
// Setters and getters
// EmpID
public int getEmpID(){
return employeeID.get();
}
public void setEmpId(int empID){
employeeID.set(empID);
}
// First Name
public String getFirstName(){
return fName.get();
}
public void setFirstName(String firstName){
fName.set(firstName);
}
// Last Name
public String getLastName(){
return lName.get();
}
public void setLastName(String lastName){
lName.set(lastName);
}
// Email
public String getEmail(){
return emailProp.get();
}
public void setEmail(String email){
emailProp.set(email);
}
// Department
public String getDept(){
return deptComboBox.get();
}
public void setDept(String dept){
deptComboBox.set(dept);
}
}