Java Reference
In-Depth Information
/**
* Creates a new instance of HelloMIDlet
*/
public HelloMIDlet() {
}
private Form wxForm;//GEN-BEGIN:MVDFields
private StringItem locationItem;
private Command exitCommand;
private Form settingForm;
private Command okCommand;
private Command backCommand;
private Spacer spacer1;
private StringItem wxItem;
private StringItem stringItem1;
private Spacer spacer2;
private StringItem stringItem2;//GEN-END:MVDFields
//GEN-LINE:MVDMethods
/** This method initializes UI of the application.//GEN-BEGIN:MVDInitBegin
*/
private void initialize() {//GEN-END:MVDInitBegin
// Insert pre-init code here
getDisplay().setCurrent(get_wxForm());//GEN-LINE:MVDInitInit
// Insert post-init code here
}//GEN-LINE:MVDInitEnd
/** Called by the system to indicate that a command has been invoked on
a particular displayable.//GEN-BEGIN:MVDCABegin
* @param command the Command that ws invoked
* @param displayable the Displayable on which the command was invoked
*/
public void commandAction(Command command, Displayable displayable) {
//GEN-END:MVDCABegin
// Insert global pre-action code here
if (displayable == wxForm) {//GEN-BEGIN:MVDCABody
if (command == exitCommand) {//GEN-END:MVDCABody
// Insert pre-action code here
exitMIDlet();//GEN-LINE:MVDCAAction3
// Insert post-action code here
} else if (command == okCommand) {//GEN-LINE:MVDCACase3
 
Search WWH ::




Custom Search