Java Reference
In-Depth Information
public String get_location() {
if (location == null) {
location = "";
}
return location;
}
public void set_location( String l ) {
location = l;
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;
}
public Display getDisplay() {
return Display.getDisplay(this);
}
/**
* This method should exit the midlet.
*/
public void exitMIDlet() {
getDisplay().setCurrent(null);
destroyApp(true);
notifyDestroyed();
}
public StringItem get_wxItem() {
if (wxItem == null) {
wxItem = new StringItem("Forecast", "Sunny.");
}
return wxItem;
}
 
Search WWH ::




Custom Search