|
View:
New views
1 Messages
—
Rating Filter:
Alert me
|
|
|
sms connection, via an assigned sms short codeI developed an apps using the mobility palettes...but I need to deploy
the apps via an assigned short code sms...32142. below is the codes generated: /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package MobileKitchen; import javax.microedition.midlet.*; import javax.microedition.lcdui.*; import org.netbeans.microedition.lcdui.SplashScreen; import org.netbeans.microedition.lcdui.WaitScreen; import org.netbeans.microedition.util.SimpleCancellableTask; /** * @author Seni */ public class MobileKitchen extends MIDlet implements CommandListener { private boolean midletPaused = false; //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0| private SplashScreen CREATEDBY; private SplashScreen WELCOMETOMOBILEKITCHEN; private List MENULIST; private List RICE; private List SWALLOWS; private List YAM; private List BEANS; private List TOPPINGS; private WaitScreen Sending; private TextBox ADDITIONALINFORMATION; private TextBox RequestProcessing; private Alert MessageSent; private Command backCommand1; private Command backCommand; private Command exitCommand; private Command okCommand1; private Command backCommand3; private Command backCommand4; private Command backCommand5; private Command okCommand4; private Command okCommand3; private Command okCommand2; private Command backCommand6; private Command okCommand6; private Command okCommand5; private Command okCommand7; private Command backCommand7; private Command okCommand8; private Command backCommand8; private Command backCommand9; private Command exitCommand1; private Command screenCommand; private Command okCommand; private Command backCommand2; private Image image1; private Image image2; private Font font1; private SimpleCancellableTask task; private Image image3; //</editor-fold>//GEN-END:|fields|0| /** * The MobileKitchen constructor. */ public MobileKitchen() { } //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0| //</editor-fold>//GEN-END:|methods|0| //<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize /** * Initilizes the application. * It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method. */ private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize // write pre-initialize user code here //GEN-LINE:|0-initialize|1|0-postInitialize // write post-initialize user code here }//GEN-BEGIN:|0-initialize|2| //</editor-fold>//GEN-END:|0-initialize|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction /** * Performs an action assigned to the Mobile Device - MIDlet Started point. */ public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction // write pre-action user code here switchDisplayable(null, getCREATEDBY());//GEN-LINE:|3-startMIDlet|1|3-postAction // write post-action user code here }//GEN-BEGIN:|3-startMIDlet|2| //</editor-fold>//GEN-END:|3-startMIDlet|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: resumeMIDlet ">//GEN-BEGIN:|4-resumeMIDlet|0|4-preAction /** * Performs an action assigned to the Mobile Device - MIDlet Resumed point. */ public void resumeMIDlet() {//GEN-END:|4-resumeMIDlet|0|4-preAction // write pre-action user code here //GEN-LINE:|4-resumeMIDlet|1|4-postAction // write post-action user code here }//GEN-BEGIN:|4-resumeMIDlet|2| //</editor-fold>//GEN-END:|4-resumeMIDlet|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|5-switchDisplayable|0|5-preSwitch /** * Switches a current displayable in a display. The <code>display</code> instance is taken from <code>getDisplay</code> method. This method is used by all actions in the design for switching displayable. * @param alert the Alert which is temporarily set to the display; if <code>null</code>, then <code>nextDisplayable</code> is set immediately * @param nextDisplayable the Displayable to be set */ public void switchDisplayable(Alert alert, Displayable nextDisplayable) {//GEN-END:|5-switchDisplayable|0|5-preSwitch // write pre-switch user code here Display display = getDisplay();//GEN-BEGIN:|5-switchDisplayable|1|5-postSwitch if (alert == null) { display.setCurrent(nextDisplayable); } else { display.setCurrent(alert, nextDisplayable); }//GEN-END:|5-switchDisplayable|1|5-postSwitch // write post-switch user code here }//GEN-BEGIN:|5-switchDisplayable|2| //</editor-fold>//GEN-END:|5-switchDisplayable|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|7-commandAction|0|7-preCommandAction /** * Called by a system to indicated that a command has been invoked on a particular displayable. * @param command the Command that was invoked * @param displayable the Displayable where the command was invoked */ public void commandAction(Command command, Displayable displayable) {//GEN-END:|7-commandAction|0|7-preCommandAction // write pre-action user code here if (displayable == ADDITIONALINFORMATION) {//GEN-BEGIN:|7-commandAction|1|117-preAction if (command == backCommand7) {//GEN-END:|7-commandAction|1|117-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|2|117-postAction // write post-action user code here } else if (command == okCommand7) {//GEN-LINE:|7-commandAction|3|119-preAction // write pre-action user code here switchDisplayable(null, getRequestProcessing());//GEN-LINE:|7-commandAction|4|119-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|5|74-preAction } else if (displayable == BEANS) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|5|74-preAction // write pre-action user code here BEANSAction();//GEN-LINE:|7-commandAction|6|74-postAction // write post-action user code here } else if (command == backCommand5) {//GEN-LINE:|7-commandAction|7|78-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|8|78-postAction // write post-action user code here } else if (command == okCommand5) {//GEN-LINE:|7-commandAction|9|105-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|7-commandAction|10|105-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|11|16-preAction } else if (displayable == CREATEDBY) { if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|11|16-preAction // write pre-action user code here switchDisplayable(null, getWELCOMETOMOBILEKITCHEN());//GEN-LINE:|7-commandAction|12|16-postActi on // write post-action user code here }//GEN-BEGIN:|7-commandAction|13|23-preAction } else if (displayable == MENULIST) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|13|23-preAction // write pre-action user code here MENULISTAction();//GEN-LINE:|7-commandAction|14|23-postAction // write post-action user code here } else if (command == backCommand1) {//GEN-LINE:|7-commandAction|15|40-preAction // write pre-action user code here switchDisplayable(null, getWELCOMETOMOBILEKITCHEN());//GEN-LINE:|7-commandAction|16|40-postActi on // write post-action user code here }//GEN-BEGIN:|7-commandAction|17|143-preAction } else if (displayable == MessageSent) { if (command == backCommand9) {//GEN-END:|7-commandAction|17|143-preAction // write pre-action user code here //GEN-LINE:|7-commandAction|18|143-postAction // write post-action user code here } else if (command == exitCommand1) {//GEN-LINE:|7-commandAction|19|145-preAction // write pre-action user code here //GEN-LINE:|7-commandAction|20|145-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|21|31-preAction } else if (displayable == RICE) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|21|31-preAction // write pre-action user code here RICEAction();//GEN-LINE:|7-commandAction|22|31-postAction // write post-action user code here } else if (command == backCommand) {//GEN-LINE:|7-commandAction|23|38-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|24|38-postAction // write post-action user code here } else if (command == okCommand6) {//GEN-LINE:|7-commandAction|25|107-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|7-commandAction|26|107-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|27|126-preAction } else if (displayable == RequestProcessing) { if (command == backCommand8) {//GEN-END:|7-commandAction|27|126-preAction // write pre-action user code here switchDisplayable(null, getADDITIONALINFORMATION());//GEN-LINE:|7-commandAction|28|126-postActi on // write post-action user code here } else if (command == okCommand8) {//GEN-LINE:|7-commandAction|29|128-preAction // write pre-action user code here switchDisplayable(null, getSending());//GEN-LINE:|7-commandAction|30|128-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|31|53-preAction } else if (displayable == SWALLOWS) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|31|53-preAction // write pre-action user code here SWALLOWSAction();//GEN-LINE:|7-commandAction|32|53-postAction // write post-action user code here } else if (command == backCommand4) {//GEN-LINE:|7-commandAction|33|69-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|34|69-postAction // write post-action user code here } else if (command == okCommand3) {//GEN-LINE:|7-commandAction|35|101-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|7-commandAction|36|101-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|37|113-preAction } else if (displayable == Sending) { if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|7-commandAction|37|113-preAction // write pre-action user code here //GEN-LINE:|7-commandAction|38|113-postAction // write post-action user code here } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|7-commandAction|39|112-preAction // write pre-action user code here switchDisplayable(getMessageSent(), getMENULIST());//GEN-LINE:|7-commandAction|40|112-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|41|81-preAction } else if (displayable == TOPPINGS) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|41|81-preAction // write pre-action user code here TOPPINGSAction();//GEN-LINE:|7-commandAction|42|81-postAction // write post-action user code here } else if (command == backCommand6) {//GEN-LINE:|7-commandAction|43|97-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|44|97-postAction // write post-action user code here } else if (command == okCommand2) {//GEN-LINE:|7-commandAction|45|99-preAction // write pre-action user code here //GEN-LINE:|7-commandAction|46|99-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|47|18-preAction } else if (displayable == WELCOMETOMOBILEKITCHEN) { if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|7-commandAction|47|18-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|48|18-postAction // write post-action user code here } else if (command == exitCommand) {//GEN-LINE:|7-commandAction|49|44-preAction // write pre-action user code here //GEN-LINE:|7-commandAction|50|44-postAction // write post-action user code here } else if (command == okCommand1) {//GEN-LINE:|7-commandAction|51|50-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|52|50-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|53|60-preAction } else if (displayable == YAM) { if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|53|60-preAction // write pre-action user code here YAMAction();//GEN-LINE:|7-commandAction|54|60-postAction // write post-action user code here } else if (command == backCommand3) {//GEN-LINE:|7-commandAction|55|63-preAction // write pre-action user code here switchDisplayable(null, getMENULIST());//GEN-LINE:|7-commandAction|56|63-postAction // write post-action user code here } else if (command == okCommand4) {//GEN-LINE:|7-commandAction|57|103-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|7-commandAction|58|103-postAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|59|7-postCommandAction }//GEN-END:|7-commandAction|59|7-postCommandAction // write post-action user code here }//GEN-BEGIN:|7-commandAction|60| //</editor-fold>//GEN-END:|7-commandAction|60| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: CREATEDBY ">//GEN-BEGIN:|14-getter|0|14-preInit /** * Returns an initiliazed instance of CREATEDBY component. * @return the initialized component instance */ public SplashScreen getCREATEDBY() { if (CREATEDBY == null) {//GEN-END:|14-getter|0|14-preInit // write pre-init user code here CREATEDBY = new SplashScreen(getDisplay());//GEN-BEGIN:|14-getter|1|14-postInit CREATEDBY.setTitle("CREATED BY"); CREATEDBY.setCommandListener(this); CREATEDBY.setImage(getImage2()); CREATEDBY.setText("Version 1.0"); CREATEDBY.setTextFont(getFont1()); CREATEDBY.setTimeout(3000);//GEN-END:|14-getter|1|14-postInit // write post-init user code here }//GEN-BEGIN:|14-getter|2| return CREATEDBY; } //</editor-fold>//GEN-END:|14-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: WELCOMETOMOBILEKITCHEN ">//GEN-BEGIN:|17-getter|0|17-preInit /** * Returns an initiliazed instance of WELCOMETOMOBILEKITCHEN component. * @return the initialized component instance */ public SplashScreen getWELCOMETOMOBILEKITCHEN() { if (WELCOMETOMOBILEKITCHEN == null) {//GEN-END:|17-getter|0|17-preInit // write pre-init user code here WELCOMETOMOBILEKITCHEN = new SplashScreen(getDisplay());//GEN-BEGIN:|17-getter|1|17-postInit WELCOMETOMOBILEKITCHEN.setTitle("WELCOME TO MOBILE KITCHEN"); WELCOMETOMOBILEKITCHEN.addCommand(getExitCommand()); WELCOMETOMOBILEKITCHEN.addCommand(getOkCommand1()); WELCOMETOMOBILEKITCHEN.setCommandListener(this); WELCOMETOMOBILEKITCHEN.setImage(getImage1()); WELCOMETOMOBILEKITCHEN.setText("COPYRIGHT (2009)");//GEN-END:|17-getter|1|17-postInit // write post-init user code here }//GEN-BEGIN:|17-getter|2| return WELCOMETOMOBILEKITCHEN; } //</editor-fold>//GEN-END:|17-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: MENULIST ">//GEN-BEGIN:|21-getter|0|21-preInit /** * Returns an initiliazed instance of MENULIST component. * @return the initialized component instance */ public List getMENULIST() { if (MENULIST == null) {//GEN-END:|21-getter|0|21-preInit // write pre-init user code here MENULIST = new List("MENU LIST", Choice.IMPLICIT);//GEN-BEGIN:|21-getter|1|21-postInit MENULIST.append("RICE", null); MENULIST.append("SWALLOWS", null); MENULIST.append("YAM", null); MENULIST.append("BEANS", null); MENULIST.addCommand(getBackCommand1()); MENULIST.setCommandListener(this); MENULIST.setSelectedFlags(new boolean[] { false, false, false, false });//GEN-END:|21-getter|1|21-postInit // write post-init user code here }//GEN-BEGIN:|21-getter|2| return MENULIST; } //</editor-fold>//GEN-END:|21-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: MENULISTAction ">//GEN-BEGIN:|21-action|0|21-preAction /** * Performs an action assigned to the selected list element in the MENULIST component. */ public void MENULISTAction() {//GEN-END:|21-action|0|21-preAction // enter pre-action user code here String __selectedString = getMENULIST().getString(getMENULIST().getSelectedIndex());//GEN-BEGIN:| 21-action|1|25-preAction if (__selectedString != null) { if (__selectedString.equals("RICE")) {//GEN-END:|21-action|1|25-preAction // write pre-action user code here switchDisplayable(null, getRICE());//GEN-LINE:|21-action|2|25-postAction // write post-action user code here } else if (__selectedString.equals("SWALLOWS")) {//GEN-LINE:|21-action|3|26-preAction // write pre-action user code here switchDisplayable(null, getSWALLOWS());//GEN-LINE:|21-action|4|26-postAction // write post-action user code here } else if (__selectedString.equals("YAM")) {//GEN-LINE:|21-action|5|27-preAction // write pre-action user code here switchDisplayable(null, getYAM());//GEN-LINE:|21-action|6|27-postAction // write post-action user code here } else if (__selectedString.equals("BEANS")) {//GEN-LINE:|21-action|7|28-preAction // write pre-action user code here switchDisplayable(null, getBEANS());//GEN-LINE:|21-action|8|28-postAction // write post-action user code here }//GEN-BEGIN:|21-action|9|21-postAction }//GEN-END:|21-action|9|21-postAction // enter post-action user code here }//GEN-BEGIN:|21-action|10| //</editor-fold>//GEN-END:|21-action|10| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: RICE ">//GEN-BEGIN:|30-getter|0|30-preInit /** * Returns an initiliazed instance of RICE component. * @return the initialized component instance */ public List getRICE() { if (RICE == null) {//GEN-END:|30-getter|0|30-preInit // write pre-init user code here RICE = new List("RICE", Choice.IMPLICIT);//GEN-BEGIN:|30-getter|1|30-postInit RICE.append("JOLLOF RICE", null); RICE.append("FRIED RICE", null); RICE.append("WHITE RICE", null); RICE.addCommand(getBackCommand()); RICE.addCommand(getOkCommand6()); RICE.setCommandListener(this); RICE.setSelectedFlags(new boolean[] { false, false, false });//GEN-END:|30-getter|1|30-postInit // write post-init user code here }//GEN-BEGIN:|30-getter|2| return RICE; } //</editor-fold>//GEN-END:|30-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: RICEAction ">//GEN-BEGIN:|30-action|0|30-preAction /** * Performs an action assigned to the selected list element in the RICE component. */ public void RICEAction() {//GEN-END:|30-action|0|30-preAction // enter pre-action user code here String __selectedString = getRICE().getString(getRICE().getSelectedIndex());//GEN-BEGIN:|30-actio n|1|33-preAction if (__selectedString != null) { if (__selectedString.equals("JOLLOF RICE")) {//GEN-END:|30-action|1|33-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|30-action|2|33-postAction // write post-action user code here } else if (__selectedString.equals("FRIED RICE")) {//GEN-LINE:|30-action|3|34-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|30-action|4|34-postAction // write post-action user code here } else if (__selectedString.equals("WHITE RICE")) {//GEN-LINE:|30-action|5|35-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|30-action|6|35-postAction // write post-action user code here }//GEN-BEGIN:|30-action|7|30-postAction }//GEN-END:|30-action|7|30-postAction // enter post-action user code here }//GEN-BEGIN:|30-action|8| //</editor-fold>//GEN-END:|30-action|8| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|37-getter|0|37-preInit /** * Returns an initiliazed instance of backCommand component. * @return the initialized component instance */ public Command getBackCommand() { if (backCommand == null) {//GEN-END:|37-getter|0|37-preInit // write pre-init user code here backCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|37-getter|1|37-postInit // write post-init user code here }//GEN-BEGIN:|37-getter|2| return backCommand; } //</editor-fold>//GEN-END:|37-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|39-getter|0|39-preInit /** * Returns an initiliazed instance of backCommand1 component. * @return the initialized component instance */ public Command getBackCommand1() { if (backCommand1 == null) {//GEN-END:|39-getter|0|39-preInit // write pre-init user code here backCommand1 = new Command("Back", Command.BACK, 0);//GEN-LINE:|39-getter|1|39-postInit // write post-init user code here }//GEN-BEGIN:|39-getter|2| return backCommand1; } //</editor-fold>//GEN-END:|39-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand ">//GEN-BEGIN:|43-getter|0|43-preInit /** * Returns an initiliazed instance of exitCommand component. * @return the initialized component instance */ public Command getExitCommand() { if (exitCommand == null) {//GEN-END:|43-getter|0|43-preInit // write pre-init user code here exitCommand = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|43-getter|1|43-postInit // write post-init user code here }//GEN-BEGIN:|43-getter|2| return exitCommand; } //</editor-fold>//GEN-END:|43-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: SWALLOWS ">//GEN-BEGIN:|52-getter|0|52-preInit /** * Returns an initiliazed instance of SWALLOWS component. * @return the initialized component instance */ public List getSWALLOWS() { if (SWALLOWS == null) {//GEN-END:|52-getter|0|52-preInit // write pre-init user code here SWALLOWS = new List("SWALLOWS", Choice.IMPLICIT);//GEN-BEGIN:|52-getter|1|52-postInit SWALLOWS.append("SEMOVITA/EFO ELEGUSI", null); SWALLOWS.append("AMALA/EFO ELEGUSI", null); SWALLOWS.addCommand(getBackCommand4()); SWALLOWS.addCommand(getOkCommand3()); SWALLOWS.setCommandListener(this); SWALLOWS.setSelectedFlags(new boolean[] { false, false });//GEN-END:|52-getter|1|52-postInit // write post-init user code here }//GEN-BEGIN:|52-getter|2| return SWALLOWS; } //</editor-fold>//GEN-END:|52-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: SWALLOWSAction ">//GEN-BEGIN:|52-action|0|52-preAction /** * Performs an action assigned to the selected list element in the SWALLOWS component. */ public void SWALLOWSAction() {//GEN-END:|52-action|0|52-preAction // enter pre-action user code here String __selectedString = getSWALLOWS().getString(getSWALLOWS().getSelectedIndex());//GEN-BEGIN:| 52-action|1|55-preAction if (__selectedString != null) { if (__selectedString.equals("SEMOVITA/EFO ELEGUSI")) {//GEN-END:|52-action|1|55-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|52-action|2|55-postAction // write post-action user code here } else if (__selectedString.equals("AMALA/EFO ELEGUSI")) {//GEN-LINE:|52-action|3|56-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|52-action|4|56-postAction // write post-action user code here }//GEN-BEGIN:|52-action|5|52-postAction }//GEN-END:|52-action|5|52-postAction // enter post-action user code here }//GEN-BEGIN:|52-action|6| //</editor-fold>//GEN-END:|52-action|6| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: YAM ">//GEN-BEGIN:|59-getter|0|59-preInit /** * Returns an initiliazed instance of YAM component. * @return the initialized component instance */ public List getYAM() { if (YAM == null) {//GEN-END:|59-getter|0|59-preInit // write pre-init user code here YAM = new List("YAM", Choice.IMPLICIT);//GEN-BEGIN:|59-getter|1|59-postInit YAM.append("YAM PORRIDGE", null); YAM.addCommand(getBackCommand3()); YAM.addCommand(getOkCommand4()); YAM.setCommandListener(this); YAM.setSelectedFlags(new boolean[] { false });//GEN-END:|59-getter|1|59-postInit // write post-init user code here }//GEN-BEGIN:|59-getter|2| return YAM; } //</editor-fold>//GEN-END:|59-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: YAMAction ">//GEN-BEGIN:|59-action|0|59-preAction /** * Performs an action assigned to the selected list element in the YAM component. */ public void YAMAction() {//GEN-END:|59-action|0|59-preAction // enter pre-action user code here String __selectedString = getYAM().getString(getYAM().getSelectedIndex());//GEN-BEGIN:|59-action| 1|64-preAction if (__selectedString != null) { if (__selectedString.equals("YAM PORRIDGE")) {//GEN-END:|59-action|1|64-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|59-action|2|64-postAction // write post-action user code here }//GEN-BEGIN:|59-action|3|59-postAction }//GEN-END:|59-action|3|59-postAction // enter post-action user code here }//GEN-BEGIN:|59-action|4| //</editor-fold>//GEN-END:|59-action|4| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: BEANS ">//GEN-BEGIN:|73-getter|0|73-preInit /** * Returns an initiliazed instance of BEANS component. * @return the initialized component instance */ public List getBEANS() { if (BEANS == null) {//GEN-END:|73-getter|0|73-preInit // write pre-init user code here BEANS = new List("BEANS", Choice.IMPLICIT);//GEN-BEGIN:|73-getter|1|73-postInit BEANS.append("JOLLOF BEANS& DODO", null); BEANS.addCommand(getBackCommand5()); BEANS.addCommand(getOkCommand5()); BEANS.setCommandListener(this); BEANS.setSelectedFlags(new boolean[] { false });//GEN-END:|73-getter|1|73-postInit // write post-init user code here }//GEN-BEGIN:|73-getter|2| return BEANS; } //</editor-fold>//GEN-END:|73-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: BEANSAction ">//GEN-BEGIN:|73-action|0|73-preAction /** * Performs an action assigned to the selected list element in the BEANS component. */ public void BEANSAction() {//GEN-END:|73-action|0|73-preAction // enter pre-action user code here String __selectedString = getBEANS().getString(getBEANS().getSelectedIndex());//GEN-BEGIN:|73-act ion|1|76-preAction if (__selectedString != null) { if (__selectedString.equals("JOLLOF BEANS& DODO")) {//GEN-END:|73-action|1|76-preAction // write pre-action user code here switchDisplayable(null, getTOPPINGS());//GEN-LINE:|73-action|2|76-postAction // write post-action user code here }//GEN-BEGIN:|73-action|3|73-postAction }//GEN-END:|73-action|3|73-postAction // enter post-action user code here }//GEN-BEGIN:|73-action|4| //</editor-fold>//GEN-END:|73-action|4| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPPINGS ">//GEN-BEGIN:|80-getter|0|80-preInit /** * Returns an initiliazed instance of TOPPINGS component. * @return the initialized component instance */ public List getTOPPINGS() { if (TOPPINGS == null) {//GEN-END:|80-getter|0|80-preInit // write pre-init user code here TOPPINGS = new List("TOPPINGS", Choice.IMPLICIT);//GEN-BEGIN:|80-getter|1|80-postInit TOPPINGS.append("BEEF", null); TOPPINGS.append("CHICKEN", null); TOPPINGS.append("FISH", null); TOPPINGS.addCommand(getBackCommand6()); TOPPINGS.addCommand(getOkCommand2()); TOPPINGS.setCommandListener(this); TOPPINGS.setSelectedFlags(new boolean[] { false, false, false });//GEN-END:|80-getter|1|80-postInit // write post-init user code here }//GEN-BEGIN:|80-getter|2| return TOPPINGS; } //</editor-fold>//GEN-END:|80-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Method: TOPPINGSAction ">//GEN-BEGIN:|80-action|0|80-preAction /** * Performs an action assigned to the selected list element in the TOPPINGS component. */ public void TOPPINGSAction() {//GEN-END:|80-action|0|80-preAction // enter pre-action user code here String __selectedString = getTOPPINGS().getString(getTOPPINGS().getSelectedIndex());//GEN-BEGIN:| 80-action|1|84-preAction if (__selectedString != null) { if (__selectedString.equals("BEEF")) {//GEN-END:|80-action|1|84-preAction // write pre-action user code here switchDisplayable(null, getADDITIONALINFORMATION());//GEN-LINE:|80-action|2|84-postAction // write post-action user code here } else if (__selectedString.equals("CHICKEN")) {//GEN-LINE:|80-action|3|83-preAction // write pre-action user code here switchDisplayable(null, getADDITIONALINFORMATION());//GEN-LINE:|80-action|4|83-postAction // write post-action user code here } else if (__selectedString.equals("FISH")) {//GEN-LINE:|80-action|5|85-preAction // write pre-action user code here switchDisplayable(null, getADDITIONALINFORMATION());//GEN-LINE:|80-action|6|85-postAction // write post-action user code here }//GEN-BEGIN:|80-action|7|80-postAction }//GEN-END:|80-action|7|80-postAction // enter post-action user code here }//GEN-BEGIN:|80-action|8| //</editor-fold>//GEN-END:|80-action|8| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand1 ">//GEN-BEGIN:|49-getter|0|49-preInit /** * Returns an initiliazed instance of okCommand1 component. * @return the initialized component instance */ public Command getOkCommand1() { if (okCommand1 == null) {//GEN-END:|49-getter|0|49-preInit // write pre-init user code here okCommand1 = new Command("Ok", Command.OK, 0);//GEN-LINE:|49-getter|1|49-postInit // write post-init user code here }//GEN-BEGIN:|49-getter|2| return okCommand1; } //</editor-fold>//GEN-END:|49-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand3 ">//GEN-BEGIN:|62-getter|0|62-preInit /** * Returns an initiliazed instance of backCommand3 component. * @return the initialized component instance */ public Command getBackCommand3() { if (backCommand3 == null) {//GEN-END:|62-getter|0|62-preInit // write pre-init user code here backCommand3 = new Command("Back", Command.BACK, 0);//GEN-LINE:|62-getter|1|62-postInit // write post-init user code here }//GEN-BEGIN:|62-getter|2| return backCommand3; } //</editor-fold>//GEN-END:|62-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand4 ">//GEN-BEGIN:|68-getter|0|68-preInit /** * Returns an initiliazed instance of backCommand4 component. * @return the initialized component instance */ public Command getBackCommand4() { if (backCommand4 == null) {//GEN-END:|68-getter|0|68-preInit // write pre-init user code here backCommand4 = new Command("Back", Command.BACK, 0);//GEN-LINE:|68-getter|1|68-postInit // write post-init user code here }//GEN-BEGIN:|68-getter|2| return backCommand4; } //</editor-fold>//GEN-END:|68-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand5 ">//GEN-BEGIN:|77-getter|0|77-preInit /** * Returns an initiliazed instance of backCommand5 component. * @return the initialized component instance */ public Command getBackCommand5() { if (backCommand5 == null) {//GEN-END:|77-getter|0|77-preInit // write pre-init user code here backCommand5 = new Command("Back", Command.BACK, 0);//GEN-LINE:|77-getter|1|77-postInit // write post-init user code here }//GEN-BEGIN:|77-getter|2| return backCommand5; } //</editor-fold>//GEN-END:|77-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image1 ">//GEN-BEGIN:|93-getter|0|93-preInit /** * Returns an initiliazed instance of image1 component. * @return the initialized component instance */ public Image getImage1() { if (image1 == null) {//GEN-END:|93-getter|0|93-preInit // write pre-init user code here try {//GEN-BEGIN:|93-getter|1|93-@... image1 = Image.createImage("/front.jpg"); } catch (java.io.IOException e) {//GEN-END:|93-getter|1|93-@... e.printStackTrace(); }//GEN-LINE:|93-getter|2|93-postInit // write post-init user code here }//GEN-BEGIN:|93-getter|3| return image1; } //</editor-fold>//GEN-END:|93-getter|3| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image2 ">//GEN-BEGIN:|94-getter|0|94-preInit /** * Returns an initiliazed instance of image2 component. * @return the initialized component instance */ public Image getImage2() { if (image2 == null) {//GEN-END:|94-getter|0|94-preInit // write pre-init user code here try {//GEN-BEGIN:|94-getter|1|94-@... image2 = Image.createImage("/sINE.png"); } catch (java.io.IOException e) {//GEN-END:|94-getter|1|94-@... e.printStackTrace(); }//GEN-LINE:|94-getter|2|94-postInit // write post-init user code here }//GEN-BEGIN:|94-getter|3| return image2; } //</editor-fold>//GEN-END:|94-getter|3| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: Sending ">//GEN-BEGIN:|109-getter|0|109-preInit /** * Returns an initiliazed instance of Sending component. * @return the initialized component instance */ public WaitScreen getSending() { if (Sending == null) {//GEN-END:|109-getter|0|109-preInit // write pre-init user code here Sending = new WaitScreen(getDisplay());//GEN-BEGIN:|109-getter|1|109-postInit Sending.setTitle("Sending...."); Sending.setCommandListener(this); Sending.setImage(getImage1()); Sending.setText("Sending please wait...."); Sending.setTask(getTask());//GEN-END:|109-getter|1|109-postInit // write post-init user code here }//GEN-BEGIN:|109-getter|2| return Sending; } //</editor-fold>//GEN-END:|109-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: ADDITIONALINFORMATION ">//GEN-BEGIN:|115-getter|0|115-preInit /** * Returns an initiliazed instance of ADDITIONALINFORMATION component. * @return the initialized component instance */ public TextBox getADDITIONALINFORMATION() { if (ADDITIONALINFORMATION == null) {//GEN-END:|115-getter|0|115-preInit // write pre-init user code here ADDITIONALINFORMATION = new TextBox("ADDITIONAL INFORMATION", null, 100, TextField.ANY);//GEN-BEGIN:|115-getter|1|115-postInit ADDITIONALINFORMATION.addCommand(getBackCommand7()); ADDITIONALINFORMATION.addCommand(getOkCommand7()); ADDITIONALINFORMATION.setCommandListener(this);//GEN-END:|115-getter|1| 115-postInit // write post-init user code here }//GEN-BEGIN:|115-getter|2| return ADDITIONALINFORMATION; } //</editor-fold>//GEN-END:|115-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: RequestProcessing ">//GEN-BEGIN:|123-getter|0|123-preInit /** * Returns an initiliazed instance of RequestProcessing component. * @return the initialized component instance */ public TextBox getRequestProcessing() { if (RequestProcessing == null) {//GEN-END:|123-getter|0|123-preInit // write pre-init user code here RequestProcessing = new TextBox("Request Processing", "A sum of #30 will be deducted from your credit balance, do you wish to continue?", 100, TextField.ANY | TextField.UNEDITABLE);//GEN-BEGIN:|123-getter|1|123-postInit RequestProcessing.addCommand(getBackCommand8()); RequestProcessing.addCommand(getOkCommand8()); RequestProcessing.setCommandListener(this);//GEN-END:|123-getter|1|123- postInit // write post-init user code here }//GEN-BEGIN:|123-getter|2| return RequestProcessing; } //</editor-fold>//GEN-END:|123-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: MessageSent ">//GEN-BEGIN:|131-getter|0|131-preInit /** * Returns an initiliazed instance of MessageSent component. * @return the initialized component instance */ public Alert getMessageSent() { if (MessageSent == null) {//GEN-END:|131-getter|0|131-preInit // write pre-init user code here MessageSent = new Alert("Message Sent", null, null, AlertType.CONFIRMATION);//GEN-BEGIN:|131-getter|1|131-postInit MessageSent.addCommand(getBackCommand9()); MessageSent.addCommand(getExitCommand1()); MessageSent.setCommandListener(this); MessageSent.setTimeout(Alert.FOREVER);//GEN-END:|131-getter|1|131-postI nit // write post-init user code here }//GEN-BEGIN:|131-getter|2| return MessageSent; } //</editor-fold>//GEN-END:|131-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand6 ">//GEN-BEGIN:|96-getter|0|96-preInit /** * Returns an initiliazed instance of backCommand6 component. * @return the initialized component instance */ public Command getBackCommand6() { if (backCommand6 == null) {//GEN-END:|96-getter|0|96-preInit // write pre-init user code here backCommand6 = new Command("Back", Command.BACK, 0);//GEN-LINE:|96-getter|1|96-postInit // write post-init user code here }//GEN-BEGIN:|96-getter|2| return backCommand6; } //</editor-fold>//GEN-END:|96-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand2 ">//GEN-BEGIN:|98-getter|0|98-preInit /** * Returns an initiliazed instance of okCommand2 component. * @return the initialized component instance */ public Command getOkCommand2() { if (okCommand2 == null) {//GEN-END:|98-getter|0|98-preInit // write pre-init user code here okCommand2 = new Command("Ok", Command.OK, 0);//GEN-LINE:|98-getter|1|98-postInit // write post-init user code here }//GEN-BEGIN:|98-getter|2| return okCommand2; } //</editor-fold>//GEN-END:|98-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand3 ">//GEN-BEGIN:|100-getter|0|100-preInit /** * Returns an initiliazed instance of okCommand3 component. * @return the initialized component instance */ public Command getOkCommand3() { if (okCommand3 == null) {//GEN-END:|100-getter|0|100-preInit // write pre-init user code here okCommand3 = new Command("Ok", Command.OK, 0);//GEN-LINE:|100-getter|1|100-postInit // write post-init user code here }//GEN-BEGIN:|100-getter|2| return okCommand3; } //</editor-fold>//GEN-END:|100-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand4 ">//GEN-BEGIN:|102-getter|0|102-preInit /** * Returns an initiliazed instance of okCommand4 component. * @return the initialized component instance */ public Command getOkCommand4() { if (okCommand4 == null) {//GEN-END:|102-getter|0|102-preInit // write pre-init user code here okCommand4 = new Command("Ok", Command.OK, 0);//GEN-LINE:|102-getter|1|102-postInit // write post-init user code here }//GEN-BEGIN:|102-getter|2| return okCommand4; } //</editor-fold>//GEN-END:|102-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand5 ">//GEN-BEGIN:|104-getter|0|104-preInit /** * Returns an initiliazed instance of okCommand5 component. * @return the initialized component instance */ public Command getOkCommand5() { if (okCommand5 == null) {//GEN-END:|104-getter|0|104-preInit // write pre-init user code here okCommand5 = new Command("Ok", Command.OK, 0);//GEN-LINE:|104-getter|1|104-postInit // write post-init user code here }//GEN-BEGIN:|104-getter|2| return okCommand5; } //</editor-fold>//GEN-END:|104-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand6 ">//GEN-BEGIN:|106-getter|0|106-preInit /** * Returns an initiliazed instance of okCommand6 component. * @return the initialized component instance */ public Command getOkCommand6() { if (okCommand6 == null) {//GEN-END:|106-getter|0|106-preInit // write pre-init user code here okCommand6 = new Command("Ok", Command.OK, 0);//GEN-LINE:|106-getter|1|106-postInit // write post-init user code here }//GEN-BEGIN:|106-getter|2| return okCommand6; } //</editor-fold>//GEN-END:|106-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand7 ">//GEN-BEGIN:|116-getter|0|116-preInit /** * Returns an initiliazed instance of backCommand7 component. * @return the initialized component instance */ public Command getBackCommand7() { if (backCommand7 == null) {//GEN-END:|116-getter|0|116-preInit // write pre-init user code here backCommand7 = new Command("Back", Command.BACK, 0);//GEN-LINE:|116-getter|1|116-postInit // write post-init user code here }//GEN-BEGIN:|116-getter|2| return backCommand7; } //</editor-fold>//GEN-END:|116-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand7 ">//GEN-BEGIN:|118-getter|0|118-preInit /** * Returns an initiliazed instance of okCommand7 component. * @return the initialized component instance */ public Command getOkCommand7() { if (okCommand7 == null) {//GEN-END:|118-getter|0|118-preInit // write pre-init user code here okCommand7 = new Command("Ok", Command.OK, 0);//GEN-LINE:|118-getter|1|118-postInit // write post-init user code here }//GEN-BEGIN:|118-getter|2| return okCommand7; } //</editor-fold>//GEN-END:|118-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand8 ">//GEN-BEGIN:|125-getter|0|125-preInit /** * Returns an initiliazed instance of backCommand8 component. * @return the initialized component instance */ public Command getBackCommand8() { if (backCommand8 == null) {//GEN-END:|125-getter|0|125-preInit // write pre-init user code here backCommand8 = new Command("Back", Command.BACK, 0);//GEN-LINE:|125-getter|1|125-postInit // write post-init user code here }//GEN-BEGIN:|125-getter|2| return backCommand8; } //</editor-fold>//GEN-END:|125-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand8 ">//GEN-BEGIN:|127-getter|0|127-preInit /** * Returns an initiliazed instance of okCommand8 component. * @return the initialized component instance */ public Command getOkCommand8() { if (okCommand8 == null) {//GEN-END:|127-getter|0|127-preInit // write pre-init user code here okCommand8 = new Command("Ok", Command.OK, 0);//GEN-LINE:|127-getter|1|127-postInit // write post-init user code here }//GEN-BEGIN:|127-getter|2| return okCommand8; } //</editor-fold>//GEN-END:|127-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: font1 ">//GEN-BEGIN:|108-getter|0|108-preInit /** * Returns an initiliazed instance of font1 component. * @return the initialized component instance */ public Font getFont1() { if (font1 == null) {//GEN-END:|108-getter|0|108-preInit // write pre-init user code here font1 = Font.getFont(Font.FACE_MONOSPACE, Font.STYLE_BOLD | Font.STYLE_ITALIC, Font.SIZE_LARGE);//GEN-LINE:|108-getter|1|108-postInit // write post-init user code here }//GEN-BEGIN:|108-getter|2| return font1; } //</editor-fold>//GEN-END:|108-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: task ">//GEN-BEGIN:|114-getter|0|114-preInit /** * Returns an initiliazed instance of task component. * @return the initialized component instance */ public SimpleCancellableTask getTask() { if (task == null) {//GEN-END:|114-getter|0|114-preInit // write pre-init user code here task = new SimpleCancellableTask();//GEN-BEGIN:|114-getter|1|114-execute task.setExecutable(new org.netbeans.microedition.util.Executable() { public void execute() throws Exception {//GEN-END:|114-getter|1|114-execute // write task-execution user code here }//GEN-BEGIN:|114-getter|2|114-postInit });//GEN-END:|114-getter|2|114-postInit // write post-init user code here }//GEN-BEGIN:|114-getter|3| return task; } //</editor-fold>//GEN-END:|114-getter|3| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand9 ">//GEN-BEGIN:|142-getter|0|142-preInit /** * Returns an initiliazed instance of backCommand9 component. * @return the initialized component instance */ public Command getBackCommand9() { if (backCommand9 == null) {//GEN-END:|142-getter|0|142-preInit // write pre-init user code here backCommand9 = new Command("Back", Command.BACK, 0);//GEN-LINE:|142-getter|1|142-postInit // write post-init user code here }//GEN-BEGIN:|142-getter|2| return backCommand9; } //</editor-fold>//GEN-END:|142-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand1 ">//GEN-BEGIN:|144-getter|0|144-preInit /** * Returns an initiliazed instance of exitCommand1 component. * @return the initialized component instance */ public Command getExitCommand1() { if (exitCommand1 == null) {//GEN-END:|144-getter|0|144-preInit // write pre-init user code here exitCommand1 = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|144-getter|1|144-postInit // write post-init user code here }//GEN-BEGIN:|144-getter|2| return exitCommand1; } //</editor-fold>//GEN-END:|144-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: screenCommand ">//GEN-BEGIN:|65-getter|0|65-preInit /** * Returns an initiliazed instance of screenCommand component. * @return the initialized component instance */ public Command getScreenCommand() { if (screenCommand == null) {//GEN-END:|65-getter|0|65-preInit // write pre-init user code here screenCommand = new Command("Screen", Command.SCREEN, 0);//GEN-LINE:|65-getter|1|65-postInit // write post-init user code here }//GEN-BEGIN:|65-getter|2| return screenCommand; } //</editor-fold>//GEN-END:|65-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand ">//GEN-BEGIN:|45-getter|0|45-preInit /** * Returns an initiliazed instance of okCommand component. * @return the initialized component instance */ public Command getOkCommand() { if (okCommand == null) {//GEN-END:|45-getter|0|45-preInit // write pre-init user code here okCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|45-getter|1|45-postInit // write post-init user code here }//GEN-BEGIN:|45-getter|2| return okCommand; } //</editor-fold>//GEN-END:|45-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand2 ">//GEN-BEGIN:|41-getter|0|41-preInit /** * Returns an initiliazed instance of backCommand2 component. * @return the initialized component instance */ public Command getBackCommand2() { if (backCommand2 == null) {//GEN-END:|41-getter|0|41-preInit // write pre-init user code here backCommand2 = new Command("Back", Command.BACK, 0);//GEN-LINE:|41-getter|1|41-postInit // write post-init user code here }//GEN-BEGIN:|41-getter|2| return backCommand2; } //</editor-fold>//GEN-END:|41-getter|2| //<editor-fold defaultstate="collapsed" desc=" Generated Getter: image3 ">//GEN-BEGIN:|141-getter|0|141-preInit /** * Returns an initiliazed instance of image3 component. * @return the initialized component instance */ public Image getImage3() { if (image3 == null) {//GEN-END:|141-getter|0|141-preInit // write pre-init user code here try {//GEN-BEGIN:|141-getter|1|141-@... image3 = Image.createImage("/mk.png"); } catch (java.io.IOException e) {//GEN-END:|141-getter|1|141-@... e.printStackTrace(); }//GEN-LINE:|141-getter|2|141-postInit // write post-init user code here }//GEN-BEGIN:|141-getter|3| return image3; } //</editor-fold>//GEN-END:|141-getter|3| /** * Returns a display instance. * @return the display instance. */ public Display getDisplay () { return Display.getDisplay(this); } /** * Exits MIDlet. */ public void exitMIDlet() { switchDisplayable (null, null); destroyApp(true); notifyDestroyed(); } /** * Called when MIDlet is started. * Checks whether the MIDlet have been already started and initialize/starts or resumes the MIDlet. */ public void startApp() { if (midletPaused) { resumeMIDlet (); } else { initialize (); startMIDlet (); } midletPaused = false; } /** * Called when MIDlet is paused. */ public void pauseApp() { midletPaused = true; } /** * Called to signal the MIDlet to terminate. * @param unconditional if true, then the MIDlet has to be unconditionally terminated and all resources has to be released. */ public void destroyApp(boolean unconditional) { } } |
| Free embeddable forum powered by Nabble | Forum Help |