Java Reference
In-Depth Information
public void pauseApp() {
}
public void destroyApp(boolean unconditional) {
}
public void update() {
get_wxItem().setText(get_forecast());
try
{
locationStore.updateLocation(wxlocation);
}
catch(Exception e){}
}
public void determineLocation() {
getDisplay().setCurrent(get_locatingAlert());
Thread t = new Thread(this);
t.start();
}
public void commandAction(Command command, Displayable displayable) {
if (displayable == wxForm) {
if (command == exitCommand) {
exitMIDlet();
} else if (command == settingCommand) {
getDisplay().setCurrent(get_locationList());
}
} else if (displayable == locationList) {
if (command == locateCommand) {
determineLocation();
} else if (command == screenCommand) {
getDisplay().setCurrent(get_locationTextBox());
} else if (command == List.SELECT_COMMAND) {
int index = get_locationList().getSelectedIndex();
set_location(get_locationList().getString(index));
fetcher.cancel();
fetcher = new WeatherFetcher(wxlocation, this);
getDisplay().setCurrent(get_wxForm());
} else if (command == backCommand) {
getDisplay().setCurrent(get_wxForm());
}
 
Search WWH ::




Custom Search