1 33 34 package com.icesoft.icefaces.samples.showcase.components.autocomplete; 35 36 40 public class City { 41 42 private String city; 44 private String state; 45 private String zip; 46 private String areaCode; 47 private String country; 48 private String stateCode; 49 private int image; 50 51 public City(String city, String state, String zip, String areaCode, 52 String country, String stateCode, int image) { 53 this.city = city; 54 this.state = state; 55 this.zip = zip; 56 this.areaCode = areaCode; 57 this.country = country; 58 this.stateCode = stateCode; 59 this.image = image; 60 } 61 62 public City() { 63 } 64 65 public void setImage(int image) { 66 this.image = image; 67 } 68 69 public int getImage() { 70 71 return image; 72 } 73 74 public String getCity() { 75 return city; 76 } 77 78 public void setCity(String city) { 79 this.city = city; 80 } 81 82 public String getCountry() { 83 return country; 84 } 85 86 public void setCountry(String country) { 87 this.country = country; 88 } 89 90 public String getState() { 91 return state; 92 } 93 94 public String getAreaCode() { 95 return areaCode; 96 } 97 98 public void setState(String state) { 99 this.state = state; 100 } 101 102 public String getStateCode() { 103 if (stateCode == null) { 105 return stateCode; 106 } else if (stateCode.equals("")) { 107 return stateCode; 108 } else { 109 return "(" + stateCode + ")"; 110 } 111 } 112 113 public void setStateCode(String stateCode) { 114 this.stateCode = stateCode; 115 } 116 117 public String getZip() { 118 return zip; 119 } 120 121 public void setZip(String zip) { 122 this.zip = zip; 123 } 124 125 public void setAreaCode(String areaCode) { 126 this.areaCode = areaCode; 127 } 128 129 } | Popular Tags |