Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package model;
- import javafx.beans.property.SimpleIntegerProperty();
- import javafx.beans.property.SimpleStringProperty();
- // Customer Class
- public final class Customer {
- private final SimpleIntegerProperty customerId = newSimpleIntegerProperty();
- private final SimpleStringProperty customerName = newSimpleStringProperty();
- private final SimpleStringProperty customerAddress = newSimpleStringProperty();
- private final SimpleStringProperty customerCity = newSimpleStringProperty();
- private final SimpleStringProperty customerZip = newSimpleStringProperty();
- private final SimpleStringProperty customerPhone = newSimpleStringProperty();
- public Customer() {}
- public Customer(int id, String name, String address, String phone, String zip) {
- setCustomerId(id);
- setCustomerName(name);
- setCustomerAddress(address);
- setCustomerCity(city);
- setCustomerPhone(phone);
- setCustomerZip(zip);
- }
- // Getters
- public int getCustomerId() {
- return customerId.get();
- }
- public String getCustomerName() {
- return customerName.get();
- }
- public String getCustomerAddress() {
- return customerAddress.get();
- }
- public String getCustomerCity() {
- return customerCity.get();
- }
- public String getCustomerPhone() {
- return customerPhone.get();
- }
- public String getCustomerZip() {
- return customerZip.get();
- }
- // Setters
- public void setCustomerId(int customerId) {
- this.customerId.set(customerId);
- }
- public void setCustomerName(String customerName) {
- this.customerName.set(customerName);
- }
- public void setCustomerAddress(String customerAddress) {
- this.customerAddress.set(customerAddress);
- }
- public void setCustomerCity(String customerCity) {
- this.customerCity.set(customerCity);
- }
- public void setCustomerPhone(String customerPhone) {
- this.customerPhone.set(customerPhone);
- }
- public void setCustomerZip(String customerZip) {
- this.customerZip.set(customerZip);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement