Java Reference
In-Depth Information
catch(Exception e) {};
destroyApp(true);
notifyDestroyed();
}
public Form get_infoForm() {
if (infoForm == null) {
infoForm = new Form(null, new Item[] {get_helloStringItem()});
infoForm.addCommand(get_exitCommand());
infoForm.setCommandListener(this);
}
return infoForm;
}
public StringItem get_helloStringItem() {
if (helloStringItem == null) {
helloStringItem = new StringItem("",
"An alarm has been set for fifteen seconds from now.");
}
return helloStringItem;
}
public Command get_exitCommand() {
if (exitCommand == null) {
exitCommand = new Command("Exit", Command.EXIT, 1);
}
return exitCommand;
}
public Alert get_alarmAlert() {
if (alarmAlert == null) {
alarmAlert = new Alert(null, "The alarm has fired.\n", null, null);
alarmAlert.setTimeout(-2);
}
return alarmAlert;
}
public void startApp() {
initialize();
}
 
Search WWH ::




Custom Search