public List getData() {
List<Option> optionList = new ArrayList<Option>();
if (cityCode.equals("Port Elizabeth")) {
optionList.add(new Option("Humewood"));
optionList.add(new Option("Summerstrand"));
} else if (cityCode.equals("East London")) {
optionList.add(new Option("Beacon Bay"));
optionList.add(new Option("Cinta East"));
} else if (cityCode.equals("Bloemfontein")) {
optionList.add(new Option("Fichardpark"));
optionList.add(new Option("Wilgehof"));
} else if (cityCode.equals("Welkom")) {
optionList.add(new Option("Dagbreek"));
optionList.add(new Option("Eerstemyn"));
} else if (cityCode.equals("Johannesburg")) {
optionList.add(new Option("Rivonia"));
optionList.add(new Option("Sandton"));
} else if (cityCode.equals("Pretoria")) {
optionList.add(new Option("Garsfontein"));
optionList.add(new Option("Sunnyside"));
} else if (cityCode.equals("Cape Town")) {
optionList.add(new Option("Milnerton"));
optionList.add(new Option("Blaauwberg"));
} else if (cityCode.equals("George")) {
optionList.add(new Option("Panorama"));
optionList.add(new Option("Fernridge"));
}
return optionList;
}
});