-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathItem.java
43 lines (39 loc) · 1.74 KB
/
Item.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
/*********************************************************************
File: Item.java
Written by: Sara Ali, Ali Abdulla, Eman Sarah Afi
*********************************************************************/
package application;
import java.time.LocalDate;
import javafx.beans.property.SimpleStringProperty;
public class Item {
// Attributes
private SimpleStringProperty itemName;
private SimpleStringProperty location;
private SimpleStringProperty status;
private LocalDate date;
private SimpleStringProperty description;
private SimpleStringProperty ID;
// Constructors
Item(String location1, String itemName1, LocalDate date1, String status1, String description1, String ID1) {
this.itemName = new SimpleStringProperty(itemName1);
this.location = new SimpleStringProperty(location1);
this.status = new SimpleStringProperty(status1);
this.date = date1;
this.description = new SimpleStringProperty(description1);
this.ID = new SimpleStringProperty(ID1);
}
// Setters
public void setItem(String itemName1) {itemName.set(itemName1);}
public void setLocation(String location1) {location.set(location1);;}
public void setStatus(String status1) {status.set(status1);}
public void setDate(LocalDate date1) {this.date = date1;}
public void setDescription(String description1) {description.set(description1);}
public void setID(String ID1) {ID.set(ID1);}
// Getters
public String getItem() {return itemName.get();}
public String getLocation() {return location.get();}
public String getStatus() {return status.get();}
public LocalDate getDate() {return date;}
public String getDescription() {return description.get();}
public String getID() {return ID.get();}
}