Java Reference
In-Depth Information
public List get_locationList() {
if (locationList == null) {
String[] locations;
locations = locationStore.getLocationStrings();
locationList = new List("Where", List.IMPLICIT, locations, null);
locationList.addCommand(get_screenCommand());
locationList.addCommand(get_backCommand());
locationList.setCommandListener(this);
}
return locationList;
}
public Alert get_cannotAddLocationAlert() {
if (cannotAddLocationAlert == null)
{
cannotAddLocationAlert = new Alert("Cannot Add Location");
cannotAddLocationAlert.setString("An error occurred adding the
location you entered. It has not been added.");
cannotAddLocationAlert.addCommand(get_backCommand());
}
return cannotAddLocationAlert;
}
public Command get_settingCommand() {
if (settingCommand == null) {
settingCommand = new Command("Settings", Command.OK, 1);
}
return settingCommand;
}
public Command get_okCommand() {
if (okCommand == null) {
okCommand = new Command("OK", Command.OK, 1);
}
return okCommand;
}
public Command get_exitCommand() {
if (exitCommand == null) {
exitCommand = new Command("Exit", Command.EXIT, 1);
}
return exitCommand;
}
 
Search WWH ::




Custom Search