-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMailingList.java
More file actions
43 lines (33 loc) · 889 Bytes
/
MailingList.java
File metadata and controls
43 lines (33 loc) · 889 Bytes
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
package addressbook;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
public class MailingList {
private SimpleIntegerProperty id = new SimpleIntegerProperty(0);
private SimpleStringProperty name = new SimpleStringProperty();
public MailingList(int id, String name) {
this.id.set(id);
this.name.set(name);
}
@Override
public String toString() {
return name.get();
}
public int getId() {
return id.get();
}
public SimpleIntegerProperty idProperty() {
return id;
}
public void setId(int id) {
this.id.set(id);
}
public String getName() {
return name.get();
}
public SimpleStringProperty nameProperty() {
return name;
}
public void setName(String name) {
this.name.set(name);
}
}