Java Reference
In-Depth Information
public Display getDisplay() {
return Display.getDisplay(this);
}
public void exitMIDlet() {
if (fetcher!=null) fetcher.cancel();
fetcher = null;
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;
}
public TextBox get_locationTextBox() {
if (locationTextBox == null) {
locationTextBox = new TextBox("Add Location", "", 80, 0);
locationTextBox.addCommand(get_backCommand());
locationTextBox.addCommand(get_okCommand());
locationTextBox.setCommandListener(this);
}
return locationTextBox;
}
 
Search WWH ::




Custom Search