Java Reference
In-Depth Information
} else if (displayable == locationTextBox) {
if (command == locateCommand) {
determineLocation();
} else if (command == backCommand) {
getDisplay().setCurrent(get_locationList());
} else if (command == okCommand) {
add_location(locationTextBox.getString());
getDisplay().setCurrent(get_locationList());
}
} else if (displayable == cannotAddLocationAlert) {
if (command == backCommand) {
getDisplay().setCurrent(get_locationList());
}
}
}
public String get_forecast() {
if (wxlocation == null) {
return "unknown forecast";
} else {
return wxlocation.getForecast();
}
}
public String get_location() {
if (wxlocation == null) {
return "unknown";
} else {
return wxlocation.getLocation();
}
}
public void set_location( String l ) {
try {
wxlocation = locationStore.getLocation(l);
}
catch(Exception e) {}
get_locationTextBox().setString(l);
get_wxForm().setTitle(l);
}
 
Search WWH ::




Custom Search