Java Reference
In-Depth Information
public void add_location( String l ) {
wxlocation = new WeatherLocation(l);
try {
locationStore.addLocation( wxlocation );
} catch (Exception e) {
getDisplay().setCurrent(get_cannotAddLocationAlert());
}
locationList = null;
}
public Display getDisplay() {
return Display.getDisplay(this);
}
public void exitMIDlet() {
getDisplay().setCurrent(null);
destroyApp(true);
notifyDestroyed();
}
public StringItem get_wxItem() {
if (wxItem == null) {
wxItem = new StringItem("Forecast", get_forecast());
}
return wxItem;
}
public Form get_wxForm() {
if (wxForm == null) {
wxForm = new Form(get_location(), new Item[] {
get_wxItem()
});
wxForm.addCommand(get_exitCommand());
wxForm.addCommand(get_settingCommand());
wxForm.setCommandListener(this);
}
return wxForm;
}
 
Search WWH ::




Custom Search