Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package model;
- import javafx.beans.property.SimpleStringProperty;
- public class City {
- private SimpleStringProperty CityID;
- private SimpleStringProperty CityName;
- private SimpleStringProperty Country;
- public City(String aCityID, String aCityName, String aCountry) {
- this.CityID= new SimpleStringProperty(aCityID);
- this.CityName= new SimpleStringProperty(aCityName);
- this.Country= new SimpleStringProperty(aCountry);
- }
- public void setCityID(String aCityID) {
- this.CityID= new SimpleStringProperty(aCityID);
- }
- public String getCityID() {
- return CityID.get();
- }
- public void setCityName(String aCityName) {
- this.CityName= new SimpleStringProperty(aCityName);
- }
- public String getCityName() {
- return CityName.get();
- }
- public void setCountry(String aCountry) {
- this.Country= new SimpleStringProperty(aCountry);
- }
- public String getCountry() {
- return Country.get();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement