Package EMIDA

Source Code of EMIDA.CATMainMidlet

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package EMIDA;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import org.netbeans.microedition.lcdui.SplashScreen;
import java.io.*;

/**
* @author al
*/
public class CATMainMidlet extends MIDlet implements CommandListener {

    private boolean midletPaused = false;
    private Alert alert;

    /*  First time start up in a cell phone will prompt user for phone number.
        this number is stored in an RMS DB and retrieved each subsequent run.
        This number is sent to CAT for each operation request.
        If a CLDC denies creating a DB, which is possible; then there is a prompt
        for the users cell phone before sending a HTTP call.
    
        The value of DBagentCellNumber must be non-numeric since the user can
        prefix the number with a +. Which this software does by default.
     
     In the simulator or in debugger we don't use the RMS DB. We need to
     set it.
    */
    String DBagentCellNumber = "";
    //In the simulator or in debugger we don't use the RMS DB. We need to
    //set it.
   
    //name of RMS db that contains cell phone number
    String DBname = "cat_agent.db";

    // record store for cell number
    DBStore db = null;


    /*
     HTTP material
     See the INIT method as well.
    
     */
    //Server variable can be overridden in init() call by setting JAD properties
    String server = "12.175.191.162/mwallet";

    //Agent operations pass through Debisys
    String agent_server = "demo.cashandtransact.com";

    //This is over=ridden in init method
    String baseURL = "http://" + server + "/mwallet/smscontroller?sms_req=";
    String agent_baseURL = "http://" + server + "/mwallet/smscontroller?sms_req=";
   
    String tailURL = "&immediate=true&siteUser=" + DBagentCellNumber;
 
    String HumanCmd = "";

    //SMS types
    //set by comm call to server
    String Comm_msg = ""; //return message

    //This is the operation sent to the CAT server. Can also be entered in a phone
    // as a text message as well.
    // Example: bal <pin>
    String Sms_message_out = "this is a test"; //typically overridden with
                                                //wallet commands



   
    // set by form calling sendopform so back button can
    // return to previous form.
    // See AgtMainMenu
    int previousAgentForm = -1; //used for agent menu


    /*  What is the language. Client side only
        Currently: English, Igbo, Hausa, and Yoruba.
        See JAD file and class file Languages
     
        The title of the form will change when the language changes.
        Example: Welcome to MKudi Vx.x L=for language E=English, Y=Yoruba ....
        So forth.
     * Welcome to MKudi Vx.x LY
     * Welcome to MKudi Vx.x LH
     *
    */

     /* LANGUAGE_CHANGE */
    /**
     * Defaults to English for debug but for release it's controlled by JAD file.
     * See init()
     */
    String Language = "English";
    Language Lang = null;
    String LangAbbrev = "E";

     /*
      * If set to 1, issue a command of APIN for Agent Change PIN
      * If set to 0, issue a command of PIN for Consumer Change PIN.
      * We use the same Change PIN form for real estagte savings
      */
     int UseAgentPIN = 0;

     /*
      * If set to 1, issue a command of ABAL for Agent Get Balance
      * If set to 0, issue a command of BAL for Consumer Get Balance.
      * We use the same Balance form for real estagte savings
      */
     int UseAgentBAL = 0;


     /*
      * If set to 0, we are working on consumer operations.
      * If set to 1, we are working on agent operations.
      * BACK button specific, to return to correct menu.
      *
      */
     int AgentOperations = 0;


     /*
      * If the agent_on is set to 1, then the Agent operations
      * are visible. We will need to check this variable
      * to switch URL's for agent operations (if necessary)
      *
      */
     String agent_on = "0";
    
     /**
      * At time of registering a user, the agent needs to input
      * their PIN.
      * We collect it and globalize it so other forms can access it
      * We will also use the "Unbanked" form for 2 other registrations
      * since we have to collect all of the same material.
      */
     String AGENTPIN = "";
     String LASTNAME = "";
     String PHONE = "";
     String FIRSTNAME = "";
     String SECURITYQ = "";
     String SECURITYA = "";

     // 1 = unbanked form
     // 2 = semi-banked form
     // 3 = banked form

     int whichRegistration = 1;

    //////
//<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
    private Command exitCommand;
    private Command exitCommand1;
    private Command SOexitCommand;
    private Command SOokCommand;
    private Command SENDbackCommand;
    private Command SENDokCommand;
    private Command WITHbackCommand;
    private Command SENDOPCommand;
    private Command SENDOPbackCommand;
    private Command WITHokCommand;
    private Command PAYbackCommand;
    private Command backCommand3;
    private Command PAYokCommand;
    private Command TOPokCommand;
    private Command TOPbackCommand;
    private Command BALokCommand;
    private Command BALbackCommand;
    private Command CPokCommand;
    private Command CPbackCommand;
    private Command LANGokCommand;
    private Command CommOkCommand;
    private Command LANGbackCommand;
    private Command okCommand10;
    private Command cancelCommand;
    private Command okSendTxtMsg;
    private Command AgentExitCommand;
    private Command AgtTopokCommand;
    private Command AgtTopbackCommand;
    private Command AgtRegUnBankedOKCommand;
    private Command AgtRegUnBankedbackCommand;
    private Command AgtLoadokCommand;
    private Command AgtLoadbackCommand;
    private Command AgtCashOutokCommand;
    private Command AgtCashOutbackCommand;
    private Command DepositokCommand;
    private Command okCommand17;
    private Command okCommand16;
    private Command DepositbackCommand;
    private Command HISokCommand;
    private Command HISbackCommand;
    private Command mainListExitCommand;
    private Command SPLASHokCommand;
    private Command mainmenulist_selectbutton;
    private Command RegSelectTypeCustomerbackCommand;
    private Command AgtRegBankbackCommand;
    private Command AgtRegSemiBankedbackCommand;
    private Command AgtReghelpCommand;
    private Command RegHelpokCommand;
    private Command RegSelectTypeCustomerokCommand;
    private Command AgtWithdrawbackCommand;
    private Command AgtWithdrawokCommand;
    private Command AgtRegBankokCommand;
    private Command AgtRegSemiBankedokCommand;
    private Form SignOnForm;
    private TextField SOUsersCellPhonetextField;
    private Spacer spacer6;
    private ImageItem imageItem1;
    private Spacer spacer5;
    private SplashScreen splashScreen;
    private Form Sendopform;
    private StringItem SENDOPdatastringItem;
    private TextField SENDOPmissingCellPhonetextField;
    private Spacer spacer4;
    private Form NotImplform;
    private ImageItem imageItem;
    private Form TOPUPform;
    private TextField TOPamounttextField3;
    private TextField TOPPINtextField1;
    private Form Balanceform;
    private TextField BALpintextField3;
    private Form PINform;
    private TextField CPconfirmNEWPINtextField;
    private TextField CPnewPINtextField;
    private TextField CPoldPINtextField;
    private Form Languageform;
    private ChoiceGroup choiceLANGGroup1;
    private Spacer spacer;
    private Form Commform;
    private StringItem CommMsgstringItem;
    private Form AgtRegUnBankform;
    private TextField AgtRegFnametextField;
    private TextField AgtRegCelltextField;
    private TextField AgtRegLnametextField;
    private TextField AgtRegSecurityQtextField;
    private TextField AgtRegSecurityAtextField;
    private List AgentMainMenu;
    private Form AgtTopform;
    private TextField AgtTopAmounttextField;
    private TextField AgtTopCElltextField;
    private TextField AgtTopAgentIDtextField;
    private Form AgtLoadform;
    private TextField AgtLoadAmounttextField;
    private TextField AgtLoadTokentextField;
    private Spacer spacer2;
    private StringItem AgtLoadAlert;
    private TextField AgtLoadAgentIDtextField;
    private Form AgtCashOutform;
    private Spacer spacer3;
    private TextField AgtCashAgentIDtextField;
    private TextField AgtCashAmttextField;
    private TextField AgtCashTokentextField;
    private StringItem AgtCashalert;
    private Form AgtRegHelpform;
    private StringItem AgtRegHelpCommentstringItem;
    private Form AgtRegSemiBankedform;
    private ChoiceGroup AgtRegSemiBankedchoiceGroup2;
    private ChoiceGroup AgtRegSemiBankedchoiceGroup;
    private Form AgtRegBankedform;
    private ChoiceGroup AgtRegBankedIDchoiceGroup;
    private ChoiceGroup AgtRegBankedBSchoiceGroup;
    private ChoiceGroup AgtRegBankedReferenceschoiceGroup;
    private ChoiceGroup AgtRegBankedAddrchoiceGroup;
    private Form AgtRegMainMenuform;
    private ChoiceGroup AgtRegCustomerTypechoiceGroup;
    private Spacer spacer1;
    private TextField AgtRegPINtextField;
    private Form AgtWithdrawform;
    private Image image2;
    private Font font1;
    private Image image1;
    private Ticker ticker1;
    private Image image;
//</editor-fold>//GEN-END:|fields|0|

    /**
     * The HelloMIDlet constructor.
     */
    public CATMainMidlet() {
    }


//<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
    /**
     * Initializes 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
        server = getAppProperty("EMIDA_APP_IPADDRESS");
        agent_server = getAppProperty("EMIDA_APP_AGENT_IPADDRESS");

        agent_on = getAppProperty("EMIDA_APP_AGENT");
        String useSSL =   "0";

        useSSL =   getAppProperty("EMIDA_APP_SSL");

        //baseURL = "http://" + server.trim() + "/SMSService/SMSService.aspx?msgData=";
        if (useSSL.startsWith("1"))
            baseURL = "https://" + server.trim() + "/mwallet/smscontroller?sms_req=";
        else
            baseURL = "http://" + server.trim() + "/mwallet/smscontroller?sms_req=";


        if (agent_on.startsWith("1")) {
            String tmp1 = server.toLowerCase();
            String tmp2 = agent_server.toLowerCase();
           if (tmp1.equals(tmp2))
               agent_baseURL = baseURL;
           else {
                if (useSSL.startsWith("0"))
                    agent_baseURL = "http://" + agent_server.trim() + "/mwallet/smscontroller?sms_req=";
                else
                    agent_baseURL = "https://" + agent_server.trim() + "/mwallet/smscontroller?sms_req=";
           }
        }//

        /* LANGUAGE_CHANGE */
        Language = getAppProperty("EMIDA_APP_LANGUAGE");

        if (Language.equals("English")) {
            LangAbbrev = "E";
        } else if (Language.equals("Igbo")) {
            LangAbbrev = "I";
        } else if (Language.equals("Hausa")) {
            LangAbbrev = "H";
        } else if (Language.equals("Yoruba")) {
            LangAbbrev = "Y";
        }

        Lang = new Language(Language);


//GEN-LINE:|0-initialize|1|0-postInitialize
        // write post-initialize user code here
        CheckDatabase();
    }//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
        if (DBagentCellNumber.length() == 0)
            switchDisplayable(null, getSignOnForm());
        else
            switchDisplayable(null, getSplashScreen());//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 == AgentMainMenu) {//GEN-BEGIN:|7-commandAction|1|171-preAction
            if (command == AgentExitCommand) {//GEN-END:|7-commandAction|1|171-preAction
                // write pre-action user code here
                AgentOperations =0;
                exitMIDlet();//GEN-LINE:|7-commandAction|2|171-postAction
                // write post-action user code here
            } else if (command == List.SELECT_COMMAND) {//GEN-LINE:|7-commandAction|3|165-preAction
                // write pre-action user code here
                AgentOperations =1;
                AgentMainMenuAction();//GEN-LINE:|7-commandAction|4|165-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|5|212-preAction
        } else if (displayable == AgtCashOutform) {
            if (command == AgtCashOutbackCommand) {//GEN-END:|7-commandAction|5|212-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|6|212-postAction
                // write post-action user code here
            } else if (command == AgtCashOutokCommand) {//GEN-LINE:|7-commandAction|7|215-preAction
                // write pre-action user code here
                String agentid = AgtCashAgentIDtextField.getString();
                String token = AgtCashTokentextField.getString();
                String amount = AgtCashAmttextField.getString();


                if (agentid.length() == 0 || token.length() == 0 ||
                        amount.length() == 0 ) {
                        ShowMsg(setLang("SEND_MSG4"),AgtCashOutform);
                        return;
                }

                boolean bStatus = checkPIN(agentid);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38"),AgtCashOutform);
                        return;
                }

                //In Nigeria the consumer can enter a comma for amount
                //Example: 12,000 Naira.
                amount = stripComma(amount);
                boolean valid = verifyAmount(amount);
                if (!valid) {
                      //ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
                     ShowMsg(setLang("SEND_MSG37"),AgtCashOutform);
                     return;
                }

                valid = checkLegal(amount);
                if (!valid) {
                      //ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
                     ShowMsg(setLang("SEND_MSG17"),AgtCashOutform);
                     return;
                }

                //HumanCmd = "You are dispensing cash to " + phone;
                HumanCmd = setLang("SEND_MSG15") + setLang("SEND_MSG14") +
                        amount;

                if ( SENDOPdatastringItem !=null) {
                    SENDOPdatastringItem.setText(HumanCmd);
                }

                //disp agentid cell token amount

                Sms_message_out = "disp " + agentid + " " +
                        token + " " + amount;


                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|8|215-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|9|200-preAction
        } else if (displayable == AgtLoadform) {
            if (command == AgtLoadbackCommand) {//GEN-END:|7-commandAction|9|200-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|10|200-postAction
                // write post-action user code here
            } else if (command == AgtLoadokCommand) {//GEN-LINE:|7-commandAction|11|203-preAction
                // write pre-action user code here
                String agentid = AgtLoadAgentIDtextField.getString();
                String amount = AgtLoadAmounttextField.getString();
                String token = AgtLoadTokentextField.getString();

                if (agentid.length() == 0 || token.length() == 0 ||
                        amount.length() == 0 ) {
                        ShowMsg(setLang("SEND_MSG4"),AgtLoadform);
                        return;
                }

                boolean bStatus = checkPIN(agentid);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,AgtLoadform);
                        return;
                }

                //In Nigeria the consumer can enter a comma for amount
                //Example: 12,000 Naira.
                amount = stripComma(amount);

                boolean valid = verifyAmount(amount);
                if (!valid) {
                      //ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
                     ShowMsg(setLang("SEND_MSG37"),AgtLoadform);
                     return;
                }

                valid = checkLegal(amount);
                if (!valid) {
                      //ShowMsg("Amount must be greater than 0 and only 2 decimals places.",AgtLoadform);
                     ShowMsg(setLang("SEND_MSG17"),AgtLoadform);
                     return;
                }

                HumanCmd = setLang("SEND_MSG13") + setLang("SEND_MSG14") +
                        amount;

                if ( SENDOPdatastringItem !=null) {
                     SENDOPdatastringItem.setText(HumanCmd);
                }

                Sms_message_out = "load " + agentid + " " +
                        token  + " " + amount;

                //nullItems();

                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|12|203-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|13|316-preAction
        } else if (displayable == AgtRegBankedform) {
            if (command == AgtRegBankbackCommand) {//GEN-END:|7-commandAction|13|316-preAction
                // write pre-action user code here
                 if (AgtRegPINtextField !=null)
                    AgtRegPINtextField.setString("");

                switchDisplayable(null, getAgtRegMainMenuform());//GEN-LINE:|7-commandAction|14|316-postAction
                // write post-action user code here
            } else if (command == AgtRegBankokCommand) {//GEN-LINE:|7-commandAction|15|324-preAction
                // write pre-action user code here

               int choice = AgtRegBankedIDchoiceGroup.getSelectedIndex();
                if (choice == 1) {
                    //error
                    ShowMsg(setLang("SEND_MSG39"),getAgtRegBankedform());
                    return;
                }

               choice = AgtRegBankedBSchoiceGroup.getSelectedIndex();
                if (choice == 1) {
                    //error
                    ShowMsg(setLang("SEND_MSG39"),getAgtRegBankedform());
                    return;
                }

               choice = AgtRegBankedReferenceschoiceGroup.getSelectedIndex();
                if (choice == 1) {
                    //error
                    ShowMsg(setLang("SEND_MSG39"),getAgtRegBankedform());
                    return;
                }

                //buildHumanMsg("You are registering ", null, lastname, phone);
                HumanCmd = setLang("SEND_MSG12") + FIRSTNAME + " " +
                        LASTNAME + setLang("SEND_MSG16") + PHONE;
                if ( SENDOPdatastringItem !=null) {
                    SENDOPdatastringItem.setText(HumanCmd);
                }

                /*
                 * Registration command is different because instead
                 * of separating the items with a space, we are using a
                 * dash. This is for certain names like:
                 * John Paul Beef
                 * or Harry Von Burger.
                 */

                 //banked
                 Sms_message_out = "reg-" + AGENTPIN + "-" +
                        FIRSTNAME + "-" + LASTNAME + "-" +
                        PHONE + "-" + SECURITYQ + "-" + SECURITYA +
                        "-" + "3";

                //nullItems();
                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|16|324-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|17|292-preAction
        } else if (displayable == AgtRegHelpform) {
            if (command == RegHelpokCommand) {//GEN-END:|7-commandAction|17|292-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgtRegUnBankform());//GEN-LINE:|7-commandAction|18|292-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|19|306-preAction
        } else if (displayable == AgtRegMainMenuform) {
            if (command == RegSelectTypeCustomerbackCommand) {//GEN-END:|7-commandAction|19|306-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|20|306-postAction
                // write post-action user code here
            } else if (command == RegSelectTypeCustomerokCommand) {//GEN-LINE:|7-commandAction|21|304-preAction
                String agentid = AgtRegPINtextField.getString();
                 if (agentid.length() == 0)  {
                        ShowMsg(setLang("SEND_MSG4"),AgtRegMainMenuform);
                        return;
                }

                boolean bStatus = checkPIN(agentid);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38"),AgtRegMainMenuform);
                        return;
                }

                AGENTPIN = agentid;

                if (AgtRegLnametextField != null) {
                    AgtRegLnametextField.setString("");
                    AgtRegFnametextField.setString("");
                    AgtRegCelltextField.setString("");
                    AgtRegSecurityQtextField.setString("");
                    AgtRegSecurityAtextField.setString("");
                }
                //get radio selection
                int index = AgtRegCustomerTypechoiceGroup.getSelectedIndex();
                switch (index) {
                    case 0://unbank - no id
                        whichRegistration = 1;

                        break;
                    case 1://semi - id
                        whichRegistration =2;
                        break;
                    case 2://banked - references
                        whichRegistration = 3;
                        break;
                    default:
                        ShowMsg("You must make a selection.",AgtRegMainMenuform);
                        return;
                }//
                //always go through the unbanked form to collect common
                //data
                switchDisplayable(null, getAgtRegUnBankform());

//GEN-LINE:|7-commandAction|22|304-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|23|319-preAction
        } else if (displayable == AgtRegSemiBankedform) {
            if (command == AgtRegSemiBankedbackCommand) {//GEN-END:|7-commandAction|23|319-preAction
                // write pre-action user code here
                if (AgtRegPINtextField !=null)
                    AgtRegPINtextField.setString("");

                switchDisplayable(null, getAgtRegMainMenuform());//GEN-LINE:|7-commandAction|24|319-postAction
                // write post-action user code here
            } else if (command == AgtRegSemiBankedokCommand) {//GEN-LINE:|7-commandAction|25|322-preAction
                // write pre-action user code here
                int choice = AgtRegSemiBankedchoiceGroup.getSelectedIndex();
                if (choice == 1) {
                    //error
                    ShowMsg(setLang("SEND_MSG39"),getAgtRegSemiBankedform());
                    return;
                }

                choice = AgtRegSemiBankedchoiceGroup2.getSelectedIndex();
                if (choice == 1) {
                    //error
                    ShowMsg(setLang("SEND_MSG39"),getAgtRegSemiBankedform());
                    return;
                }

                //buildHumanMsg("You are registering ", null, lastname, phone);
                HumanCmd = setLang("SEND_MSG12") + FIRSTNAME + " " +
                        LASTNAME + setLang("SEND_MSG16") + PHONE;
                if ( SENDOPdatastringItem !=null) {
                    SENDOPdatastringItem.setText(HumanCmd);
                }

                /*
                 * Registration command is different because instead
                 * of separating the items with a space, we are using a
                 * dash. This is for certain names like:
                 * John Paul Beef
                 * or Harry Von Burger.
                 */

                 //SEMI-Sbanked
                 Sms_message_out = "reg-" + AGENTPIN + "-" +
                        FIRSTNAME + "-" + LASTNAME + "-" +
                        PHONE + "-" + SECURITYQ + "-" + SECURITYA +
                        "-" + "-2";

                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|26|322-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|27|184-preAction
        } else if (displayable == AgtRegUnBankform) {
            if (command == AgtRegUnBankedOKCommand) {//GEN-END:|7-commandAction|27|184-preAction
                // write pre-action user code here

                LASTNAME = AgtRegLnametextField.getString();
                FIRSTNAME  = AgtRegFnametextField.getString();
                PHONE = AgtRegCelltextField.getString();
                SECURITYQ  = AgtRegSecurityQtextField.getString();
                SECURITYA  = AgtRegSecurityAtextField.getString();

                if (LASTNAME.length() == 0 ||
                        FIRSTNAME.length() == 0 || PHONE.length() == 0 ||
                        SECURITYQ.length() == 0 || SECURITYA.length() == 0) {
                        ShowMsg(setLang("SEND_MSG4"),AgtRegUnBankform);
                        return;
                }
                LASTNAME = LASTNAME.trim();
                FIRSTNAME = FIRSTNAME.trim();
                SECURITYQ = SECURITYQ.trim();
                SECURITYA = SECURITYA.trim();

                boolean bStatus = verifyPhoneNumber(PHONE);
                if (!bStatus) {
                      ShowMsg("Phone number has illegal character.",AgtRegUnBankform);
                      return;
                }


                //buildHumanMsg("You are registering ", null, lastname, phone);
                HumanCmd = setLang("SEND_MSG12") + FIRSTNAME + " " +
                        LASTNAME + setLang("SEND_MSG16") + PHONE;
                if ( SENDOPdatastringItem !=null) {
                    SENDOPdatastringItem.setText(HumanCmd);
                }

                /*
                 * Registration command is different because instead
                 * of separating the items with a space, we are using a
                 * dash. This is for certain names like:
                 * John Paul Beef
                 * or Harry Von Burger.
                 */

                 //unbanked
                 Sms_message_out = "reg-" + AGENTPIN + "-" +
                        FIRSTNAME + "-" + LASTNAME + "-" +
                        PHONE + "-" + SECURITYQ + "-" + SECURITYA +
                        "-" + "1";

                //nullItems();
                 switch (whichRegistration) {
                    case 1:
                        switchDisplayable(null, getSendopform());
                        break;
                     case 2:
                         switchDisplayable(null, getAgtRegSemiBankedform());
                         break;
                     case 3:
                         switchDisplayable(null, getAgtRegBankedform());
                         break;

                 }
//GEN-LINE:|7-commandAction|28|184-postAction
                // write post-action user code here
            } else if (command == AgtRegUnBankedbackCommand) {//GEN-LINE:|7-commandAction|29|181-preAction
                // write pre-action user code here
                 if (AgtRegPINtextField !=null)
                    AgtRegPINtextField.setString("");
                switchDisplayable(null, getAgtRegMainMenuform());//GEN-LINE:|7-commandAction|30|181-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|31|189-preAction
        } else if (displayable == AgtTopform) {
            if (command == AgtTopbackCommand) {//GEN-END:|7-commandAction|31|189-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|32|189-postAction
                // write post-action user code here
            } else if (command == AgtTopokCommand) {//GEN-LINE:|7-commandAction|33|192-preAction
                // write pre-action user code here
                String agentid = AgtTopAgentIDtextField.getString();
                String cell = AgtTopCElltextField.getString();
                String amount = AgtTopAmounttextField.getString();

                if (agentid.length() == 0 || cell.length() == 0 ||
                        amount.length() == 0 ) {
                        ShowMsg(setLang("SEND_MSG4"),AgtTopform);
                        return;
                }

                boolean bStatus = checkPIN(agentid);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,AgtTopform);
                        return;
                }

                //In Nigeria the consumer can enter a comma for amount
                //Example: 12,000 Naira.
                amount = stripComma(amount);

               boolean valid = verifyAmount(amount);
                if (!valid) {
                      //ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
                     ShowMsg(setLang("SEND_MSG37"),AgtTopform);
                     return;
                }
                 valid = checkLegal(amount);
                if (!valid) {
                      //ShowMsg("Amount must be greater than 0 and only 2 decimals places.",AgtTopform);
                     ShowMsg(setLang("SEND_MSG17"),AgtTopform);
                     return;
                }


                bStatus = verifyPhoneNumber(cell);
                if (!bStatus) {
                      ShowMsg("Phone number has illegal character.",AgtTopform);
                      return;
                }

                cell = stripPlus(cell);
                buildHumanMsg(setLang("SEND_MSG11"), null,cell, amount);

                Sms_message_out = "top " + agentid + " " +
                        cell + " " + amount;
               // nullItems();

                switchDisplayable(null, getNotImplform());//GEN-LINE:|7-commandAction|34|192-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|35|344-preAction
        } else if (displayable == AgtWithdrawform) {
            if (command == AgtWithdrawbackCommand) {//GEN-END:|7-commandAction|35|344-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|36|344-postAction
                // write post-action user code here
            } else if (command == AgtWithdrawokCommand) {//GEN-LINE:|7-commandAction|37|342-preAction
                // write pre-action user code here
                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|38|342-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|39|108-preAction
        } else if (displayable == Balanceform) {
            if (command == BALbackCommand) {//GEN-END:|7-commandAction|39|108-preAction
                // write pre-action user code here
               switchDisplayable(null, getAgentMainMenu());
//GEN-LINE:|7-commandAction|40|108-postAction
                // write post-action user code here
            } else if (command == BALokCommand) {//GEN-LINE:|7-commandAction|41|111-preAction
                // write pre-action user code here
                String pin = BALpintextField3.getString();

                if (pin.length() == 0) {
                        ShowMsg(setLang("SEND_MSG10") ,Balanceform);
                        return;
                }
                boolean bStatus = checkPIN(pin);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,Balanceform);
                        return;
                }

                //HumanCmd = " You want to check your balance.";
                HumanCmd = setLang("SEND_MSG9");

                if ( SENDOPdatastringItem !=null) {
                    SENDOPdatastringItem.setText(HumanCmd);
                }
                if (UseAgentBAL ==0) {
                    Sms_message_out = "bal " + pin;
                } else {//server has a case problem
                    Sms_message_out = "ABAL " + pin;
                }

                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|42|111-postAction
                // write post-action user code here

            }//GEN-BEGIN:|7-commandAction|43|144-preAction
        } else if (displayable == Commform) {
            if (command == CommOkCommand) {//GEN-END:|7-commandAction|43|144-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());
//GEN-LINE:|7-commandAction|44|144-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|45|129-preAction
        } else if (displayable == Languageform) {
            if (command == LANGbackCommand) {//GEN-END:|7-commandAction|45|129-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|46|129-postAction
                // write post-action user code here
            } else if (command == LANGokCommand) {//GEN-LINE:|7-commandAction|47|139-preAction
                // write pre-action user code here
                int choice = choiceLANGGroup1.getSelectedIndex();
                if (choice == -1) {
                    //error
                    ShowMsg(setLang("SEND_MSG6"),Languageform);
                    return;
                }



                String lang = "";
                 switch (choice) {
                    case 0://english
                        lang = "English";
                        LangAbbrev = "E";
                        break;
                    case 1:
                        lang = "Igbo";
                        LangAbbrev = "I";
                        break;
                    case 2://Hausa
                        lang = "Hausa";
                        LangAbbrev = "H";
                        break;
                    case 3://Yo
                        lang = "Yoruba";
                        LangAbbrev = "Y";
                        break;
                 }

                 //over ride for now
                 lang = "English";
                 LangAbbrev = "E";
                 Lang.setLanguage(lang,AgentMainMenu);
                 setTitle();
                 //createCanvasMainList(1);

                 //HumanCmd = "Language set to " + lang;
                 HumanCmd = setLang("SEND_MSG5") + lang;
                 ShowMsg(HumanCmd, null, false );

                 /* LANGUAGE_CHANGE */

/*
                 if (TOPUPform !=null) {
                    TOPUPform.deleteAll();
                    TOPamounttextField3 = null;
                    TOPPINtextField1 = null;
                    TOPokCommand = null;
                    TOPbackCommand = null;
                    TOPUPform = null;
                 }

                 if (Balanceform !=null) {
                    Balanceform.deleteAll();
                    BALpintextField3 = null;
                    BALokCommand = null;
                    BALbackCommand = null;
                    Balanceform = null;
                 }

                 if (PINform !=null) {
                    PINform.deleteAll();
                    CPoldPINtextField = null;
                    CPnewPINtextField = null;
                    CPconfirmNEWPINtextField = null;
                    CPokCommand = null;
                    CPbackCommand = null;
                    PINform = null;
                 }

                if (Languageform !=null) {
                    Languageform.deleteAll();
                    LANGokCommand = null;
                    LANGbackCommand = null;
                    Languageform = null;
                 }

*/
//GEN-LINE:|7-commandAction|48|139-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|49|81-preAction
        } else if (displayable == NotImplform) {
            if (command == backCommand3) {//GEN-END:|7-commandAction|49|81-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|50|81-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|51|117-preAction
        } else if (displayable == PINform) {
            if (command == CPbackCommand) {//GEN-END:|7-commandAction|51|117-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());

//GEN-LINE:|7-commandAction|52|117-postAction
                // write post-action user code here
            } else if (command == CPokCommand) {//GEN-LINE:|7-commandAction|53|120-preAction
                // write pre-action user code here
                String oldpin = CPoldPINtextField.getString();
                String newpin = CPnewPINtextField.getString();
                String confirmpin = CPconfirmNEWPINtextField.getString();


                if (oldpin.length() == 0 || newpin.length() == 0 ||
                        confirmpin.length() == 0 ) {
                        ShowMsg(setLang("SEND_MSG4"),PINform);
                        return;
                }

                boolean bStatus = checkPIN(oldpin);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,PINform);
                        return;
                }

                bStatus = checkPIN(newpin);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,PINform);
                        return;
                }

                bStatus = checkPIN(confirmpin);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,PINform);
                        return;
                }

                if (newpin.compareTo(confirmpin) != 0) {
                        ShowMsg(setLang("SEND_MSG3"),PINform);
                        return;
                }

                 //HumanCmd = "You are about to change your PIN. Please make note of your new pin.";
                 HumanCmd = setLang("SEND_MSG2");
                 if ( SENDOPdatastringItem !=null) {
                   SENDOPdatastringItem.setText(HumanCmd);
                 }

                //pin oldpin newpin confirmpin
                if (UseAgentPIN ==0) {
                    Sms_message_out = "pin " + oldpin + " " +
                        newpin + " " + confirmpin;

                } else {
                    Sms_message_out = "apin " + oldpin + " " +
                        newpin + " " + confirmpin;
                }

                UseAgentPIN =0;


                switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|54|120-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|55|65-preAction
        } else if (displayable == Sendopform) {
            if (command == SENDOPCommand) {//GEN-END:|7-commandAction|55|65-preAction
                // write pre-action user code here
                String newcell = "";
                if (SENDOPmissingCellPhonetextField != null) {
                    newcell = SENDOPmissingCellPhonetextField.getString();
                    DBagentCellNumber = newcell.trim();
                    DBagentCellNumber = stripPC(DBagentCellNumber);
                }

                String uu_url = urlEncode(Sms_message_out);
                String URL = "";

                String version = "&ver=" + getAppProperty("EMIDA_APP_VERSION");
                if (agent_on.startsWith("1") && AgentOperations ==)
                    URL = agent_baseURL + uu_url + tailURL + DBagentCellNumber + version;
                else
                    URL = baseURL + uu_url + tailURL + DBagentCellNumber + version;

                switchDisplayable(null, getCommform());
                 if (Commform !=null)
                     //CommMsgstringItem.setText("We are processing your request");
                     CommMsgstringItem.setText(setLang("SEND_MSG19"));

                //instant comm class....send
                SendOperation(URL);
//GEN-LINE:|7-commandAction|56|65-postAction
                // write post-action user code here
            } else if (command == SENDOPbackCommand) {//GEN-LINE:|7-commandAction|57|67-preAction
            // write pre-action user code here

                if (previousAgentForm != -1) {
                    switch (previousAgentForm) {
                        //case 0: //top up
                        //    if (AgtTopAgentIDtextField !=null) {
                        //        AgtTopAgentIDtextField.setString("");
                        //    }
                        //    switchDisplayable(null, getAgtTopform());
                        //    break;
                        case 0: //cash in
                            if (AgtLoadAgentIDtextField !=null) {
                                AgtLoadAgentIDtextField.setString("");
                            }
                            switchDisplayable(null, getAgtLoadform());
                            break;
                        case 1: //cash out
                            if (AgtCashAgentIDtextField !=null) {
                                AgtCashAgentIDtextField.setString("");
                            }
                            switchDisplayable(null, getAgtCashOutform());
                            break;
                        case 2: //check balance
                            if (BALpintextField3 !=null)
                                BALpintextField3.setString("");
                            UseAgentBAL = 1;
                            switchDisplayable(null, getBalanceform());
                            break;
                        case 3: //registration
                            if (AgtRegPINtextField !=null)
                                AgtRegPINtextField.setString("");
                            //need to check which reg form?
                            switchDisplayable(null, getAgtRegMainMenuform());
                            break;
                        case 4: //change pin
                            if (CPoldPINtextField !=null) {
                                CPoldPINtextField.setString("");
                                CPnewPINtextField.setString("");
                                CPconfirmNEWPINtextField.setString("");
                            }
                            UseAgentPIN = 1;
                            switchDisplayable(null, getPINform());
                            break;
                    }//switch
                }
//GEN-LINE:|7-commandAction|58|67-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|59|39-preAction
        } else if (displayable == SignOnForm) {
            if (command == SOexitCommand) {//GEN-END:|7-commandAction|59|39-preAction
                // write pre-action user code here
                exitMIDlet();//GEN-LINE:|7-commandAction|60|39-postAction
                // write post-action user code here
            } else if (command == SOokCommand) {//GEN-LINE:|7-commandAction|61|42-preAction
                // write pre-action user code here
                String cell = SOUsersCellPhonetextField.getString();
                if (cell.length() ==0) {
                    //ShowMsg("Cellphone number is required", getSignOnForm(), true);
                    ShowMsg(setLang("SEND_MSG20"), getSignOnForm(), true);
                    return;
                }
                SaveData(cell);
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|62|42-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|63|98-preAction
        } else if (displayable == TOPUPform) {
            if (command == TOPbackCommand) {//GEN-END:|7-commandAction|63|98-preAction
                // write pre-action user code here
//GEN-LINE:|7-commandAction|64|98-postAction
                // write post-action user code here
            } else if (command == TOPokCommand) {//GEN-LINE:|7-commandAction|65|101-preAction
                // write pre-action user code here
                String amount = TOPamounttextField3.getString();
                String pin = TOPPINtextField1.getString();
                //String number = ???

                if (pin.length() == 0 || amount.length() == 0 ) {
                        ShowMsg(setLang("SEND_MSG4"),TOPUPform);
                        return;
                }

                boolean bStatus = checkPIN(pin);
                if (!bStatus) {
                        ShowMsg(setLang("SEND_MSG38") ,TOPUPform);
                        return;
                }


                //In Nigeria the consumer can enter a comma for amount
                //Example: 12,000 Naira.
                amount = stripComma(amount);

                boolean valid = verifyAmount(amount);
                if (!valid) {
                      //ShowMsg("Amount value should contain only numbers 0 to 9 and period.",TOPUPform);
                     ShowMsg(setLang("SEND_MSG37"),TOPUPform);
                     return;
                }

                valid = checkLegal(amount);
                if (!valid) {
                      //ShowMsg("Amount must be greater than 0 and only 2 decimals places.",TOPUPform);
                     ShowMsg(setLang("SEND_MSG17"),TOPUPform);
                     return;
                }


                //HumanCmd = "Top up your phone" +  " " + amount;
                HumanCmd = setLang("SEND_MSG21");
                HumanCmd = HumanCmd + " " + amount;
                if ( SENDOPdatastringItem !=null) {
                   SENDOPdatastringItem.setText(HumanCmd);
                 }

                Sms_message_out = "topup " + pin + " " +
                        amount + " ";
                //nullItems();

                switchDisplayable(null, getNotImplform());//GEN-LINE:|7-commandAction|66|101-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|67|266-preAction
        } else if (displayable == splashScreen) {
            if (command == SPLASHokCommand) {//GEN-END:|7-commandAction|67|266-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());//GEN-LINE:|7-commandAction|68|266-postAction
                // write post-action user code here
            } else if (command == SplashScreen.DISMISS_COMMAND) {//GEN-LINE:|7-commandAction|69|46-preAction
                // write pre-action user code here
                switchDisplayable(null, getAgentMainMenu());
//GEN-LINE:|7-commandAction|70|46-postAction
                // write post-action user code here
            }//GEN-BEGIN:|7-commandAction|71|7-postCommandAction
        }//GEN-END:|7-commandAction|71|7-postCommandAction
        // write post-action user code here
    }//GEN-BEGIN:|7-commandAction|72|
//</editor-fold>//GEN-END:|7-commandAction|72|














//<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand ">//GEN-BEGIN:|18-getter|0|18-preInit
    /**
     * Returns an initialized instance of exitCommand component.
     *
     * @return the initialized component instance
     */
    public Command getExitCommand() {
        if (exitCommand == null) {//GEN-END:|18-getter|0|18-preInit
            // write pre-init user code here
            exitCommand = new Command("Exit", Command.EXIT, 0);//GEN-LINE:|18-getter|1|18-postInit
            // write post-init user code here
        }//GEN-BEGIN:|18-getter|2|
        return exitCommand;
    }
//</editor-fold>//GEN-END:|18-getter|2|
    //</editor-fold>




    //</editor-fold>



    /*NOT USED */


        // enter post-action user code here


//<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCommand1 ">//GEN-BEGIN:|33-getter|0|33-preInit
    /**
     * Returns an initialized instance of exitCommand1 component.
     *
     * @return the initialized component instance
     */
    public Command getExitCommand1() {
        if (exitCommand1 == null) {//GEN-END:|33-getter|0|33-preInit
            // write pre-init user code here
            exitCommand1 = new Command(setLang("Exit"), Command.EXIT, 0);//GEN-LINE:|33-getter|1|33-postInit
            // write post-init user code here
        }//GEN-BEGIN:|33-getter|2|
        return exitCommand1;
    }
//</editor-fold>//GEN-END:|33-getter|2|
    //</editor-fold>
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SignOnForm ">//GEN-BEGIN:|36-getter|0|36-preInit
    /**
     * Returns an initialized instance of SignOnForm component.
     *
     * @return the initialized component instance
     */
    public Form getSignOnForm() {
        if (SignOnForm == null) {//GEN-END:|36-getter|0|36-preInit
            // write pre-init user code here
            SignOnForm = new Form(getAppProperty("EMIDA_APP_WELCOME") + getAppProperty("EMIDA_APP_VERSION"), new Item[]{getSpacer5(), getImageItem1(), getSOUsersCellPhonetextField(), getSpacer6()});//GEN-BEGIN:|36-getter|1|36-postInit
            SignOnForm.addCommand(getSOexitCommand());
            SignOnForm.addCommand(getSOokCommand());
            SignOnForm.setCommandListener(this);//GEN-END:|36-getter|1|36-postInit
            // write post-init user code here
        }//GEN-BEGIN:|36-getter|2|
        return SignOnForm;
    }
//</editor-fold>//GEN-END:|36-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SOexitCommand ">//GEN-BEGIN:|38-getter|0|38-preInit
    /**
     * Returns an initialized instance of SOexitCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSOexitCommand() {
        if (SOexitCommand == null) {//GEN-END:|38-getter|0|38-preInit
            // write pre-init user code here
            SOexitCommand = new Command(setLang("Exit"), setLang("Exit"), Command.EXIT, 0);//GEN-LINE:|38-getter|1|38-postInit
            // write post-init user code here
        }//GEN-BEGIN:|38-getter|2|
        return SOexitCommand;
    }
//</editor-fold>//GEN-END:|38-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SOokCommand ">//GEN-BEGIN:|41-getter|0|41-preInit
    /**
     * Returns an initialized instance of SOokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSOokCommand() {
        if (SOokCommand == null) {//GEN-END:|41-getter|0|41-preInit
            // write pre-init user code here
            SOokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|41-getter|1|41-postInit
            // write post-init user code here
        }//GEN-BEGIN:|41-getter|2|
        return SOokCommand;
    }
//</editor-fold>//GEN-END:|41-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SOUsersCellPhonetextField ">//GEN-BEGIN:|37-getter|0|37-preInit
    /**
     * Returns an initialized instance of SOUsersCellPhonetextField component.
     *
     * @return the initialized component instance
     */
    public TextField getSOUsersCellPhonetextField() {
        if (SOUsersCellPhonetextField == null) {//GEN-END:|37-getter|0|37-preInit
            // write pre-init user code here
            SOUsersCellPhonetextField = new TextField(setLang("SOUsersCellPhonetextField"), getAppProperty("EMIDA_APP_PHONE_PREFIX"), 32, TextField.NUMERIC);//GEN-LINE:|37-getter|1|37-postInit
            // write post-init user code here
        }//GEN-BEGIN:|37-getter|2|
        return SOUsersCellPhonetextField;
    }
//</editor-fold>//GEN-END:|37-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: splashScreen ">//GEN-BEGIN:|44-getter|0|44-preInit
    /**
     * Returns an initialized instance of splashScreen component.
     *
     * @return the initialized component instance
     */
    public SplashScreen getSplashScreen() {
        if (splashScreen == null) {//GEN-END:|44-getter|0|44-preInit
            // write pre-init user code here
            splashScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|44-getter|1|44-postInit
            splashScreen.setTitle(buildSplashTitle());
            splashScreen.setTicker(getTicker1());
            splashScreen.addCommand(getSPLASHokCommand());
            splashScreen.setCommandListener(this);
            splashScreen.setImage(getImage());
            splashScreen.setText("Copyright Emida, Inc");
            splashScreen.setTextFont(getFont1());
            splashScreen.setTimeout(10000);//GEN-END:|44-getter|1|44-postInit
            // write post-init user code here
        }//GEN-BEGIN:|44-getter|2|
        return splashScreen;
    }
//</editor-fold>//GEN-END:|44-getter|2|


    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDbackCommand ">//GEN-BEGIN:|51-getter|0|51-preInit
    /**
     * Returns an initialized instance of SENDbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSENDbackCommand() {
        if (SENDbackCommand == null) {//GEN-END:|51-getter|0|51-preInit
            // write pre-init user code here
            SENDbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|51-getter|1|51-postInit
            // write post-init user code here
        }//GEN-BEGIN:|51-getter|2|
        return SENDbackCommand;
    }
//</editor-fold>//GEN-END:|51-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDokCommand ">//GEN-BEGIN:|54-getter|0|54-preInit
    /**
     * Returns an initialized instance of SENDokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSENDokCommand() {
        if (SENDokCommand == null) {//GEN-END:|54-getter|0|54-preInit
            // write pre-init user code here
            SENDokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|54-getter|1|54-postInit
            // write post-init user code here
        }//GEN-BEGIN:|54-getter|2|
        return SENDokCommand;
    }
//</editor-fold>//GEN-END:|54-getter|2|
    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Sendopform ">//GEN-BEGIN:|59-getter|0|59-preInit
    /**
     * Returns an initialized instance of Sendopform component.
     *
     * @return the initialized component instance
     */
    public Form getSendopform() {
        if (Sendopform == null) {//GEN-END:|59-getter|0|59-preInit
            // write pre-init user code here
            Sendopform = new Form(setLang("Sendopform"), new Item[]{getSENDOPdatastringItem(), getSpacer4(), getSENDOPmissingCellPhonetextField()});//GEN-BEGIN:|59-getter|1|59-postInit
            Sendopform.addCommand(getSENDOPCommand());
            Sendopform.addCommand(getSENDOPbackCommand());
            Sendopform.setCommandListener(this);//GEN-END:|59-getter|1|59-postInit
            // write post-init user code here
        }//GEN-BEGIN:|59-getter|2|
        return Sendopform;
    }
//</editor-fold>//GEN-END:|59-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDOPdatastringItem ">//GEN-BEGIN:|60-getter|0|60-preInit
    /**
     * Returns an initialized instance of SENDOPdatastringItem component.
     *
     * @return the initialized component instance
     */
    public StringItem getSENDOPdatastringItem() {
        if (SENDOPdatastringItem == null) {//GEN-END:|60-getter|0|60-preInit
            // write pre-init user code here
            SENDOPdatastringItem = new StringItem(setLang("SENDOPdatastringItem"), "");//GEN-LINE:|60-getter|1|60-postInit
            // write post-init user code here
            SENDOPdatastringItem.setText(HumanCmd);
        }//GEN-BEGIN:|60-getter|2|
        return SENDOPdatastringItem;
    }
//</editor-fold>//GEN-END:|60-getter|2|
    //</editor-fold>
    //</editor-fold>



//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDOPCommand ">//GEN-BEGIN:|64-getter|0|64-preInit
    /**
     * Returns an initialized instance of SENDOPCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSENDOPCommand() {
        if (SENDOPCommand == null) {//GEN-END:|64-getter|0|64-preInit
            // write pre-init user code here
            SENDOPCommand = new Command(setLang("Send"), setLang("Send"), Command.OK, 0);//GEN-LINE:|64-getter|1|64-postInit
            // write post-init user code here
        }//GEN-BEGIN:|64-getter|2|
        return SENDOPCommand;
    }
//</editor-fold>//GEN-END:|64-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDOPbackCommand ">//GEN-BEGIN:|66-getter|0|66-preInit
    /**
     * Returns an initialized instance of SENDOPbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSENDOPbackCommand() {
        if (SENDOPbackCommand == null) {//GEN-END:|66-getter|0|66-preInit
            // write pre-init user code here
            SENDOPbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|66-getter|1|66-postInit
            // write post-init user code here
        }//GEN-BEGIN:|66-getter|2|
        return SENDOPbackCommand;
    }
//</editor-fold>//GEN-END:|66-getter|2|
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: WITHbackCommand ">//GEN-BEGIN:|70-getter|0|70-preInit
    /**
     * Returns an initialized instance of WITHbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getWITHbackCommand() {
        if (WITHbackCommand == null) {//GEN-END:|70-getter|0|70-preInit
            // write pre-init user code here
            WITHbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|70-getter|1|70-postInit
            // write post-init user code here
        }//GEN-BEGIN:|70-getter|2|
        return WITHbackCommand;
    }
//</editor-fold>//GEN-END:|70-getter|2|
    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: WITHokCommand ">//GEN-BEGIN:|75-getter|0|75-preInit
    /**
     * Returns an initialized instance of WITHokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getWITHokCommand() {
        if (WITHokCommand == null) {//GEN-END:|75-getter|0|75-preInit
            // write pre-init user code here
            WITHokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|75-getter|1|75-postInit
            // write post-init user code here
        }//GEN-BEGIN:|75-getter|2|
        return WITHokCommand;
    }
//</editor-fold>//GEN-END:|75-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: NotImplform ">//GEN-BEGIN:|79-getter|0|79-preInit
    /**
     * Returns an initialized instance of NotImplform component.
     *
     * @return the initialized component instance
     */
    public Form getNotImplform() {
        if (NotImplform == null) {//GEN-END:|79-getter|0|79-preInit
            // write pre-init user code here
            NotImplform = new Form("CAT", new Item[]{getImageItem()});//GEN-BEGIN:|79-getter|1|79-postInit
            NotImplform.addCommand(getBackCommand3());
            NotImplform.setCommandListener(this);//GEN-END:|79-getter|1|79-postInit
            // write post-init user code here
        }//GEN-BEGIN:|79-getter|2|
        return NotImplform;
    }
//</editor-fold>//GEN-END:|79-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand3 ">//GEN-BEGIN:|80-getter|0|80-preInit
    /**
     * Returns an initialized instance of backCommand3 component.
     *
     * @return the initialized component instance
     */
    public Command getBackCommand3() {
        if (backCommand3 == null) {//GEN-END:|80-getter|0|80-preInit
            // write pre-init user code here
            backCommand3 = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|80-getter|1|80-postInit
            // write post-init user code here
        }//GEN-BEGIN:|80-getter|2|
        return backCommand3;
    }
//</editor-fold>//GEN-END:|80-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: imageItem ">//GEN-BEGIN:|83-getter|0|83-preInit
    /**
     * Returns an initialized instance of imageItem component.
     *
     * @return the initialized component instance
     */
    public ImageItem getImageItem() {
        if (imageItem == null) {//GEN-END:|83-getter|0|83-preInit
            // write pre-init user code here
            imageItem = new ImageItem(setLang("SEND_MSG23"), null, ImageItem.LAYOUT_DEFAULT, "<Missing Image>");//GEN-LINE:|83-getter|1|83-postInit
            // write post-init user code here
        }//GEN-BEGIN:|83-getter|2|
        return imageItem;
    }
//</editor-fold>//GEN-END:|83-getter|2|
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: PAYbackCommand ">//GEN-BEGIN:|85-getter|0|85-preInit
    /**
     * Returns an initialized instance of PAYbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getPAYbackCommand() {
        if (PAYbackCommand == null) {//GEN-END:|85-getter|0|85-preInit
            // write pre-init user code here
            PAYbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|85-getter|1|85-postInit
            // write post-init user code here
        }//GEN-BEGIN:|85-getter|2|
        return PAYbackCommand;
    }
//</editor-fold>//GEN-END:|85-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: PAYokCommand ">//GEN-BEGIN:|88-getter|0|88-preInit
    /**
     * Returns an initialized instance of PAYokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getPAYokCommand() {
        if (PAYokCommand == null) {//GEN-END:|88-getter|0|88-preInit
            // write pre-init user code here
            PAYokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|88-getter|1|88-postInit
            // write post-init user code here
        }//GEN-BEGIN:|88-getter|2|
        return PAYokCommand;
    }
//</editor-fold>//GEN-END:|88-getter|2|
    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPUPform ">//GEN-BEGIN:|96-getter|0|96-preInit
    /**
     * Returns an initialized instance of TOPUPform component.
     *
     * @return the initialized component instance
     */
    public Form getTOPUPform() {
        if (TOPUPform == null) {//GEN-END:|96-getter|0|96-preInit
            // write pre-init user code here
            TOPUPform = new Form(setLang("TOPUPform"), new Item[]{getTOPamounttextField3(), getTOPPINtextField1()});//GEN-BEGIN:|96-getter|1|96-postInit
            TOPUPform.addCommand(getTOPbackCommand());
            TOPUPform.addCommand(getTOPokCommand());
            TOPUPform.setCommandListener(this);//GEN-END:|96-getter|1|96-postInit
            // write post-init user code here
        }//GEN-BEGIN:|96-getter|2|
        return TOPUPform;
    }
//</editor-fold>//GEN-END:|96-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPbackCommand ">//GEN-BEGIN:|97-getter|0|97-preInit
    /**
     * Returns an initialized instance of TOPbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getTOPbackCommand() {
        if (TOPbackCommand == null) {//GEN-END:|97-getter|0|97-preInit
            // write pre-init user code here
            TOPbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|97-getter|1|97-postInit
            // write post-init user code here
        }//GEN-BEGIN:|97-getter|2|
        return TOPbackCommand;
    }
//</editor-fold>//GEN-END:|97-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPokCommand ">//GEN-BEGIN:|100-getter|0|100-preInit
    /**
     * Returns an initialized instance of TOPokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getTOPokCommand() {
        if (TOPokCommand == null) {//GEN-END:|100-getter|0|100-preInit
            // write pre-init user code here
            TOPokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|100-getter|1|100-postInit
            // write post-init user code here
        }//GEN-BEGIN:|100-getter|2|
        return TOPokCommand;
    }
//</editor-fold>//GEN-END:|100-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPamounttextField3 ">//GEN-BEGIN:|103-getter|0|103-preInit
    /**
     * Returns an initialized instance of TOPamounttextField3 component.
     *
     * @return the initialized component instance
     */
    public TextField getTOPamounttextField3() {
        if (TOPamounttextField3 == null) {//GEN-END:|103-getter|0|103-preInit
            // write pre-init user code here
            TOPamounttextField3 = new TextField(setLang("TOPamounttextField3"), "", 32, TextField.DECIMAL);//GEN-LINE:|103-getter|1|103-postInit
            // write post-init user code here
        }//GEN-BEGIN:|103-getter|2|
        return TOPamounttextField3;
    }
//</editor-fold>//GEN-END:|103-getter|2|
    //</editor-fold>
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPPINtextField1 ">//GEN-BEGIN:|104-getter|0|104-preInit
    /**
     * Returns an initialized instance of TOPPINtextField1 component.
     *
     * @return the initialized component instance
     */
    public TextField getTOPPINtextField1() {
        if (TOPPINtextField1 == null) {//GEN-END:|104-getter|0|104-preInit
            // write pre-init user code here
            if (TOPPINtextField1 !=null)
                TOPPINtextField1.setString("");
            TOPPINtextField1 = new TextField(setLang("TOPPINtextField1"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|104-getter|1|104-postInit
            // write post-init user code here
        }//GEN-BEGIN:|104-getter|2|
        return TOPPINtextField1;
    }
//</editor-fold>//GEN-END:|104-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Balanceform ">//GEN-BEGIN:|106-getter|0|106-preInit
    /**
     * Returns an initialized instance of Balanceform component.
     *
     * @return the initialized component instance
     */
    public Form getBalanceform() {
        if (Balanceform == null) {//GEN-END:|106-getter|0|106-preInit
            // write pre-init user code here
            Balanceform = new Form(setLang("Balanceform"), new Item[]{getBALpintextField3()});//GEN-BEGIN:|106-getter|1|106-postInit
            Balanceform.addCommand(getBALbackCommand());
            Balanceform.addCommand(getBALokCommand());
            Balanceform.setCommandListener(this);//GEN-END:|106-getter|1|106-postInit
            // write post-init user code here
        }//GEN-BEGIN:|106-getter|2|
        return Balanceform;
    }
//</editor-fold>//GEN-END:|106-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BALbackCommand ">//GEN-BEGIN:|107-getter|0|107-preInit
    /**
     * Returns an initialized instance of BALbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getBALbackCommand() {
        if (BALbackCommand == null) {//GEN-END:|107-getter|0|107-preInit
            // write pre-init user code here
            BALbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|107-getter|1|107-postInit
            // write post-init user code here
        }//GEN-BEGIN:|107-getter|2|
        return BALbackCommand;
    }
//</editor-fold>//GEN-END:|107-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BALokCommand ">//GEN-BEGIN:|110-getter|0|110-preInit
    /**
     * Returns an initialized instance of BALokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getBALokCommand() {
        if (BALokCommand == null) {//GEN-END:|110-getter|0|110-preInit
            // write pre-init user code here
            BALokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|110-getter|1|110-postInit
            // write post-init user code here
        }//GEN-BEGIN:|110-getter|2|
        return BALokCommand;
    }
//</editor-fold>//GEN-END:|110-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BALpintextField3 ">//GEN-BEGIN:|113-getter|0|113-preInit
    /**
     * Returns an initialized instance of BALpintextField3 component.
     *
     * @return the initialized component instance
     */
    public TextField getBALpintextField3() {
        if (BALpintextField3 == null) {//GEN-END:|113-getter|0|113-preInit
            // write pre-init user code here
            BALpintextField3 = new TextField(setLang("BALpintextField3"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|113-getter|1|113-postInit
            // write post-init user code here
        }//GEN-BEGIN:|113-getter|2|
        return BALpintextField3;
    }
//</editor-fold>//GEN-END:|113-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: PINform ">//GEN-BEGIN:|115-getter|0|115-preInit
    /**
     * Returns an initialized instance of PINform component.
     *
     * @return the initialized component instance
     */
    public Form getPINform() {
        if (PINform == null) {//GEN-END:|115-getter|0|115-preInit
            // write pre-init user code here
            PINform = new Form(setLang("PINform"), new Item[]{getCPoldPINtextField(), getCPnewPINtextField(), getCPconfirmNEWPINtextField()});//GEN-BEGIN:|115-getter|1|115-postInit
            PINform.addCommand(getCPbackCommand());
            PINform.addCommand(getCPokCommand());
            PINform.setCommandListener(this);//GEN-END:|115-getter|1|115-postInit
            // write post-init user code here
        }//GEN-BEGIN:|115-getter|2|
        return PINform;
    }
//</editor-fold>//GEN-END:|115-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CPbackCommand ">//GEN-BEGIN:|116-getter|0|116-preInit
    /**
     * Returns an initialized instance of CPbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getCPbackCommand() {
        if (CPbackCommand == null) {//GEN-END:|116-getter|0|116-preInit
            // write pre-init user code here
            CPbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|116-getter|1|116-postInit
            // write post-init user code here
        }//GEN-BEGIN:|116-getter|2|
        return CPbackCommand;
    }
//</editor-fold>//GEN-END:|116-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CPokCommand ">//GEN-BEGIN:|119-getter|0|119-preInit
    /**
     * Returns an initialized instance of CPokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getCPokCommand() {
        if (CPokCommand == null) {//GEN-END:|119-getter|0|119-preInit
            // write pre-init user code here
            CPokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|119-getter|1|119-postInit
            // write post-init user code here
        }//GEN-BEGIN:|119-getter|2|
        return CPokCommand;
    }
//</editor-fold>//GEN-END:|119-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CPoldPINtextField ">//GEN-BEGIN:|122-getter|0|122-preInit
    /**
     * Returns an initialized instance of CPoldPINtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getCPoldPINtextField() {
        if (CPoldPINtextField == null) {//GEN-END:|122-getter|0|122-preInit
            // write pre-init user code here
            CPoldPINtextField = new TextField(setLang("CPoldPINtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|122-getter|1|122-postInit
            // write post-init user code here
        }//GEN-BEGIN:|122-getter|2|
        return CPoldPINtextField;
    }
//</editor-fold>//GEN-END:|122-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CPnewPINtextField ">//GEN-BEGIN:|123-getter|0|123-preInit
    /**
     * Returns an initialized instance of CPnewPINtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getCPnewPINtextField() {
        if (CPnewPINtextField == null) {//GEN-END:|123-getter|0|123-preInit
            // write pre-init user code here
            CPnewPINtextField = new TextField(setLang("CPnewPINtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|123-getter|1|123-postInit
            // write post-init user code here
        }//GEN-BEGIN:|123-getter|2|
        return CPnewPINtextField;
    }
//</editor-fold>//GEN-END:|123-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CPconfirmNEWPINtextField ">//GEN-BEGIN:|124-getter|0|124-preInit
    /**
     * Returns an initialized instance of CPconfirmNEWPINtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getCPconfirmNEWPINtextField() {
        if (CPconfirmNEWPINtextField == null) {//GEN-END:|124-getter|0|124-preInit
            // write pre-init user code here
            CPconfirmNEWPINtextField = new TextField(setLang("CPconfirmNEWPINtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|124-getter|1|124-postInit
            // write post-init user code here
        }//GEN-BEGIN:|124-getter|2|
        return CPconfirmNEWPINtextField;
    }
//</editor-fold>//GEN-END:|124-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Languageform ">//GEN-BEGIN:|126-getter|0|126-preInit
    /**
     * Returns an initialized instance of Languageform component.
     *
     * @return the initialized component instance
     */
    public Form getLanguageform() {
        if (Languageform == null) {//GEN-END:|126-getter|0|126-preInit
            // write pre-init user code here
            Languageform = new Form(setLang("Languageform"), new Item[]{getChoiceLANGGroup1(), getSpacer()});//GEN-BEGIN:|126-getter|1|126-postInit
            Languageform.addCommand(getLANGbackCommand());
            Languageform.addCommand(getLANGokCommand());
            Languageform.setCommandListener(this);//GEN-END:|126-getter|1|126-postInit
            // write post-init user code here
        }//GEN-BEGIN:|126-getter|2|
        return Languageform;
    }
//</editor-fold>//GEN-END:|126-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: choiceLANGGroup1 ">//GEN-BEGIN:|127-getter|0|127-preInit
    /**
     * Returns an initialized instance of choiceLANGGroup1 component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getChoiceLANGGroup1() {
        if (choiceLANGGroup1 == null) {//GEN-END:|127-getter|0|127-preInit
            // write pre-init user code here
            choiceLANGGroup1 = new ChoiceGroup(setLang("Select a language"), Choice.EXCLUSIVE);//GEN-BEGIN:|127-getter|1|127-postInit
            choiceLANGGroup1.append("English", null);
            choiceLANGGroup1.append("Igbo (Coming soon)", null);
            choiceLANGGroup1.append("Hausa (Coming soon)", null);
            choiceLANGGroup1.append("Yoruba (Coming soon)", null);
            choiceLANGGroup1.setSelectedFlags(new boolean[]{true, false, false, false});//GEN-END:|127-getter|1|127-postInit
            // write post-init user code here

            if (LangAbbrev.equals("I")) {
                choiceLANGGroup1.setSelectedFlags(new boolean[] { false, true, false, false });
            } else if (LangAbbrev.equals("H")) {
                choiceLANGGroup1.setSelectedFlags(new boolean[] { false, false, true, false });
            } else if (LangAbbrev.equals("Y")) {
                choiceLANGGroup1.setSelectedFlags(new boolean[] { false, false, false, true });
            }
        }//GEN-BEGIN:|127-getter|2|
        return choiceLANGGroup1;
    }
//</editor-fold>//GEN-END:|127-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: LANGbackCommand ">//GEN-BEGIN:|128-getter|0|128-preInit
    /**
     * Returns an initialized instance of LANGbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getLANGbackCommand() {
        if (LANGbackCommand == null) {//GEN-END:|128-getter|0|128-preInit
            // write pre-init user code here
            LANGbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|128-getter|1|128-postInit
            // write post-init user code here
        }//GEN-BEGIN:|128-getter|2|
        return LANGbackCommand;
    }
//</editor-fold>//GEN-END:|128-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer ">//GEN-BEGIN:|136-getter|0|136-preInit
    /**
     * Returns an initialized instance of spacer component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer() {
        if (spacer == null) {//GEN-END:|136-getter|0|136-preInit
            // write pre-init user code here
            spacer = new Spacer(16, 1);//GEN-LINE:|136-getter|1|136-postInit
            // write post-init user code here
        }//GEN-BEGIN:|136-getter|2|
        return spacer;
    }
//</editor-fold>//GEN-END:|136-getter|2|
    //</editor-fold>
    //</editor-fold>



//<editor-fold defaultstate="collapsed" desc=" Generated Getter: LANGokCommand ">//GEN-BEGIN:|138-getter|0|138-preInit
    /**
     * Returns an initialized instance of LANGokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getLANGokCommand() {
        if (LANGokCommand == null) {//GEN-END:|138-getter|0|138-preInit
            // write pre-init user code here
            LANGokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|138-getter|1|138-postInit
            // write post-init user code here
        }//GEN-BEGIN:|138-getter|2|
        return LANGokCommand;
    }
//</editor-fold>//GEN-END:|138-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Commform ">//GEN-BEGIN:|142-getter|0|142-preInit
    /**
     * Returns an initialized instance of Commform component.
     *
     * @return the initialized component instance
     */
    public Form getCommform() {
        if (Commform == null) {//GEN-END:|142-getter|0|142-preInit
            // write pre-init user code here
            Commform = new Form(getAppProperty("EMIDA_APP_WELCOME") + getAppProperty("EMIDA_APP_VERSION"), new Item[]{getCommMsgstringItem()});//GEN-BEGIN:|142-getter|1|142-postInit
            Commform.addCommand(getCommOkCommand());
            Commform.setCommandListener(this);//GEN-END:|142-getter|1|142-postInit
            // write post-init user code here
        }//GEN-BEGIN:|142-getter|2|
        return Commform;
    }
//</editor-fold>//GEN-END:|142-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CommOkCommand ">//GEN-BEGIN:|143-getter|0|143-preInit
    /**
     * Returns an initialized instance of CommOkCommand component.
     *
     * @return the initialized component instance
     */
    public Command getCommOkCommand() {
        if (CommOkCommand == null) {//GEN-END:|143-getter|0|143-preInit
            // write pre-init user code here
            CommOkCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|143-getter|1|143-postInit
            // write post-init user code here
        }//GEN-BEGIN:|143-getter|2|
        return CommOkCommand;
    }
//</editor-fold>//GEN-END:|143-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CommMsgstringItem ">//GEN-BEGIN:|146-getter|0|146-preInit
    /**
     * Returns an initialized instance of CommMsgstringItem component.
     *
     * @return the initialized component instance
     */
    public StringItem getCommMsgstringItem() {
        if (CommMsgstringItem == null) {//GEN-END:|146-getter|0|146-preInit
            // write pre-init user code here
            CommMsgstringItem = new StringItem(setLang("SEND_MSG24"), "");//GEN-LINE:|146-getter|1|146-postInit
            // write post-init user code here
        }//GEN-BEGIN:|146-getter|2|
        return CommMsgstringItem;
    }
//</editor-fold>//GEN-END:|146-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cancelCommand ">//GEN-BEGIN:|147-getter|0|147-preInit
    /**
     * Returns an initialized instance of cancelCommand component.
     *
     * @return the initialized component instance
     */
    public Command getCancelCommand() {
        if (cancelCommand == null) {//GEN-END:|147-getter|0|147-preInit
            // write pre-init user code here
            cancelCommand = new Command("Cancel", Command.CANCEL, 0);//GEN-LINE:|147-getter|1|147-postInit
            // write post-init user code here
        }//GEN-BEGIN:|147-getter|2|
        return cancelCommand;
    }
//</editor-fold>//GEN-END:|147-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okSendTxtMsg ">//GEN-BEGIN:|150-getter|0|150-preInit
    /**
     * Returns an initialized instance of okSendTxtMsg component.
     *
     * @return the initialized component instance
     */
    public Command getOkSendTxtMsg() {
        if (okSendTxtMsg == null) {//GEN-END:|150-getter|0|150-preInit
            // write pre-init user code here
            okSendTxtMsg = new Command("Send", Command.OK, 0);//GEN-LINE:|150-getter|1|150-postInit
            // write post-init user code here
        }//GEN-BEGIN:|150-getter|2|
        return okSendTxtMsg;
    }
//</editor-fold>//GEN-END:|150-getter|2|
    //</editor-fold>


    //</editor-fold>


    //</editor-fold>
    //</editor-fold>




    //</editor-fold>


    //</editor-fold>



//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand10 ">//GEN-BEGIN:|158-getter|0|158-preInit
    /**
     * Returns an initialized instance of okCommand10 component.
     *
     * @return the initialized component instance
     */
    public Command getOkCommand10() {
        if (okCommand10 == null) {//GEN-END:|158-getter|0|158-preInit
            // write pre-init user code here
            okCommand10 = new Command("Ok", Command.OK, 0);//GEN-LINE:|158-getter|1|158-postInit
            // write post-init user code here
        }//GEN-BEGIN:|158-getter|2|
        return okCommand10;
    }
//</editor-fold>//GEN-END:|158-getter|2|
    //</editor-fold>
    //</editor-fold>


    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgentMainMenu ">//GEN-BEGIN:|164-getter|0|164-preInit
    /**
     * Returns an initialized instance of AgentMainMenu component.
     *
     * @return the initialized component instance
     */
    public List getAgentMainMenu() {
        if (AgentMainMenu == null) {//GEN-END:|164-getter|0|164-preInit
            // write pre-init user code here
            AgentMainMenu = new List(buildTitle(), Choice.IMPLICIT);//GEN-BEGIN:|164-getter|1|164-postInit
            AgentMainMenu.append(setLang("AgtMenu2"), getImage2());
            AgentMainMenu.append(setLang("AgtMenu3"), getImage2());
            AgentMainMenu.append(setLang("AgtMenu4"), getImage2());
            AgentMainMenu.append(setLang("AgtMenu6"), getImage2());
            AgentMainMenu.append(setLang("MENULANGUAGE"), getImage2());
            AgentMainMenu.addCommand(getAgentExitCommand());
            AgentMainMenu.setCommandListener(this);
            AgentMainMenu.setSelectedFlags(new boolean[]{false, false, false, false, false});//GEN-END:|164-getter|1|164-postInit
            // write post-init user code here
        }//GEN-BEGIN:|164-getter|2|
        return AgentMainMenu;
    }
//</editor-fold>//GEN-END:|164-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Method: AgentMainMenuAction ">//GEN-BEGIN:|164-action|0|164-preAction
    /**
     * Performs an action assigned to the selected list element in the
     * AgentMainMenu component.
     */
    public void AgentMainMenuAction() {//GEN-END:|164-action|0|164-preAction
        // enter pre-action user code here
        int __pos = getAgentMainMenu().getSelectedIndex();
        previousAgentForm = __pos;
        String __selectedString = getAgentMainMenu().getString(getAgentMainMenu().getSelectedIndex());//GEN-BEGIN:|164-action|1|168-preAction
        if (__selectedString != null) {
            if (__selectedString.equals(setLang("AgtMenu2"))) {//GEN-END:|164-action|1|168-preAction
                // write pre-action user code here
                if (AgtLoadAgentIDtextField !=null) {
                    AgtLoadAgentIDtextField.setString("");
                    AgtLoadTokentextField.setString("");
                    AgtLoadAmounttextField.setString("");
                }
                switchDisplayable(null, getAgtLoadform());//GEN-LINE:|164-action|2|168-postAction
                // write post-action user code here
            } else if (__selectedString.equals(setLang("AgtMenu3"))) {//GEN-LINE:|164-action|3|169-preAction
                // write pre-action user code here
                if (AgtCashAgentIDtextField !=null) {
                    AgtCashAgentIDtextField.setString("");
                    AgtCashAmttextField.setString("");
                    AgtCashTokentextField.setString("");
                    //AgtCashAmounttextField.setString("");
                }

                switchDisplayable(null, getAgtCashOutform());//GEN-LINE:|164-action|4|169-postAction
                // write post-action user code here
            } else if (__selectedString.equals(setLang("AgtMenu4"))) {//GEN-LINE:|164-action|5|275-preAction
                // write pre-action user code here
                if (BALpintextField3 !=null)
                    BALpintextField3.setString("");
                UseAgentBAL = 1;
                switchDisplayable(null, getBalanceform());//GEN-LINE:|164-action|6|275-postAction
                // write post-action user code here
            } else if (__selectedString.equals(setLang("AgtMenu6"))) {//GEN-LINE:|164-action|7|276-preAction
                if (CPoldPINtextField !=null) {
                    CPoldPINtextField.setString("");
                    CPnewPINtextField.setString("");
                    CPconfirmNEWPINtextField.setString("");
                }
                UseAgentPIN = 1;
                // write pre-action user code here
                switchDisplayable(null, getPINform());//GEN-LINE:|164-action|8|276-postAction
                // write post-action user code here
            } else if (__selectedString.equals(setLang("MENULANGUAGE"))) {//GEN-LINE:|164-action|9|347-preAction
                // write pre-action user code here
                switchDisplayable(null, getLanguageform());//GEN-LINE:|164-action|10|347-postAction
                // write post-action user code here
            }//GEN-BEGIN:|164-action|11|164-postAction
        }//GEN-END:|164-action|11|164-postAction
        // enter post-action user code here
    }//GEN-BEGIN:|164-action|12|347-postAction
//</editor-fold>//GEN-END:|164-action|12|347-postAction


    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgentExitCommand ">//GEN-BEGIN:|170-getter|0|170-preInit
    /**
     * Returns an initialized instance of AgentExitCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgentExitCommand() {
        if (AgentExitCommand == null) {//GEN-END:|170-getter|0|170-preInit
            // write pre-init user code here
            AgentExitCommand = new Command(setLang("Exit"), setLang("Exit"), Command.EXIT, 0);//GEN-LINE:|170-getter|1|170-postInit
            // write post-init user code here
        }//GEN-BEGIN:|170-getter|2|
        return AgentExitCommand;
    }
//</editor-fold>//GEN-END:|170-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegUnBankform ">//GEN-BEGIN:|175-getter|0|175-preInit
    /**
     * Returns an initialized instance of AgtRegUnBankform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtRegUnBankform() {
        if (AgtRegUnBankform == null) {//GEN-END:|175-getter|0|175-preInit
            // write pre-init user code here
            AgtRegUnBankform = new Form("Enter basic data", new Item[]{getAgtRegLnametextField(), getAgtRegFnametextField(), getAgtRegCelltextField(), getAgtRegSecurityQtextField(), getAgtRegSecurityAtextField()});//GEN-BEGIN:|175-getter|1|175-postInit
            AgtRegUnBankform.addCommand(getAgtRegUnBankedbackCommand());
            AgtRegUnBankform.addCommand(getAgtRegUnBankedOKCommand());
            AgtRegUnBankform.setCommandListener(this);//GEN-END:|175-getter|1|175-postInit
            // write post-init user code here
        }//GEN-BEGIN:|175-getter|2|
        return AgtRegUnBankform;
    }
//</editor-fold>//GEN-END:|175-getter|2|
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegLnametextField ">//GEN-BEGIN:|177-getter|0|177-preInit
    /**
     * Returns an initialized instance of AgtRegLnametextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegLnametextField() {
        if (AgtRegLnametextField == null) {//GEN-END:|177-getter|0|177-preInit
            // write pre-init user code here
            AgtRegLnametextField = new TextField(setLang("AgtRegLnametextField"), "", 32, TextField.ANY);//GEN-LINE:|177-getter|1|177-postInit
            // write post-init user code here
        }//GEN-BEGIN:|177-getter|2|
        return AgtRegLnametextField;
    }
//</editor-fold>//GEN-END:|177-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegFnametextField ">//GEN-BEGIN:|178-getter|0|178-preInit
    /**
     * Returns an initialized instance of AgtRegFnametextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegFnametextField() {
        if (AgtRegFnametextField == null) {//GEN-END:|178-getter|0|178-preInit
            // write pre-init user code here
            AgtRegFnametextField = new TextField(setLang("AgtRegFnametextField"), "", 32, TextField.ANY);//GEN-LINE:|178-getter|1|178-postInit
            // write post-init user code here
        }//GEN-BEGIN:|178-getter|2|
        return AgtRegFnametextField;
    }
//</editor-fold>//GEN-END:|178-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegCelltextField ">//GEN-BEGIN:|179-getter|0|179-preInit
    /**
     * Returns an initialized instance of AgtRegCelltextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegCelltextField() {
        if (AgtRegCelltextField == null) {//GEN-END:|179-getter|0|179-preInit
            // write pre-init user code here
            AgtRegCelltextField = new TextField(setLang("AgtRegCelltextField"), getAppProperty("EMIDA_APP_PHONE_PREFIX"), 32, TextField.PHONENUMBER);//GEN-LINE:|179-getter|1|179-postInit
            // write post-init user code here
        }//GEN-BEGIN:|179-getter|2|
        return AgtRegCelltextField;
    }
//</editor-fold>//GEN-END:|179-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegUnBankedbackCommand ">//GEN-BEGIN:|180-getter|0|180-preInit
    /**
     * Returns an initialized instance of AgtRegUnBankedbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegUnBankedbackCommand() {
        if (AgtRegUnBankedbackCommand == null) {//GEN-END:|180-getter|0|180-preInit
            // write pre-init user code here
            AgtRegUnBankedbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|180-getter|1|180-postInit
            // write post-init user code here
        }//GEN-BEGIN:|180-getter|2|
        return AgtRegUnBankedbackCommand;
    }
//</editor-fold>//GEN-END:|180-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegUnBankedOKCommand ">//GEN-BEGIN:|183-getter|0|183-preInit
    /**
     * Returns an initialized instance of AgtRegUnBankedOKCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegUnBankedOKCommand() {
        if (AgtRegUnBankedOKCommand == null) {//GEN-END:|183-getter|0|183-preInit
            // write pre-init user code here
            AgtRegUnBankedOKCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|183-getter|1|183-postInit
            // write post-init user code here
        }//GEN-BEGIN:|183-getter|2|
        return AgtRegUnBankedOKCommand;
    }
//</editor-fold>//GEN-END:|183-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopform ">//GEN-BEGIN:|187-getter|0|187-preInit
    /**
     * Returns an initialized instance of AgtTopform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtTopform() {
        if (AgtTopform == null) {//GEN-END:|187-getter|0|187-preInit
            // write pre-init user code here
            AgtTopform = new Form(setLang("AgtTopform"), new Item[]{getAgtTopAgentIDtextField(), getAgtTopCElltextField(), getAgtTopAmounttextField()});//GEN-BEGIN:|187-getter|1|187-postInit
            AgtTopform.addCommand(getAgtTopbackCommand());
            AgtTopform.addCommand(getAgtTopokCommand());
            AgtTopform.setCommandListener(this);//GEN-END:|187-getter|1|187-postInit
            // write post-init user code here
        }//GEN-BEGIN:|187-getter|2|
        return AgtTopform;
    }
//</editor-fold>//GEN-END:|187-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopbackCommand ">//GEN-BEGIN:|188-getter|0|188-preInit
    /**
     * Returns an initialized instance of AgtTopbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtTopbackCommand() {
        if (AgtTopbackCommand == null) {//GEN-END:|188-getter|0|188-preInit
            // write pre-init user code here
            AgtTopbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|188-getter|1|188-postInit
            // write post-init user code here
        }//GEN-BEGIN:|188-getter|2|
        return AgtTopbackCommand;
    }
//</editor-fold>//GEN-END:|188-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopokCommand ">//GEN-BEGIN:|191-getter|0|191-preInit
    /**
     * Returns an initialized instance of AgtTopokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtTopokCommand() {
        if (AgtTopokCommand == null) {//GEN-END:|191-getter|0|191-preInit
            // write pre-init user code here
            AgtTopokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|191-getter|1|191-postInit
            // write post-init user code here
        }//GEN-BEGIN:|191-getter|2|
        return AgtTopokCommand;
    }
//</editor-fold>//GEN-END:|191-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopAgentIDtextField ">//GEN-BEGIN:|194-getter|0|194-preInit
    /**
     * Returns an initialized instance of AgtTopAgentIDtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtTopAgentIDtextField() {
        if (AgtTopAgentIDtextField == null) {//GEN-END:|194-getter|0|194-preInit
            // write pre-init user code here
            AgtTopAgentIDtextField = new TextField(setLang("AgtTopAgentIDtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|194-getter|1|194-postInit
            // write post-init user code here
        }//GEN-BEGIN:|194-getter|2|
        return AgtTopAgentIDtextField;
    }
//</editor-fold>//GEN-END:|194-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopCElltextField ">//GEN-BEGIN:|195-getter|0|195-preInit
    /**
     * Returns an initialized instance of AgtTopCElltextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtTopCElltextField() {
        if (AgtTopCElltextField == null) {//GEN-END:|195-getter|0|195-preInit
            // write pre-init user code here
            AgtTopCElltextField = new TextField(setLang("AgtTopCElltextField"), getAppProperty("EMIDA_APP_PHONE_PREFIX"), 32, TextField.PHONENUMBER);//GEN-LINE:|195-getter|1|195-postInit
            // write post-init user code here
        }//GEN-BEGIN:|195-getter|2|
        return AgtTopCElltextField;
    }
//</editor-fold>//GEN-END:|195-getter|2|
    //</editor-fold>
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtTopAmounttextField ">//GEN-BEGIN:|196-getter|0|196-preInit
    /**
     * Returns an initialized instance of AgtTopAmounttextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtTopAmounttextField() {
        if (AgtTopAmounttextField == null) {//GEN-END:|196-getter|0|196-preInit
            // write pre-init user code here
            AgtTopAmounttextField = new TextField(setLang("AgtTopAmounttextField"), "", 32, TextField.DECIMAL);//GEN-LINE:|196-getter|1|196-postInit
            // write post-init user code here
        }//GEN-BEGIN:|196-getter|2|
        return AgtTopAmounttextField;
    }
//</editor-fold>//GEN-END:|196-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadform ">//GEN-BEGIN:|198-getter|0|198-preInit
    /**
     * Returns an initialized instance of AgtLoadform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtLoadform() {
        if (AgtLoadform == null) {//GEN-END:|198-getter|0|198-preInit
            // write pre-init user code here
            AgtLoadform = new Form(setLang("AgtLoadform"), new Item[]{getAgtLoadAgentIDtextField(), getAgtLoadTokentextField(), getAgtLoadAmounttextField(), getSpacer2(), getAgtLoadAlert()});//GEN-BEGIN:|198-getter|1|198-postInit
            AgtLoadform.addCommand(getAgtLoadbackCommand());
            AgtLoadform.addCommand(getAgtLoadokCommand());
            AgtLoadform.setCommandListener(this);//GEN-END:|198-getter|1|198-postInit
            // write post-init user code here
        }//GEN-BEGIN:|198-getter|2|
        return AgtLoadform;
    }
//</editor-fold>//GEN-END:|198-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadbackCommand ">//GEN-BEGIN:|199-getter|0|199-preInit
    /**
     * Returns an initialized instance of AgtLoadbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtLoadbackCommand() {
        if (AgtLoadbackCommand == null) {//GEN-END:|199-getter|0|199-preInit
            // write pre-init user code here
            AgtLoadbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|199-getter|1|199-postInit
            // write post-init user code here
        }//GEN-BEGIN:|199-getter|2|
        return AgtLoadbackCommand;
    }
//</editor-fold>//GEN-END:|199-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadokCommand ">//GEN-BEGIN:|202-getter|0|202-preInit
    /**
     * Returns an initialized instance of AgtLoadokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtLoadokCommand() {
        if (AgtLoadokCommand == null) {//GEN-END:|202-getter|0|202-preInit
            // write pre-init user code here
            AgtLoadokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|202-getter|1|202-postInit
            // write post-init user code here
        }//GEN-BEGIN:|202-getter|2|
        return AgtLoadokCommand;
    }
//</editor-fold>//GEN-END:|202-getter|2|
    //</editor-fold>
    //</editor-fold>


    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadTokentextField ">//GEN-BEGIN:|206-getter|0|206-preInit
    /**
     * Returns an initialized instance of AgtLoadTokentextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtLoadTokentextField() {
        if (AgtLoadTokentextField == null) {//GEN-END:|206-getter|0|206-preInit
            // write pre-init user code here
            AgtLoadTokentextField = new TextField(setLang("AgtLoadTokentextField"), getAppProperty("EMIDA_APP_PHONE_PREFIX"), 32, TextField.NUMERIC);//GEN-LINE:|206-getter|1|206-postInit
            // write post-init user code here
        }//GEN-BEGIN:|206-getter|2|
        return AgtLoadTokentextField;
    }
//</editor-fold>//GEN-END:|206-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadAmounttextField ">//GEN-BEGIN:|207-getter|0|207-preInit
    /**
     * Returns an initialized instance of AgtLoadAmounttextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtLoadAmounttextField() {
        if (AgtLoadAmounttextField == null) {//GEN-END:|207-getter|0|207-preInit
            // write pre-init user code here
            AgtLoadAmounttextField = new TextField(setLang("AgtLoadAmounttextField"), "", 32, TextField.DECIMAL);//GEN-LINE:|207-getter|1|207-postInit
            // write post-init user code here
        }//GEN-BEGIN:|207-getter|2|
        return AgtLoadAmounttextField;
    }
//</editor-fold>//GEN-END:|207-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadAgentIDtextField ">//GEN-BEGIN:|208-getter|0|208-preInit
    /**
     * Returns an initialized instance of AgtLoadAgentIDtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtLoadAgentIDtextField() {
        if (AgtLoadAgentIDtextField == null) {//GEN-END:|208-getter|0|208-preInit
            // write pre-init user code here
            AgtLoadAgentIDtextField = new TextField(setLang("AgtLoadAgentIDtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|208-getter|1|208-postInit
            // write post-init user code here
        }//GEN-BEGIN:|208-getter|2|
        return AgtLoadAgentIDtextField;
    }
//</editor-fold>//GEN-END:|208-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashOutform ">//GEN-BEGIN:|210-getter|0|210-preInit
    /**
     * Returns an initialized instance of AgtCashOutform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtCashOutform() {
        if (AgtCashOutform == null) {//GEN-END:|210-getter|0|210-preInit
            // write pre-init user code here
            AgtCashOutform = new Form(setLang("AgtCashform"), new Item[]{getAgtCashAgentIDtextField(), getAgtCashTokentextField(), getAgtCashAmttextField(), getSpacer3(), getAgtCashalert()});//GEN-BEGIN:|210-getter|1|210-postInit
            AgtCashOutform.addCommand(getAgtCashOutbackCommand());
            AgtCashOutform.addCommand(getAgtCashOutokCommand());
            AgtCashOutform.setCommandListener(this);//GEN-END:|210-getter|1|210-postInit
            // write post-init user code here
        }//GEN-BEGIN:|210-getter|2|
        return AgtCashOutform;
    }
//</editor-fold>//GEN-END:|210-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashOutbackCommand ">//GEN-BEGIN:|211-getter|0|211-preInit
    /**
     * Returns an initialized instance of AgtCashOutbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtCashOutbackCommand() {
        if (AgtCashOutbackCommand == null) {//GEN-END:|211-getter|0|211-preInit
            // write pre-init user code here
            AgtCashOutbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|211-getter|1|211-postInit
            // write post-init user code here
        }//GEN-BEGIN:|211-getter|2|
        return AgtCashOutbackCommand;
    }
//</editor-fold>//GEN-END:|211-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashOutokCommand ">//GEN-BEGIN:|214-getter|0|214-preInit
    /**
     * Returns an initialized instance of AgtCashOutokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtCashOutokCommand() {
        if (AgtCashOutokCommand == null) {//GEN-END:|214-getter|0|214-preInit
            // write pre-init user code here
            AgtCashOutokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|214-getter|1|214-postInit
            // write post-init user code here
        }//GEN-BEGIN:|214-getter|2|
        return AgtCashOutokCommand;
    }
//</editor-fold>//GEN-END:|214-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashAgentIDtextField ">//GEN-BEGIN:|217-getter|0|217-preInit
    /**
     * Returns an initialized instance of AgtCashAgentIDtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtCashAgentIDtextField() {
        if (AgtCashAgentIDtextField == null) {//GEN-END:|217-getter|0|217-preInit
            // write pre-init user code here
            AgtCashAgentIDtextField = new TextField(setLang("AgtCashAgentIDtextField"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|217-getter|1|217-postInit
            // write post-init user code here
        }//GEN-BEGIN:|217-getter|2|
        return AgtCashAgentIDtextField;
    }
//</editor-fold>//GEN-END:|217-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashAmttextField ">//GEN-BEGIN:|218-getter|0|218-preInit
    /**
     * Returns an initialized instance of AgtCashAmttextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtCashAmttextField() {
        if (AgtCashAmttextField == null) {//GEN-END:|218-getter|0|218-preInit
            // write pre-init user code here
            AgtCashAmttextField = new TextField(setLang("AgtCashAmttextField"), getAppProperty("EMIDA_APP_PHONE_PREFIX"), 32, TextField.DECIMAL);//GEN-LINE:|218-getter|1|218-postInit
            // write post-init user code here
        }//GEN-BEGIN:|218-getter|2|
        return AgtCashAmttextField;
    }
//</editor-fold>//GEN-END:|218-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashTokentextField ">//GEN-BEGIN:|219-getter|0|219-preInit
    /**
     * Returns an initialized instance of AgtCashTokentextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtCashTokentextField() {
        if (AgtCashTokentextField == null) {//GEN-END:|219-getter|0|219-preInit
            // write pre-init user code here
            AgtCashTokentextField = new TextField(setLang("AgtCashTokentextField"), "", 32, TextField.NUMERIC);//GEN-LINE:|219-getter|1|219-postInit
            // write post-init user code here
        }//GEN-BEGIN:|219-getter|2|
        return AgtCashTokentextField;
    }
//</editor-fold>//GEN-END:|219-getter|2|
    //</editor-fold>



//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer2 ">//GEN-BEGIN:|221-getter|0|221-preInit
    /**
     * Returns an initialized instance of spacer2 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer2() {
        if (spacer2 == null) {//GEN-END:|221-getter|0|221-preInit
            // write pre-init user code here
            spacer2 = new Spacer(16, 1);//GEN-LINE:|221-getter|1|221-postInit
            // write post-init user code here
        }//GEN-BEGIN:|221-getter|2|
        return spacer2;
    }
//</editor-fold>//GEN-END:|221-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtLoadAlert ">//GEN-BEGIN:|222-getter|0|222-preInit
    /**
     * Returns an initialized instance of AgtLoadAlert component.
     *
     * @return the initialized component instance
     */
    public StringItem getAgtLoadAlert() {
        if (AgtLoadAlert == null) {//GEN-END:|222-getter|0|222-preInit
            // write pre-init user code here
            AgtLoadAlert = new StringItem(setLang("AgtLoadAlertLbl"), setLang("AgtLoadAlert"));//GEN-LINE:|222-getter|1|222-postInit
            // write post-init user code here
        }//GEN-BEGIN:|222-getter|2|
        return AgtLoadAlert;
    }
//</editor-fold>//GEN-END:|222-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer3 ">//GEN-BEGIN:|223-getter|0|223-preInit
    /**
     * Returns an initialized instance of spacer3 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer3() {
        if (spacer3 == null) {//GEN-END:|223-getter|0|223-preInit
            // write pre-init user code here
            spacer3 = new Spacer(16, 1);//GEN-LINE:|223-getter|1|223-postInit
            // write post-init user code here
        }//GEN-BEGIN:|223-getter|2|
        return spacer3;
    }
//</editor-fold>//GEN-END:|223-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashalert ">//GEN-BEGIN:|224-getter|0|224-preInit
    /**
     * Returns an initialized instance of AgtCashalert component.
     *
     * @return the initialized component instance
     */
    public StringItem getAgtCashalert() {
        if (AgtCashalert == null) {//GEN-END:|224-getter|0|224-preInit
            // write pre-init user code here
            AgtCashalert = new StringItem(setLang("AgtCashalertLbl"), setLang("AgtCashalert"));//GEN-LINE:|224-getter|1|224-postInit
            // write post-init user code here
        }//GEN-BEGIN:|224-getter|2|
        return AgtCashalert;
    }
//</editor-fold>//GEN-END:|224-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer4 ">//GEN-BEGIN:|226-getter|0|226-preInit
    /**
     * Returns an initialized instance of spacer4 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer4() {
        if (spacer4 == null) {//GEN-END:|226-getter|0|226-preInit
            // write pre-init user code here
            spacer4 = new Spacer(16, 1);//GEN-BEGIN:|226-getter|1|226-postInit
            spacer4.setPreferredSize(-1, 12);//GEN-END:|226-getter|1|226-postInit
            // write post-init user code here
        }//GEN-BEGIN:|226-getter|2|
        return spacer4;
    }
//</editor-fold>//GEN-END:|226-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDOPmissingCellPhonetextField ">//GEN-BEGIN:|227-getter|0|227-preInit
    /**
     * Returns an initialized instance of SENDOPmissingCellPhonetextField
     * component.
     *
     * @return the initialized component instance
     */
    public TextField getSENDOPmissingCellPhonetextField() {
        if (SENDOPmissingCellPhonetextField == null) {//GEN-END:|227-getter|0|227-preInit
            // write pre-init user code here
            SENDOPmissingCellPhonetextField = new TextField(setLang("SENDOPmissingCellPhonetextField"), "", 32, TextField.PHONENUMBER);//GEN-BEGIN:|227-getter|1|227-postInit
            SENDOPmissingCellPhonetextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|227-getter|1|227-postInit
            // write post-init user code here
            if (DBagentCellNumber.length() != 0) {
                    //missingCellPhonetextField.setConstraints(TextField.ANY);
                    SENDOPmissingCellPhonetextField.setString(DBagentCellNumber);
                    //missingCellPhonetextField.setConstraints(TextField.NUMERIC);
            }
        }//GEN-BEGIN:|227-getter|2|
        return SENDOPmissingCellPhonetextField;
    }
//</editor-fold>//GEN-END:|227-getter|2|



//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer5 ">//GEN-BEGIN:|230-getter|0|230-preInit
    /**
     * Returns an initialized instance of spacer5 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer5() {
        if (spacer5 == null) {//GEN-END:|230-getter|0|230-preInit
            // write pre-init user code here
            spacer5 = new Spacer(16, 1);//GEN-LINE:|230-getter|1|230-postInit
            // write post-init user code here
        }//GEN-BEGIN:|230-getter|2|
        return spacer5;
    }
//</editor-fold>//GEN-END:|230-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: imageItem1 ">//GEN-BEGIN:|232-getter|0|232-preInit
    /**
     * Returns an initialized instance of imageItem1 component.
     *
     * @return the initialized component instance
     */
    public ImageItem getImageItem1() {
        if (imageItem1 == null) {//GEN-END:|232-getter|0|232-preInit
            // write pre-init user code here
            imageItem1 = new ImageItem("", getImage1(), ImageItem.LAYOUT_DEFAULT, "Cash and Transact", Item.PLAIN);//GEN-LINE:|232-getter|1|232-postInit
            // write post-init user code here
        }//GEN-BEGIN:|232-getter|2|
        return imageItem1;
    }
//</editor-fold>//GEN-END:|232-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: image2 ">//GEN-BEGIN:|233-getter|0|233-preInit
    /**
     * Returns an initialized instance of image2 component.
     *
     * @return the initialized component instance
     */
    public Image getImage2() {
        if (image2 == null) {//GEN-END:|233-getter|0|233-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|233-getter|1|233-@java.io.IOException
                image2 = Image.createImage("/tcash_cell_menu.png");
            } catch (java.io.IOException e) {//GEN-END:|233-getter|1|233-@java.io.IOException
                e.printStackTrace();
            }//GEN-LINE:|233-getter|2|233-postInit
            // write post-init user code here
        }//GEN-BEGIN:|233-getter|3|
        return image2;
    }
//</editor-fold>//GEN-END:|233-getter|3|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer6 ">//GEN-BEGIN:|234-getter|0|234-preInit
    /**
     * Returns an initialized instance of spacer6 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer6() {
        if (spacer6 == null) {//GEN-END:|234-getter|0|234-preInit
            // write pre-init user code here
            spacer6 = new Spacer(16, 1);//GEN-LINE:|234-getter|1|234-postInit
            // write post-init user code here
        }//GEN-BEGIN:|234-getter|2|
        return spacer6;
    }
//</editor-fold>//GEN-END:|234-getter|2|
    //</editor-fold>
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: DepositokCommand ">//GEN-BEGIN:|238-getter|0|238-preInit
    /**
     * Returns an initialized instance of DepositokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getDepositokCommand() {
        if (DepositokCommand == null) {//GEN-END:|238-getter|0|238-preInit
            // write pre-init user code here
            DepositokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|238-getter|1|238-postInit
            // write post-init user code here
        }//GEN-BEGIN:|238-getter|2|
        return DepositokCommand;
    }
//</editor-fold>//GEN-END:|238-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: DepositbackCommand ">//GEN-BEGIN:|240-getter|0|240-preInit
    /**
     * Returns an initialized instance of DepositbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getDepositbackCommand() {
        if (DepositbackCommand == null) {//GEN-END:|240-getter|0|240-preInit
            // write pre-init user code here
            DepositbackCommand = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|240-getter|1|240-postInit
            // write post-init user code here
        }//GEN-BEGIN:|240-getter|2|
        return DepositbackCommand;
    }
//</editor-fold>//GEN-END:|240-getter|2|

















//<editor-fold defaultstate="collapsed" desc=" Generated Getter: font1 ">//GEN-BEGIN:|250-getter|0|250-preInit
    /**
     * Returns an initialized instance of font1 component.
     *
     * @return the initialized component instance
     */
    public Font getFont1() {
        if (font1 == null) {//GEN-END:|250-getter|0|250-preInit
            // write pre-init user code here
            font1 = Font.getFont(Font.FACE_PROPORTIONAL, Font.STYLE_BOLD, Font.SIZE_LARGE);//GEN-LINE:|250-getter|1|250-postInit
            // write post-init user code here
        }//GEN-BEGIN:|250-getter|2|
        return font1;
    }
//</editor-fold>//GEN-END:|250-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand16 ">//GEN-BEGIN:|251-getter|0|251-preInit
    /**
     * Returns an initialized instance of okCommand16 component.
     *
     * @return the initialized component instance
     */
    public Command getOkCommand16() {
        if (okCommand16 == null) {//GEN-END:|251-getter|0|251-preInit
            // write pre-init user code here
            okCommand16 = new Command("Ok", Command.OK, 0);//GEN-LINE:|251-getter|1|251-postInit
            // write post-init user code here
        }//GEN-BEGIN:|251-getter|2|
        return okCommand16;
    }
//</editor-fold>//GEN-END:|251-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand17 ">//GEN-BEGIN:|253-getter|0|253-preInit
    /**
     * Returns an initialized instance of okCommand17 component.
     *
     * @return the initialized component instance
     */
    public Command getOkCommand17() {
        if (okCommand17 == null) {//GEN-END:|253-getter|0|253-preInit
            // write pre-init user code here
            okCommand17 = new Command("Ok", Command.OK, 0);//GEN-LINE:|253-getter|1|253-postInit
            // write post-init user code here
        }//GEN-BEGIN:|253-getter|2|
        return okCommand17;
    }
//</editor-fold>//GEN-END:|253-getter|2|






    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: mainListExitCommand ">//GEN-BEGIN:|261-getter|0|261-preInit
    /**
     * Returns an initialized instance of mainListExitCommand component.
     *
     * @return the initialized component instance
     */
    public Command getMainListExitCommand() {
        if (mainListExitCommand == null) {//GEN-END:|261-getter|0|261-preInit
            // write pre-init user code here
            mainListExitCommand = new Command(setLang("Exit"), setLang("Exit"), Command.EXIT, 0);//GEN-LINE:|261-getter|1|261-postInit
            // write post-init user code here
        }//GEN-BEGIN:|261-getter|2|
        return mainListExitCommand;
    }
//</editor-fold>//GEN-END:|261-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SPLASHokCommand ">//GEN-BEGIN:|265-getter|0|265-preInit
    /**
     * Returns an initialized instance of SPLASHokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getSPLASHokCommand() {
        if (SPLASHokCommand == null) {//GEN-END:|265-getter|0|265-preInit
            // write pre-init user code here
            SPLASHokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|265-getter|1|265-postInit
            // write post-init user code here
        }//GEN-BEGIN:|265-getter|2|
        return SPLASHokCommand;
    }
//</editor-fold>//GEN-END:|265-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ticker1 ">//GEN-BEGIN:|268-getter|0|268-preInit
    /**
     * Returns an initialized instance of ticker1 component.
     *
     * @return the initialized component instance
     */
    public Ticker getTicker1() {
        if (ticker1 == null) {//GEN-END:|268-getter|0|268-preInit
            // write pre-init user code here
            ticker1 = new Ticker("Cash and Transact ...Copyright EMIDA, Inc.");//GEN-LINE:|268-getter|1|268-postInit
            // write post-init user code here
        }//GEN-BEGIN:|268-getter|2|
        return ticker1;
    }
//</editor-fold>//GEN-END:|268-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: mainmenulist_selectbutton ">//GEN-BEGIN:|269-getter|0|269-preInit
    /**
     * Returns an initialized instance of mainmenulist_selectbutton component.
     *
     * @return the initialized component instance
     */
    public Command getMainmenulist_selectbutton() {
        if (mainmenulist_selectbutton == null) {//GEN-END:|269-getter|0|269-preInit
            // write pre-init user code here
            mainmenulist_selectbutton = new Command(setLang("Select"), setLang("Select"), Command.OK, 0);//GEN-LINE:|269-getter|1|269-postInit
            // write post-init user code here
        }//GEN-BEGIN:|269-getter|2|
        return mainmenulist_selectbutton;
    }
//</editor-fold>//GEN-END:|269-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: image1 ">//GEN-BEGIN:|274-getter|0|274-preInit
    /**
     * Returns an initialized instance of image1 component.
     *
     * @return the initialized component instance
     */
    public Image getImage1() {
        if (image1 == null) {//GEN-END:|274-getter|0|274-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|274-getter|1|274-@java.io.IOException
                image1 = Image.createImage("/tcash_small_signon.png");
            } catch (java.io.IOException e) {//GEN-END:|274-getter|1|274-@java.io.IOException
                e.printStackTrace();
            }//GEN-LINE:|274-getter|2|274-postInit
            // write post-init user code here
        }//GEN-BEGIN:|274-getter|3|
        return image1;
    }
//</editor-fold>//GEN-END:|274-getter|3|


    //</editor-fold>




    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: HISbackCommand ">//GEN-BEGIN:|280-getter|0|280-preInit
    /**
     * Returns an initialized instance of HISbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getHISbackCommand() {
        if (HISbackCommand == null) {//GEN-END:|280-getter|0|280-preInit
            // write pre-init user code here
            HISbackCommand = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|280-getter|1|280-postInit
            // write post-init user code here
        }//GEN-BEGIN:|280-getter|2|
        return HISbackCommand;
    }
//</editor-fold>//GEN-END:|280-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: HISokCommand ">//GEN-BEGIN:|282-getter|0|282-preInit
    /**
     * Returns an initialized instance of HISokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getHISokCommand() {
        if (HISokCommand == null) {//GEN-END:|282-getter|0|282-preInit
            // write pre-init user code here
            HISokCommand = new Command(setLang("Ok"), Command.OK, 0);//GEN-LINE:|282-getter|1|282-postInit
            // write post-init user code here
        }//GEN-BEGIN:|282-getter|2|
        return HISokCommand;
    }
//</editor-fold>//GEN-END:|282-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtReghelpCommand ">//GEN-BEGIN:|288-getter|0|288-preInit
    /**
     * Returns an initialized instance of AgtReghelpCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtReghelpCommand() {
        if (AgtReghelpCommand == null) {//GEN-END:|288-getter|0|288-preInit
            // write pre-init user code here
            AgtReghelpCommand = new Command(setLang("Help"), setLang("Help"), Command.HELP, 0);//GEN-LINE:|288-getter|1|288-postInit
            // write post-init user code here
        }//GEN-BEGIN:|288-getter|2|
        return AgtReghelpCommand;
    }
//</editor-fold>//GEN-END:|288-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: RegHelpokCommand ">//GEN-BEGIN:|291-getter|0|291-preInit
    /**
     * Returns an initialized instance of RegHelpokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getRegHelpokCommand() {
        if (RegHelpokCommand == null) {//GEN-END:|291-getter|0|291-preInit
            // write pre-init user code here
            RegHelpokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|291-getter|1|291-postInit
            // write post-init user code here
        }//GEN-BEGIN:|291-getter|2|
        return RegHelpokCommand;
    }
//</editor-fold>//GEN-END:|291-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegHelpform ">//GEN-BEGIN:|290-getter|0|290-preInit
    /**
     * Returns an initialized instance of AgtRegHelpform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtRegHelpform() {
        if (AgtRegHelpform == null) {//GEN-END:|290-getter|0|290-preInit
            // write pre-init user code here
            AgtRegHelpform = new Form(setLang("AgtRegHelpform"), new Item[]{getAgtRegHelpCommentstringItem()});//GEN-BEGIN:|290-getter|1|290-postInit
            AgtRegHelpform.addCommand(getRegHelpokCommand());
            AgtRegHelpform.setCommandListener(this);//GEN-END:|290-getter|1|290-postInit
            // write post-init user code here
        }//GEN-BEGIN:|290-getter|2|
        return AgtRegHelpform;
    }
//</editor-fold>//GEN-END:|290-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegHelpCommentstringItem ">//GEN-BEGIN:|294-getter|0|294-preInit
    /**
     * Returns an initialized instance of AgtRegHelpCommentstringItem component.
     *
     * @return the initialized component instance
     */
    public StringItem getAgtRegHelpCommentstringItem() {
        if (AgtRegHelpCommentstringItem == null) {//GEN-END:|294-getter|0|294-preInit
            // write pre-init user code here
            AgtRegHelpCommentstringItem = new StringItem(setLang("AgtRegHelpCommentLabel"), setLang("AgtRegHelpCommentstringItem"));//GEN-LINE:|294-getter|1|294-postInit
            // write post-init user code here
        }//GEN-BEGIN:|294-getter|2|
        return AgtRegHelpCommentstringItem;
    }
//</editor-fold>//GEN-END:|294-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSecurityQtextField ">//GEN-BEGIN:|296-getter|0|296-preInit
    /**
     * Returns an initialized instance of AgtRegSecurityQtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegSecurityQtextField() {
        if (AgtRegSecurityQtextField == null) {//GEN-END:|296-getter|0|296-preInit
            // write pre-init user code here
            AgtRegSecurityQtextField = new TextField(setLang("AgtRegSecurityQLBL"), "", 32, TextField.ANY);//GEN-LINE:|296-getter|1|296-postInit
            // write post-init user code here
        }//GEN-BEGIN:|296-getter|2|
        return AgtRegSecurityQtextField;
    }
//</editor-fold>//GEN-END:|296-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSecurityAtextField ">//GEN-BEGIN:|297-getter|0|297-preInit
    /**
     * Returns an initialized instance of AgtRegSecurityAtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegSecurityAtextField() {
        if (AgtRegSecurityAtextField == null) {//GEN-END:|297-getter|0|297-preInit
            // write pre-init user code here
            AgtRegSecurityAtextField = new TextField(setLang("AgtRegSecurityAtextField"), "", 32, TextField.ANY);//GEN-LINE:|297-getter|1|297-postInit
            // write post-init user code here
        }//GEN-BEGIN:|297-getter|2|
        return AgtRegSecurityAtextField;
    }
//</editor-fold>//GEN-END:|297-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: image ">//GEN-BEGIN:|298-getter|0|298-preInit
    /**
     * Returns an initialized instance of image component.
     *
     * @return the initialized component instance
     */
    public Image getImage() {
        if (image == null) {//GEN-END:|298-getter|0|298-preInit
            // write pre-init user code here
            try {//GEN-BEGIN:|298-getter|1|298-@java.io.IOException
                image = Image.createImage("/tcash_splash.png");
            } catch (java.io.IOException e) {//GEN-END:|298-getter|1|298-@java.io.IOException
                e.printStackTrace();
            }//GEN-LINE:|298-getter|2|298-postInit
            // write post-init user code here
        }//GEN-BEGIN:|298-getter|3|
        return image;
    }
//</editor-fold>//GEN-END:|298-getter|3|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: RegSelectTypeCustomerokCommand ">//GEN-BEGIN:|303-getter|0|303-preInit
    /**
     * Returns an initialized instance of RegSelectTypeCustomerokCommand
     * component.
     *
     * @return the initialized component instance
     */
    public Command getRegSelectTypeCustomerokCommand() {
        if (RegSelectTypeCustomerokCommand == null) {//GEN-END:|303-getter|0|303-preInit
            // write pre-init user code here
            RegSelectTypeCustomerokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|303-getter|1|303-postInit
            // write post-init user code here
        }//GEN-BEGIN:|303-getter|2|
        return RegSelectTypeCustomerokCommand;
    }
//</editor-fold>//GEN-END:|303-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: RegSelectTypeCustomerbackCommand ">//GEN-BEGIN:|305-getter|0|305-preInit
    /**
     * Returns an initialized instance of RegSelectTypeCustomerbackCommand
     * component.
     *
     * @return the initialized component instance
     */
    public Command getRegSelectTypeCustomerbackCommand() {
        if (RegSelectTypeCustomerbackCommand == null) {//GEN-END:|305-getter|0|305-preInit
            // write pre-init user code here
            RegSelectTypeCustomerbackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|305-getter|1|305-postInit
            // write post-init user code here
        }//GEN-BEGIN:|305-getter|2|
        return RegSelectTypeCustomerbackCommand;
    }
//</editor-fold>//GEN-END:|305-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSemiBankedform ">//GEN-BEGIN:|300-getter|0|300-preInit
    /**
     * Returns an initialized instance of AgtRegSemiBankedform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtRegSemiBankedform() {
        if (AgtRegSemiBankedform == null) {//GEN-END:|300-getter|0|300-preInit
            // write pre-init user code here
            AgtRegSemiBankedform = new Form(setLang("AgtRegSemiBankedform"), new Item[]{getAgtRegSemiBankedchoiceGroup(), getAgtRegSemiBankedchoiceGroup2()});//GEN-BEGIN:|300-getter|1|300-postInit
            AgtRegSemiBankedform.addCommand(getAgtRegSemiBankedbackCommand());
            AgtRegSemiBankedform.addCommand(getAgtRegSemiBankedokCommand());
            AgtRegSemiBankedform.setCommandListener(this);//GEN-END:|300-getter|1|300-postInit
            // write post-init user code here
        }//GEN-BEGIN:|300-getter|2|
        return AgtRegSemiBankedform;
    }
//</editor-fold>//GEN-END:|300-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankedform ">//GEN-BEGIN:|301-getter|0|301-preInit
    /**
     * Returns an initialized instance of AgtRegBankedform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtRegBankedform() {
        if (AgtRegBankedform == null) {//GEN-END:|301-getter|0|301-preInit
            // write pre-init user code here
            AgtRegBankedform = new Form(setLang("AgtRegBankedform"), new Item[]{getAgtRegBankedIDchoiceGroup(), getAgtRegBankedAddrchoiceGroup(), getAgtRegBankedReferenceschoiceGroup(), getAgtRegBankedBSchoiceGroup()});//GEN-BEGIN:|301-getter|1|301-postInit
            AgtRegBankedform.addCommand(getAgtRegBankbackCommand());
            AgtRegBankedform.addCommand(getAgtRegBankokCommand());
            AgtRegBankedform.setCommandListener(this);//GEN-END:|301-getter|1|301-postInit
            // write post-init user code here
        }//GEN-BEGIN:|301-getter|2|
        return AgtRegBankedform;
    }
//</editor-fold>//GEN-END:|301-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegMainMenuform ">//GEN-BEGIN:|302-getter|0|302-preInit
    /**
     * Returns an initialized instance of AgtRegMainMenuform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtRegMainMenuform() {
        if (AgtRegMainMenuform == null) {//GEN-END:|302-getter|0|302-preInit
            // write pre-init user code here
            AgtRegMainMenuform = new Form(setLang("AgtRegMainMenuform"), new Item[]{getAgtRegCustomerTypechoiceGroup(), getSpacer1(), getAgtRegPINtextField()});//GEN-BEGIN:|302-getter|1|302-postInit
            AgtRegMainMenuform.addCommand(getRegSelectTypeCustomerokCommand());
            AgtRegMainMenuform.addCommand(getRegSelectTypeCustomerbackCommand());
            AgtRegMainMenuform.setCommandListener(this);//GEN-END:|302-getter|1|302-postInit
            // write post-init user code here
        }//GEN-BEGIN:|302-getter|2|
        return AgtRegMainMenuform;
    }
//</editor-fold>//GEN-END:|302-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegCustomerTypechoiceGroup ">//GEN-BEGIN:|309-getter|0|309-preInit
    /**
     * Returns an initialized instance of AgtRegCustomerTypechoiceGroup
     * component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegCustomerTypechoiceGroup() {
        if (AgtRegCustomerTypechoiceGroup == null) {//GEN-END:|309-getter|0|309-preInit
            // write pre-init user code here
            AgtRegCustomerTypechoiceGroup = new ChoiceGroup("Select the type of customer:\n", Choice.EXCLUSIVE);//GEN-BEGIN:|309-getter|1|309-postInit
            AgtRegCustomerTypechoiceGroup.append(setLang("AgtRegNoID"), null);
            AgtRegCustomerTypechoiceGroup.append(setLang("AgtRegHasID"), null);
            AgtRegCustomerTypechoiceGroup.append(setLang("AgtRegHasBankStatement"), null);
            AgtRegCustomerTypechoiceGroup.setSelectedFlags(new boolean[]{true, false, false});//GEN-END:|309-getter|1|309-postInit
            // write post-init user code here
        }//GEN-BEGIN:|309-getter|2|
        return AgtRegCustomerTypechoiceGroup;
    }
//</editor-fold>//GEN-END:|309-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer1 ">//GEN-BEGIN:|313-getter|0|313-preInit
    /**
     * Returns an initialized instance of spacer1 component.
     *
     * @return the initialized component instance
     */
    public Spacer getSpacer1() {
        if (spacer1 == null) {//GEN-END:|313-getter|0|313-preInit
            // write pre-init user code here
            spacer1 = new Spacer(16, 1);//GEN-LINE:|313-getter|1|313-postInit
            // write post-init user code here
        }//GEN-BEGIN:|313-getter|2|
        return spacer1;
    }
//</editor-fold>//GEN-END:|313-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegPINtextField ">//GEN-BEGIN:|314-getter|0|314-preInit
    /**
     * Returns an initialized instance of AgtRegPINtextField component.
     *
     * @return the initialized component instance
     */
    public TextField getAgtRegPINtextField() {
        if (AgtRegPINtextField == null) {//GEN-END:|314-getter|0|314-preInit
            // write pre-init user code here
            AgtRegPINtextField = new TextField(setLang("AgtRegPIN"), "", 32, TextField.NUMERIC | TextField.PASSWORD);//GEN-LINE:|314-getter|1|314-postInit
            // write post-init user code here
        }//GEN-BEGIN:|314-getter|2|
        return AgtRegPINtextField;
    }
//</editor-fold>//GEN-END:|314-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankbackCommand ">//GEN-BEGIN:|315-getter|0|315-preInit
    /**
     * Returns an initialized instance of AgtRegBankbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegBankbackCommand() {
        if (AgtRegBankbackCommand == null) {//GEN-END:|315-getter|0|315-preInit
            // write pre-init user code here
            AgtRegBankbackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|315-getter|1|315-postInit
            // write post-init user code here
        }//GEN-BEGIN:|315-getter|2|
        return AgtRegBankbackCommand;
    }
//</editor-fold>//GEN-END:|315-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSemiBankedbackCommand ">//GEN-BEGIN:|318-getter|0|318-preInit
    /**
     * Returns an initialized instance of AgtRegSemiBankedbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegSemiBankedbackCommand() {
        if (AgtRegSemiBankedbackCommand == null) {//GEN-END:|318-getter|0|318-preInit
            // write pre-init user code here
            AgtRegSemiBankedbackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|318-getter|1|318-postInit
            // write post-init user code here
        }//GEN-BEGIN:|318-getter|2|
        return AgtRegSemiBankedbackCommand;
    }
//</editor-fold>//GEN-END:|318-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSemiBankedokCommand ">//GEN-BEGIN:|321-getter|0|321-preInit
    /**
     * Returns an initialized instance of AgtRegSemiBankedokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegSemiBankedokCommand() {
        if (AgtRegSemiBankedokCommand == null) {//GEN-END:|321-getter|0|321-preInit
            // write pre-init user code here
            AgtRegSemiBankedokCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|321-getter|1|321-postInit
            // write post-init user code here
        }//GEN-BEGIN:|321-getter|2|
        return AgtRegSemiBankedokCommand;
    }
//</editor-fold>//GEN-END:|321-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankokCommand ">//GEN-BEGIN:|323-getter|0|323-preInit
    /**
     * Returns an initialized instance of AgtRegBankokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtRegBankokCommand() {
        if (AgtRegBankokCommand == null) {//GEN-END:|323-getter|0|323-preInit
            // write pre-init user code here
            AgtRegBankokCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|323-getter|1|323-postInit
            // write post-init user code here
        }//GEN-BEGIN:|323-getter|2|
        return AgtRegBankokCommand;
    }
//</editor-fold>//GEN-END:|323-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSemiBankedchoiceGroup ">//GEN-BEGIN:|326-getter|0|326-preInit
    /**
     * Returns an initialized instance of AgtRegSemiBankedchoiceGroup component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegSemiBankedchoiceGroup() {
        if (AgtRegSemiBankedchoiceGroup == null) {//GEN-END:|326-getter|0|326-preInit
            // write pre-init user code here
            AgtRegSemiBankedchoiceGroup = new ChoiceGroup(setLang("AgtRegSemiBankedchoiceGroup"), Choice.EXCLUSIVE);//GEN-BEGIN:|326-getter|1|326-postInit
            AgtRegSemiBankedchoiceGroup.append(setLang("Yes"), null);
            AgtRegSemiBankedchoiceGroup.append(setLang("No"), null);
            AgtRegSemiBankedchoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|326-getter|1|326-postInit
            // write post-init user code here
        }//GEN-BEGIN:|326-getter|2|
        return AgtRegSemiBankedchoiceGroup;
    }
//</editor-fold>//GEN-END:|326-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankedReferenceschoiceGroup ">//GEN-BEGIN:|329-getter|0|329-preInit
    /**
     * Returns an initialized instance of AgtRegBankedReferenceschoiceGroup
     * component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegBankedReferenceschoiceGroup() {
        if (AgtRegBankedReferenceschoiceGroup == null) {//GEN-END:|329-getter|0|329-preInit
            // write pre-init user code here
            AgtRegBankedReferenceschoiceGroup = new ChoiceGroup(setLang("AgtRegBankedReferenceschoiceGroup"), Choice.EXCLUSIVE);//GEN-BEGIN:|329-getter|1|329-postInit
            AgtRegBankedReferenceschoiceGroup.append(setLang("Yes"), null);
            AgtRegBankedReferenceschoiceGroup.append(setLang("No"), null);
            AgtRegBankedReferenceschoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|329-getter|1|329-postInit
            // write post-init user code here
        }//GEN-BEGIN:|329-getter|2|
        return AgtRegBankedReferenceschoiceGroup;
    }
//</editor-fold>//GEN-END:|329-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankedBSchoiceGroup ">//GEN-BEGIN:|332-getter|0|332-preInit
    /**
     * Returns an initialized instance of AgtRegBankedBSchoiceGroup component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegBankedBSchoiceGroup() {
        if (AgtRegBankedBSchoiceGroup == null) {//GEN-END:|332-getter|0|332-preInit
            // write pre-init user code here
            AgtRegBankedBSchoiceGroup = new ChoiceGroup(setLang("AgtRegBankedBSchoiceGroup"), Choice.EXCLUSIVE);//GEN-BEGIN:|332-getter|1|332-postInit
            AgtRegBankedBSchoiceGroup.append(setLang("Yes"), null);
            AgtRegBankedBSchoiceGroup.append(setLang("No"), null);
            AgtRegBankedBSchoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|332-getter|1|332-postInit
            // write post-init user code here
        }//GEN-BEGIN:|332-getter|2|
        return AgtRegBankedBSchoiceGroup;
    }
//</editor-fold>//GEN-END:|332-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankedIDchoiceGroup ">//GEN-BEGIN:|337-getter|0|337-preInit
    /**
     * Returns an initialized instance of AgtRegBankedIDchoiceGroup component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegBankedIDchoiceGroup() {
        if (AgtRegBankedIDchoiceGroup == null) {//GEN-END:|337-getter|0|337-preInit
            // write pre-init user code here
            AgtRegBankedIDchoiceGroup = new ChoiceGroup(setLang("AgtRegSemiBankedchoiceGroup"), Choice.EXCLUSIVE);//GEN-BEGIN:|337-getter|1|337-postInit
            AgtRegBankedIDchoiceGroup.append(setLang("Yes"), null);
            AgtRegBankedIDchoiceGroup.append(setLang("No"), null);
            AgtRegBankedIDchoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|337-getter|1|337-postInit
            // write post-init user code here
        }//GEN-BEGIN:|337-getter|2|
        return AgtRegBankedIDchoiceGroup;
    }
//</editor-fold>//GEN-END:|337-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtWithdrawokCommand ">//GEN-BEGIN:|341-getter|0|341-preInit
    /**
     * Returns an initialized instance of AgtWithdrawokCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtWithdrawokCommand() {
        if (AgtWithdrawokCommand == null) {//GEN-END:|341-getter|0|341-preInit
            // write pre-init user code here
            AgtWithdrawokCommand = new Command(setLang("Back"), setLang("Back"), Command.OK, 0);//GEN-LINE:|341-getter|1|341-postInit
            // write post-init user code here
        }//GEN-BEGIN:|341-getter|2|
        return AgtWithdrawokCommand;
    }
//</editor-fold>//GEN-END:|341-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtWithdrawbackCommand ">//GEN-BEGIN:|343-getter|0|343-preInit
    /**
     * Returns an initialized instance of AgtWithdrawbackCommand component.
     *
     * @return the initialized component instance
     */
    public Command getAgtWithdrawbackCommand() {
        if (AgtWithdrawbackCommand == null) {//GEN-END:|343-getter|0|343-preInit
            // write pre-init user code here
            AgtWithdrawbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|343-getter|1|343-postInit
            // write post-init user code here
        }//GEN-BEGIN:|343-getter|2|
        return AgtWithdrawbackCommand;
    }
//</editor-fold>//GEN-END:|343-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtWithdrawform ">//GEN-BEGIN:|340-getter|0|340-preInit
    /**
     * Returns an initialized instance of AgtWithdrawform component.
     *
     * @return the initialized component instance
     */
    public Form getAgtWithdrawform() {
        if (AgtWithdrawform == null) {//GEN-END:|340-getter|0|340-preInit
            // write pre-init user code here
            AgtWithdrawform = new Form(setLang("AgtWithdrawalform"));//GEN-BEGIN:|340-getter|1|340-postInit
            AgtWithdrawform.addCommand(getAgtWithdrawokCommand());
            AgtWithdrawform.addCommand(getAgtWithdrawbackCommand());
            AgtWithdrawform.setCommandListener(this);//GEN-END:|340-getter|1|340-postInit
            // write post-init user code here
        }//GEN-BEGIN:|340-getter|2|
        return AgtWithdrawform;
    }
//</editor-fold>//GEN-END:|340-getter|2|

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegSemiBankedchoiceGroup2 ">//GEN-BEGIN:|349-getter|0|349-preInit
    /**
     * Returns an initialized instance of AgtRegSemiBankedchoiceGroup2
     * component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegSemiBankedchoiceGroup2() {
        if (AgtRegSemiBankedchoiceGroup2 == null) {//GEN-END:|349-getter|0|349-preInit
            // write pre-init user code here
            AgtRegSemiBankedchoiceGroup2 = new ChoiceGroup(setLang("AgtRegSemiBankedchoiceGroup2"), Choice.EXCLUSIVE);//GEN-BEGIN:|349-getter|1|349-postInit
            AgtRegSemiBankedchoiceGroup2.append(setLang("Yes"), null);
            AgtRegSemiBankedchoiceGroup2.append(setLang("No"), null);
            AgtRegSemiBankedchoiceGroup2.setSelectedFlags(new boolean[]{false, true});//GEN-END:|349-getter|1|349-postInit
            // write post-init user code here
        }//GEN-BEGIN:|349-getter|2|
        return AgtRegSemiBankedchoiceGroup2;
    }
//</editor-fold>//GEN-END:|349-getter|2|
    //</editor-fold>

//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegBankedAddrchoiceGroup ">//GEN-BEGIN:|354-getter|0|354-preInit
    /**
     * Returns an initialized instance of AgtRegBankedAddrchoiceGroup component.
     *
     * @return the initialized component instance
     */
    public ChoiceGroup getAgtRegBankedAddrchoiceGroup() {
        if (AgtRegBankedAddrchoiceGroup == null) {//GEN-END:|354-getter|0|354-preInit
            // write pre-init user code here
            AgtRegBankedAddrchoiceGroup = new ChoiceGroup(setLang("AgtRegSemiBankedchoiceGroup2"), Choice.EXCLUSIVE);//GEN-BEGIN:|354-getter|1|354-postInit
            AgtRegBankedAddrchoiceGroup.append(setLang("Yes"), null);
            AgtRegBankedAddrchoiceGroup.append(setLang("No"), null);
            AgtRegBankedAddrchoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|354-getter|1|354-postInit
            // write post-init user code here
        }//GEN-BEGIN:|354-getter|2|
        return AgtRegBankedAddrchoiceGroup;
    }
//</editor-fold>//GEN-END:|354-getter|2|


    /**
     * 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) {
    }

////////////////////////*******************************************8//////////////////
    //start MKudi material

    /**
     * Fill MainList with Agent selection IF property is set to 1
     */
    public String getAgent() {
        String agent = getAppProperty("EMIDA_APP_AGENT");
        if (agent.startsWith("1"))
            return setLang("MENUAGENT");
        else
            return ("");
    }

/**
     * Fill MainList with Diagnostic selection IF property is set to 1
     */
    public String getDiags() {
        String diag = getAppProperty("EMIDA_APP_DIAGNOSTICS");
        if (diag.startsWith("1"))
            return ("Diagnostics");
        else
            return ("");
    }

    /**
     * For a J2ME application the phone number cannot be determined.
     * The very first start of the application we prompt for the number
     * and store it in the DB, for later retrieval.
     * This number is set to the global VAR DBagentCellNumber.
     * And is passed to the server with every operation request.
     *
     * The phone field needs to be NON numeric since CAT allows a user to
     * prefix phone number with a +. Which this method does.
     *
     * Check DB for cell phone number
     */
    public void CheckDatabase() {
        //open db
    try {
        db = new DBStore(DBname,false);
    } catch(Exception ex) {
        String msg = ":" + ex.getMessage();
        ShowMsg(setLang("SEND_MSG26")+msg, getSignOnForm(), true);
      return;
    }

    if (db.recordStore !=null) {
        //get cell
        //get pin
        try {
            // Allocate space to hold each record
            byte[] recData = new byte[50];

            // Read from the specified byte array
            ByteArrayInputStream strmBytes = new ByteArrayInputStream(recData);

            // Read Java data types from the above byte array
            DataInputStream strmDataType = new DataInputStream(strmBytes);

            for (int i = 1; i <= db.recordStore.getNumRecords(); i++) {
                      // Get data into the byte array
                db.recordStore.getRecord(i, recData, 0);

                if (i==1) {//agent number
                    String temp = strmDataType.readUTF();
                    DBagentCellNumber = temp.trim();
                    if (DBagentCellNumber.startsWith("+")) {
                        DBagentCellNumber = DBagentCellNumber.substring(1);
                    }
                    //DBagentCellNumber = strmDataType.readUTF();
                    //ShowMsg(DBagentCellNumber, null, false);
                }


                // Reset so read starts at beginning of array
                strmBytes.reset();
            }//for

            strmBytes.close();
            strmDataType.close();
           } catch (Exception ex) {
                String msg = ex.getMessage();
        }

        try {
             db.close();
        } catch(Exception ex) {
             String msg = ex.getMessage();
            //ShowMsg("Problems closing database, call customer support.", getSignONform(), true);
            //return;
        }
    }//not null

    }//checkdatabase

    /**
     * Save the mobile devices phone number to a RMS database.
     * Remove +,#,* from field.    
     * @param cell
     */
    public void SaveData(String cell) {
            // open file and save
                try {
                    db = new DBStore(DBname,true);//create
                } catch(Exception ex) {
                    String msg = ":" + ex.getMessage();
                    ShowMsg(setLang("SEND_MSG27")+msg, getSignOnForm(), true);
                    return;
                }

               
                String record1 = stripPC(cell.trim());
                String[] data = {"",""};
                data[0] = record1;
                db.writeStream(data);


                try {
                    db.close();
                } catch(Exception ex) {
                    String msg = ":" + ex.getMessage();
                    ShowMsg(setLang("SEND_MSG28")+msg, getSignOnForm(), true);
                    return;
                }



    }//SaveData

public void ShowMsg(String msg, Form returnform ) {
        Alert salah = new Alert("Please Try Again", msg, null, AlertType.ERROR);
        Display display = getDisplay();
        display.setCurrent(salah,returnform);
    }

public void ShowMsg(String msg, Form returnform, boolean error ) {

        if (error)
            alert = new Alert("Please Try Again", msg, null, AlertType.ERROR);
        else
            alert = new Alert("", msg, null, AlertType.INFO);
        Display display = getDisplay();
        if (returnform !=null)
            display.setCurrent(alert,returnform);
        else
            display.setCurrent(alert,getAgentMainMenu());
    }//ShowMsg
 


    public void buildHumanMsg(String msg, String additionalMsg, String number, String amount) {
        if (additionalMsg == null)
            HumanCmd = msg + number + " " + amount;
        else
            HumanCmd = msg + " " + additionalMsg +
                    " " + number + " " + amount;

        if ( SENDOPdatastringItem !=null) {
             SENDOPdatastringItem.setText(HumanCmd);
        }
    }

/**
* CAT now allows user to input phone numbers. The
* input field is constrained to a phone number field.
* This constraint allows a +,# or * to be entered as well.
* If entered, remove the characters.
* Not needed for CAT right now.
* server
* @param data      phone number
* @return
*/
public String stripPC(String _cell) {

    char newcell[] = new char[32];
    int jj=0;

    for (int ii=0; ii<_cell.length(); ii++) {
        char ch = _cell.charAt(ii);


        if (ch == '+' || ch == '#' || ch == '*' )
            continue;
        else
            newcell[jj] = ch;

        jj++;
    }//for

    String retcell = new String(newcell);
    return retcell.trim();



    }//strip phone constraints

public void nullItems() {
/*
        if (sendopform !=null)
           datastringItem.setText(HumanCmd);

        //
        if (SMSform !=null)  { //sms
            SMSFormCellNumbertextField.setString(SMSdestcellnumber);
            SMSFormPorttextField.setString(SMSport);
            SMSFormMessagetextField.setString(Sms_message_out);
            SMSMSGtextField.setString("");
        }
*/

        return;
    }

/**
* In Nigeria a user can input a comma in the amount field.
* Simply strip it out before sending to CAT server
* @param data      amount
* @return
*/
public String stripComma(String data) {
      int pos = data.indexOf(',');
      if (pos != -1) {
          //before and after
          String before = "";
          String after = "";
          before = data.substring(0, pos);
          after = data.substring(pos+1);
          String ret = before + after;
          return (ret);
      } else
          return(data);
    }//stripcomma

/**
* CAT now allows user to input a + for country code.
* If so, change the value to %2B before sending to CAT
* server
* @param data      phone number
* @return
*/
public String stripPlus(String data) {
      int pos = data.indexOf('+');
      if (pos != -1) {
          //before and after
          String before = "";
          String after = "";
          before = data.substring(0, pos);
          after = data.substring(pos+1);
          String ret = before + after;
          ret = "%2B" + ret;
          return (ret);
      } else
          return(data);
    }//stripcomma

/**
* Any character other than 0 to 9 and the + sign should
* cause the method to return false.
* Otherwise return true
* Since we allow users to enter a + before number, we must ensure all
* other values are numeric.
* @param _cell         Phone number
* @return
*/
public boolean verifyPhoneNumber(String _cell) {

    for (int ii=0; ii<_cell.length(); ii++) {
        char ch = _cell.charAt(ii);

        if (ii==0) { //special case
            if (ch == '+')
                continue;
        }


        if (!Character.isDigit(ch))
            return false;
    }
    return true;
}

public boolean verifyAmount(String _amt) {

    for (int ii=0; ii<_amt.length(); ii++) {
        char ch = _amt.charAt(ii);

       
        if (ch == ',')
            continue;
       
        if (ch == '.')
            continue;


        if (!Character.isDigit(ch))
            return false;
    }
    return true;
}


/**
* The AMOUNT value should only be 2 decimal places to the right.
*
* @param data
* @return
*/
public boolean checkLegal(String data) {

      int pos = data.indexOf('.');
      String before = "";
      String after = "";

      if (pos != -1) {
          before = data.substring(0, pos);
          after = data.substring(pos+1);
          if (after.length()>2)
              return false;
      }

    if (pos == -1) { //no decimal point
        //multiply times 1
            int ldata = Integer.parseInt(data);
            int value = 1 * ldata;
            if (value == 0) {
             return false;
            }
    } else {
            int laft = Integer.parseInt(after);
            int value = 1 * laft;
            if (value >0)
                return true;

             int ldata = Integer.parseInt(before);
             value = 1 * ldata;
             if (value == 0) {
                return false;
             }
    }
    return true;
}//checkLegal


/**
* Check length of PIN
* Should be four digits or greater
*/

public boolean checkPIN(String _pin) {

    if (_pin.length() <4)
        return false;

    return true;
}
/**
  * SendOperation
  * connect to server, send operation
  */
    public void SendOperation(String URL) {

        final HTTPDriver dtd = new HTTPDriver(CommMsgstringItem,getDisplay());
        final String makeURL = URL;

        Comm_msg = "";
        //final String urlmarked = urlEncode(makeURL);

        if (CommMsgstringItem !=null)
            CommMsgstringItem.setLabel(setLang("SEND_MSG24"));

       
        try {

            new Thread(new Runnable()
            {
                public void run() {
                    try {
                        Comm_msg = dtd.sendHttpGet(makeURL);
                        if (Comm_msg.startsWith(setLang("SEND_MSG29")))
                            CommMsgstringItem.setLabel(setLang("SEND_MSG30"));
                        else
                            CommMsgstringItem.setLabel(setLang("SEND_MSG31"));
                       
                        CommMsgstringItem.setText(Comm_msg.toString());
                    } catch(Exception ex1) {
                        Comm_msg = ex1.getMessage();
                        String mess = setLang("SEND_MSG32") + Comm_msg;
                        CommMsgstringItem.setLabel(setLang("SEND_MSG30"));
                        ShowMsg(mess,null,true);
                    }
                }
               }).start();
            } catch (Exception ex2) {
                Comm_msg = ex2.getMessage();
                String mess = "Error sending data: " + Comm_msg;
                CommMsgstringItem.setLabel(setLang("SEND_MSG30"));
                ShowMsg(mess,null,true);
            }



        /*
        try{
                    Thread.sleep(5000);

                } catch(Exception ex3) {
                    Comm_msg = ex3.getMessage();
              }
        */

        return;
    }


    /**
* urlEncode
* This is not used since we regulate what can be input and
* majority of values that need to be encoded are not allowed to
* be input.
* @param sUrl
* @return
*/
    static public String urlEncode(String sUrl)
    {
         StringBuffer urlOK = new StringBuffer();
         for(int i=0; i<sUrl.length(); i++)
         {
             char ch=sUrl.charAt(i);
             switch(ch)
             {
                 case '<': urlOK.append("%3C"); break;
                 case '>': urlOK.append("%3E"); break;
                 case '/': urlOK.append("%2F"); break;
                 case ' ': urlOK.append("%20"); break;
                 case ':': urlOK.append("%3A"); break;
                 case '-': urlOK.append("%2D"); break;
                 case '$': urlOK.append("%24"); break;
                 case '?': urlOK.append("%3F"); break;
                 case ',': urlOK.append("%2C"); break;
                 case ';': urlOK.append("%3B"); break;
                 case '=': urlOK.append("%3D"); break;
                 case '@': urlOK.append("%40"); break;
                 //missing.....
                 case '+': urlOK.append("%2B"); break;
                 default: urlOK.append(ch); break;
             }
         }
         return urlOK.toString();
     } //urlEncode

    /**
     * containsOnlyNumbers
     * If you allow only numeric values in a field then
     * this method is for you.
     * @param str                       phone number
     * @return   false for non-numeric, true all numeric
     */
    public static boolean containsOnlyNumbers(String str) {

    for (int i = 0; i < str.length(); i++) {
      if (!Character.isDigit(str.charAt(i)))
        return false;
    }
    return true;
  }

    /* LANGUAGE_CHANGE */
/**
  *
  * Our canvas main menu support multiple languages.
  * So we need to recognize when the canvas does not exist and
  * when we need to re-build due to a language change.
  *
  * If _rebuild = 0; assume first time called.
  * Else rebuild MainBridgelist
  * @param _rebuild
  */
    public void createCanvasMainList(int _rebuild) {

        String[] items = new String[]{setLang("MENUSENDMONEY"), setLang("MENUREQUESTCASH"), setLang("MENUDEPOSITCASH"),
                                      setLang("MENUPAYBILL"), setLang("MENUTOPUP"), setLang("MENUBALANCE"),
                                      setLang("MENUHISTORY"), setLang("MENUCHANGEPIN"), setLang("MENULANGUAGE")};




        if (_rebuild == 0) {

            Image[] images = null;
            try
            {
                    images = new Image[]{
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png"),
                    Image.createImage("/mkudi_cell_menu.png")
                };
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }

            CanvasList cl = new CanvasList(AgentMainMenu,
                getAppProperty("EMIDA_APP_WELCOME")+getAppProperty("EMIDA_APP_VERSION"),
                items, images);

           
        } else {//rebuild
            AgentMainMenu.removeCommand(mainListExitCommand);
            AgentMainMenu.removeCommand(mainmenulist_selectbutton);
            mainListExitCommand = null;
            mainmenulist_selectbutton=null;
           
            Image image11 = null;
            try {
                image11 = Image.createImage("/mkudi_cell_menu.png");
            }
            catch(Exception e)
            {
                e.printStackTrace();
            }
            int ii=0;
            for (ii=0; ii<items.length; ii++)
                AgentMainMenu.set(ii, items[ii],image11);

            //Check for Agent availability
            //checkAdditionalMenuitems(AgentMainMenu,ii++);//9
            //Diagnostics
            //checkAdditionalMenuitems(AgentMainMenu,ii++);//10
           
            //exit button          
           AgentMainMenu.addCommand(getMainListExitCommand());
           //select button
           AgentMainMenu.addCommand(getMainmenulist_selectbutton());
                
        }
    }


    String setLang(String label) {
        return Lang.getText(label);
    }

    String buildSplashTitle() {
        String title = getAppProperty("EMIDA_APP_WELCOME")+getAppProperty("EMIDA_APP_VERSION");
        title = title + " L" + LangAbbrev;
        return title;
    }

    String buildTitle() {
        String title = getAppProperty("EMIDA_APP_TITLE")+getAppProperty("EMIDA_APP_VERSION");
        title = title + " L" + LangAbbrev;
        return title;
    }

    void setTitle() {
        AgentMainMenu.setTitle(buildTitle());
    }

    /**
     * Since we have to build our canvas by hand to add graphic pictures
     * we need to check for the dynamic menu items named Agent Operations
     * and Diagnostics.
     * Both controlled by JAD file variables.
     * If the addset is 0, create it.
     * Else reset it to the new languasge
     * @param MainBridgelist
     * @param addset
     */
    void checkAdditionalMenuitems(List MainBridgelist,int addset) {

            if (addset ==0 || addset == 9) {
            String title = getAgent();
            if (title.length() > 2) {
                 Image im =null;
                try {
                    im = Image.createImage("/mkudi_cell_menu.png");
                } catch (java.io.IOException ex) {
                    //do nothing
                    String msg = ex.getMessage();
                } finally {
                    if (addset ==0)
                        MainBridgelist.append(getAgent(),im);
                    else
                        MainBridgelist.set(addset, getAgent(),im);
                }
            }
        }//0, 8

        if (addset ==0 || addset ==10) {
            String title = getDiags();
            if (title.length() > 2) {
                 Image im =null;
                try {
                    im = Image.createImage("/mkudi_cell_menu.png");
                } catch (java.io.IOException ex) {
                    //do nothing
                    String msg = ex.getMessage();
                } finally {
                    if (addset ==0)
                        MainBridgelist.append(getDiags(), im);
                    else
                        MainBridgelist.set(addset, getDiags(),im);
                }
            }
        }
    }//


}
TOP

Related Classes of EMIDA.CATMainMidlet

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.