-
Notifications
You must be signed in to change notification settings - Fork 0
/
Manager.java
67 lines (52 loc) · 1.46 KB
/
Manager.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
67
package sample;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;
/**
* Created by Ishan on 14-01-2016.
*/
public class Manager {
private SimpleIntegerProperty id;
private SimpleStringProperty givenTo;
private SimpleStringProperty givenFor;
private SimpleIntegerProperty amount;
private SimpleStringProperty date;
public Manager() {
}
public Manager(int id, String givenTo, String givenFor, int amount, String date) {
this.id = new SimpleIntegerProperty(id);
this.givenFor = new SimpleStringProperty(givenFor);
this.givenTo = new SimpleStringProperty(givenTo);
this.amount = new SimpleIntegerProperty(amount);
this.date = new SimpleStringProperty(date);
}
public int getId() {
return id.get();
}
public String getGivenFor() {
return givenFor.get();
}
public String getDate() {
return date.get();
}
public String getGivenTo() {
return givenTo.get();
}
public int getAmount() {
return amount.get();
}
public void setAmount(int amnt) {
amount.set(amnt);
}
public void setDate(String d) {
date.set(d);
}
public void setGivenFor(String givenFor) {
this.givenFor.set(givenFor);
}
public void setGivenTo(String givenTo) {
this.givenTo.set(givenTo);
}
public void setId(int i) {
id.set(i);
}
}