Java Reference
In-Depth Information
} else if (displayable == cannotAddLocationAlert) {
if (command == backCommand) {
getDisplay().setCurrent(get_locationList());
}
}
}
public String get_forecast() {
if (location == null) {
return "unknown forecast";
} else {
return location.getForecast();
}
}
public String get_location() {
if (location == null) {
return "unknown";
} else {
return location.getLocation();
}
}
public void set_location( String l ) {
try {
location = locationStore.getLocation(l);
}
catch(Exception e) {}
get_wxForm().setTitle(l);
}
public void add_location( String l ) {
String locations[];
int i;
try {
locationStore.addLocation( new Location( l, "" ));
} catch (Exception e) {
getDisplay().setCurrent(get_cannotAddLocationAlert());
}
// Refresh the location list lazily.
locationList = null;
}
 
Search WWH ::




Custom Search