Java Reference
In-Depth Information
// Insert pre-init code here
wxForm = new Form(null, new Item[] {//GEN-BEGIN:MVDGetInit2
get_locationItem(),
get_spacer1(),
get_wxItem()
});
wxForm.addCommand(get_exitCommand());
wxForm.addCommand(get_okCommand());
wxForm.setCommandListener(this);//GEN-END:MVDGetInit2
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd2
return wxForm;
}//GEN-END:MVDGetEnd2
/** This method returns instance for locationItem component and should
be called instead of accessing locationItem field directly.
//GEN-BEGIN:MVDGetBegin4
* @return Instance for locationItem component
*/
public StringItem get_locationItem() {
if (locationItem == null) {//GEN-END:MVDGetBegin4
// Insert pre-init code here
locationItem = new StringItem("Location", "Berkeley, CA");
//GEN-LINE:MVDGetInit4
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd4
return locationItem;
}//GEN-END:MVDGetEnd4
/** This method returns instance for exitCommand component and should
be called instead of accessing exitCommand field directly.
//GEN-BEGIN:MVDGetBegin5
* @return Instance for exitCommand component
*/
public Command get_exitCommand() {
if (exitCommand == null) {//GEN-END:MVDGetBegin5
// Insert pre-init code here
exitCommand = new Command("Exit", Command.EXIT, 1);
//GEN-LINE:MVDGetInit5
// Insert post-init code here
}//GEN-BEGIN:MVDGetEnd5
return exitCommand;
}//GEN-END:MVDGetEnd5
 
Search WWH ::




Custom Search