Advertisement
Guest User

Untitled

a guest
Jun 18th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.02 KB | None | 0 0
  1. package model;
  2.  
  3. import javafx.beans.property.SimpleStringProperty;
  4.  
  5. public class City {
  6.      
  7.     private  SimpleStringProperty CityID;
  8.     private  SimpleStringProperty CityName;
  9.     private  SimpleStringProperty Country;
  10.  
  11.    
  12.     public City(String aCityID, String aCityName, String aCountry) {
  13.         this.CityID= new SimpleStringProperty(aCityID);
  14.         this.CityName= new SimpleStringProperty(aCityName);
  15.         this.Country= new SimpleStringProperty(aCountry);
  16.     }
  17.     public void setCityID(String aCityID) {
  18.         this.CityID= new SimpleStringProperty(aCityID);
  19.     }
  20.     public String getCityID() {
  21.         return CityID.get();
  22.     }
  23.     public void setCityName(String aCityName) {
  24.         this.CityName= new SimpleStringProperty(aCityName);
  25.     }
  26.     public String getCityName() {
  27.         return CityName.get();
  28.     }
  29.     public void setCountry(String aCountry) {
  30.         this.Country= new SimpleStringProperty(aCountry);
  31.     }
  32.     public String getCountry() {
  33.         return Country.get();
  34.     }
  35.  
  36.    
  37. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement