/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*
* This project is for TeleCASH Nigeria Consumer JAVA ME application
*/
package EMIDA;
import EMIDA.comm.ProgressControl;
import EMIDA.db.DataStoreFactory;
import EMIDA.db.RecordStoreImpl;
import java.util.*;
import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import org.netbeans.microedition.lcdui.SplashScreen;
import javax.microedition.io.ConnectionNotFoundException;
/**
* @author al
*/
public class CATMainMidlet extends MIDlet implements CommandListener {
private DataStoreFactory dataFactory = null;
protected RecordStoreImpl propertyStore = null;
protected RecordStoreImpl carriersStore = null;
protected RecordStoreImpl statesStore = null;
public Hashtable carriersInMemory = new Hashtable();
public Vector achaccountsInMemory = new Vector();
public Vector statesInMemory = new Vector();
private boolean midletPaused = false;
private Alert alert;
private String firstname = null;
private String lastname = null;
private String ACHSelectedAccountItem = null;
private String ACHID = null;
private String ACHDepositRecStartDate = null;
private String ACHDepositRecEndDate = null;
private String ACHOperations = Constants.ACHDEPOSIT;
private String passwordConfig = null;
/*
* Placeholder for messages on the ACH Main Menu
* Some messages that come back from the server, we will
* populate the ACHMsgstringitem and drive the consumer to that
* form.
*/
public String ACHMsg = "Select an operation";
/* 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 can override the RMS DB.
*/
String DBagentCellNumber = "";
String SavedPIN = "";
/*
HTTP materialprepareAndSendRequest
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="+Constants.sms_req;
String baseURL = "http://" + server + "/mwallet/smscontroller?";
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 overwritten with
//wallet commands
//over written by each operation
String SmsSend = "&sendSMS=false";
// set by form calling sendopform so back button can
// return to previous form. keep number same as mainbridgelist
// See mainbridgeList
int previousForm = -1; //used for consumer menu
/* What is the language. Client side only
Currently: English, Spanish
See JAD file and class file Languages
The title of the form will change when the language changes.
Example: Welcome to CAT Vx.x L=for language E=English, S=Spanish ....
So forth.
* Welcome to CAT Vx.x LE
* Welcome to CAT Vx.x LS
*
*/
/* 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;
boolean Selftopup=true; //can be over-ridden at top up selection.
//this affects modification of Sms_message_out
private String selectedCarrierName;
private String selectedCarrierId;
private int topUpOperationBackTo;
private int listCarriersBackTo;
private String ContactUsTitle;
private String ContactUsFirstName;
private String ContactUsLastName;
private String ContactUsEmailAddr;
private String ContactUsPrefeered;
private String Kyc_level = "1";// can be 1 for LITE, 2 for FULL
private String Carrier = "";//Customers selected carrier(if any)
private String Balance = "";//Balance is returned every time a response comes back
//Registration
private String regfname= "";
private String reglname = "";
private String regcountry = "1"; //United States
private String reglang="en";
private String regsecq = "";
private String regseca = "";
private String regsecword = "";
private String regtitle = "Mr.";
private String regaddr1 = "";
private String regaddr2 = "";
private String regcity = "";
private String regstate = "";
private String regzip="";
private String regemail ="";
private String regtz ="PDT";
private String regidtype ="1";
private String regidvalue="";
//////
//<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 billpaymenuBackCommand;
private Command backCommand3;
private Command billpaymenuOkCommand;
private Command TOPSelfokCommand;
private Command TOPSelfbackCommand;
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 AgentlistbackCommand;
private Command AgtTopokCommand;
private Command AgtTopbackCommand;
private Command AgtRegokCommand;
private Command AgtRegbackCommand;
private Command AgtLoadokCommand;
private Command AgtLoadbackCommand;
private Command AgtCashokCommand;
private Command AgtCashbackCommand;
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 AirtimeokCommand;
private Command AirtimebackCommand;
private Command AgtReghelpCommand;
private Command RegHelpokCommand;
private Command AboutokCommand;
private Command SupportokCommand;
private Command SupportcancelCommand;
private Command okCommandWayTopUp;
private Command TopupOtherbackCommand;
private Command ToupOtherokCommand;
private Command AbouthelpCommand;
private Command AboutbackCommand;
private Command backCommandListCarriersForm;
private Command itemCommand;
private Command backCommandWayTopUp;
private Command backCommandPreSelectCarrier;
private Command LocatorBack;
private Command LocatorOk;
private Command backCommandSettingsListForm;
private Command backCommandLanguageListForm;
private Command okCommand;
private Command backCommand1;
private Command CityBackCommand;
private Command StateBackCommand;
private Command StateOkCommand;
private Command ContactUsBackCommand;
private Command ContactUsNextCommand;
private Command ZipCodeOkCommand;
private Command ZipCodeBackCommand;
private Command CityOkCommand;
private Command RegbackCommand;
private Command ContactusBodyokCommand;
private Command ContactusBodybackCommand;
private Command regbackCommand2;
private Command regnextCommand2;
private Command UpgradePromptokCommand;
private Command UpgradePromptbackCommand;
private Command itemCommand1;
private Command RegnextCommand;
private Command regbackCommand3;
private Command InStorebackCommand;
private Command regbackCommand5;
private Command regokCommand4;
private Command cashinoutokCommand;
private Command ACHMainokCommand;
private Command ACHMainbackCommand;
private Command InStoreokCommand;
private Command regbackCommand4;
private Command regokCommand3;
private Command ACHAddAccountbackCommand;
private Command ACHAddAccountokCommand;
private Command ACHAccountsListbackCommand1;
private Command ACHOneTimeDepWithokCommand;
private Command ACHOneTimeDepWithbackCommand;
private Command ACHValidatebackCommand;
private Command ACHValidateokCommand;
private Command cashin_cashbackCommand;
private Command cashinoutbackCommand;
private Command ACHAccountsListbackCommand;
private Command cashin_cashokCommand;
private Command ACHSetRecurform3backCommand;
private Command ACHSetRecurcokCommand;
private Command ACHSetRecurbackCommand;
private Command ACHActiveMainokCommand;
private Command ACHActiveMainbackCommand;
private Command AskQuestionokCommand;
private Command ACHDelRecurbackCommand;
private Command ACHDelRecurokCommand;
private Command BPPayokCommand;
private Command BPPaybackCommand;
private Command ACHSetRecurform2okCommand;
private Command ACHSetRecurform2backCommand;
private Command ACHSetRecurform3okCommand;
private Form SignOnForm;
private TextField SOUsersCellPhonetextField;
private Spacer spacer6;
private ImageItem imageItem1;
private Spacer spacer5;
private TextField SOUserPIN;
private SplashScreen splashScreen;
private Form Sendmoneyform;
private TextField SENDAmounttextField;
private TextField SENDphonenumbertextField;
private Form Sendopform;
private StringItem SENDOPdatastringItem;
private Spacer spacer4;
private Form Withdrawcashform;
private TextField WITHAmounttextField1;
private Form NotImplform;
private ImageItem imageItem;
private Form paybillmenuform;
private ChoiceGroup billpaymenuchoiceGroup;
private Form TOPUPSelfform;
private TextField TopupSelfAmounttextField;
private Form Balanceform;
private TextField BALpintextField3;
private Form PINform;
private TextField CPconfirmNEWPINtextField;
private TextField CPnewPINtextField;
private TextField CPoldPINtextField;
private Form Commform;
private StringItem CommMsgstringItem;
private Form DepositCashform;
private TextField DepositAMTtextField;
private Form Historyform;
private StringItem HISCommentstringItem;
private List MainBridgelist;
private Form TopupSelectform;
private ChoiceGroup AirtimechoiceGroup;
private Form TOPUPOtherform;
private TextField TopupOtherMNumbertextField;
private TextField TopupOtherAmounttextField;
private Form Aboutform;
private Spacer spacer1;
private Spacer spacer2;
private ImageItem imageItem2;
private StringItem AboutCopyrightstringItem;
private Form Supportform;
private StringItem SupportMsgItem1;
private StringItem SupportMsgItem3;
private StringItem SupportMsgItem2;
private List WayTopUp;
private List ListCarriersListForm;
private List PreSelectCarrierListForm;
private List ListLocator;
private List LanguageListForm;
private Form CityForm;
private TextField CityTextField;
private List StateList;
private Form ContactSupportForm;
private ChoiceGroup ContactusPrefeeredchoiceGroup;
private TextField ContactusEmaillabel;
private TextField ContactusLnametextField;
private TextField ContactusFnametextField;
private ChoiceGroup ContactUsTitlechoiceGroup;
private Form ZipCodeForm;
private TextField ZipCodeTextField;
private Form Upgradeform;
private TextField regfirstnametextField;
private TextField reglastnametextField;
private ChoiceGroup regLanguagechoiceGroup;
private ChoiceGroup regsecqchoiceGroup;
private ChoiceGroup regCountrychoiceGroup;
private TextField regsecanswertextField;
private TextField regsecwordtextField;
private Form ContactSupportSubmitform;
private TextField ContactusBodytextField;
private TextField ContactusSubjtextField;
private Form UpgradePromptform;
private StringItem UpgradePromptstringItem;
private Form Upgradeform2;
private TextField regaddr1textField;
private TextField regaddr2textField;
private TextField regcitytextField;
private ChoiceGroup regstatechoiceGroup;
private ChoiceGroup regtitlechoiceGroup;
private Form Upgradeform3;
private TextField regemailtextField;
private ChoiceGroup regtzchoiceGroup;
private TextField regziptextField;
private ChoiceGroup regIDtypechoiceGroup;
private TextField regIDvaluetextField;
private Form InStoreform;
private TextField InStoreAmttextField;
private StringItem InStoreLabelstringItem;
private Form cashinoutform;
private ChoiceGroup cashinoutmenuchoiceGroup;
private Form ACHMainMenuform;
private StringItem ACHMsgstringItem;
private ChoiceGroup ACHMenuchoiceGroup;
private Form Upgradeform4;
private TextField regdobyeartextField;
private TextField regdobdaytextField;
private TextField regdobmonthtextField;
private StringItem stringItem;
private Form ACHAddAccountform;
private TextField ACHAddAccountLNAMEtextField;
private TextField ACHAddAccountFNAMEtextField;
private TextField AddACHRouteNumbertextField;
private TextField ACHAddAccountNumbertextField;
private StringItem ACHAddAccountstringItem;
private Form ACHOneTimeDepWithform;
private TextField ACHDepositAmtOnetextField;
private Form ACHValidateform;
private StringItem ACHValidateMsgstringItem;
private TextField ACHValidateAmt1textField;
private TextField ACHValidateAmt2textField;
private Form cashin_cashform;
private StringItem cashin_cashcommentstringItem2;
private StringItem cashin_cashcommentstringItem;
private List ListACHAccountsListform;
private Form ACHSetRecurform2;
private TextField ACHDepRecEndMonthtextField;
private TextField ACHDepRecEndDaytextField;
private TextField ACHDepRecEndYeartextField;
private Form ACHSetRecurform3;
private ChoiceGroup ACHDepRecFreqchoiceGroup;
private TextField ACHDepRecAmttextField;
private Form ACHSetRecurform;
private TextField ACHDepStartYeartextField;
private TextField ACHDepStartDaytextField;
private TextField ACHDepStartMonthtextField;
private Form ACHActiveAccountMenuform;
private ChoiceGroup ACHActiveMenuchoiceGroup;
private Form AskQuestionform;
private ChoiceGroup AskQuestionchoiceGroup;
private Form BPListRecurBillsform;
private Form BPListPaidBillsform;
private Form BPSetupRecform;
private Form BPPayABillform;
private StringItem BPPaystringItem;
private TextField BPPayAccountNumberrtextField;
private TextField BPPayAmounttextField;
private Image image2;
private Font font1;
private Ticker ticker1;
private Image image;
//</editor-fold>//GEN-END:|fields|0|
//</editor-fold>
/**
* The CATMainMidlet constructor.
*/
public CATMainMidlet() {
}
public void fillListCarriers() {
if ( ListCarriersListForm!=null){
ListCarriersListForm.deleteAll();
Utils.sortHashTableCarrierProviders(carriersInMemory, ListCarriersListForm);
}
}
/**
* The KYC_level (returned from a successful login) shows
* what type of customer WALLET the customer has.
* For Jaguar LITE account = 1
* FULL account = 2;
*
* This is important for the following reasons
* 1. If KYC_LEVEL = 1, show the upgrade menu item
* 2. If KYC_LEVEL = 1, drive consumer to upgrade form when
* they select operations CASH OUT and SEND MONEY
*/
public void updateKyc_level(String kyc) {
Kyc_level = kyc.trim();
}
public void updateConsumerData(String fname, String lname) {
if (fname !=null)
firstname = fname.trim();
if (lname !=null)
lastname = lname.trim();
}
public void updateCarrier(String carrier) {
//Customers selected carrier and id are returned after a successful login
Carrier = carrier; //raw data
int pos = carrier.indexOf(":");
if (pos !=-1) {
String carrierName = carrier.substring(0,pos);
String carrierId = carrier.substring(pos+1);
SetProperty(Constants.PROPERTY_CARRIER_ID, carrierId.trim());
SetProperty(Constants.PROPERTY_CARRIER_NAME, carrierName.trim());
}
}
public void updateBalance(String balance) {
Balance = balance.trim();
}
public String getPasswordConfig() {
return passwordConfig;
}
public void setPasswordConfig(String passwordConfig) {
this.passwordConfig = passwordConfig;
}
//<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
dataFactory = new DataStoreFactory();
this.propertyStore = dataFactory.makeRecordStoreImpl(Constants.DATA_STORE_PROPERTIES_NAME);
this.carriersStore = dataFactory.makeRecordStoreImpl(Constants.DATA_STORE_CARRIERS_NAME);
this.statesStore = dataFactory.makeRecordStoreImpl(Constants.DATA_STORE_STATES_NAME);
fillStatesDataBase();
String numCell = this.GetProperty(Constants.PROPERTY_CELL_NUM);
if ( numCell != null ){
DBagentCellNumber = numCell;
}
server = getAppProperty("EMIDA_APP_IPADDRESS");
agent_server = getAppProperty("EMIDA_APP_AGENT_IPADDRESS");
String useSSL = "0";
useSSL = getAppProperty("EMIDA_APP_SSL");
if (useSSL.startsWith("1"))
//baseURL = "https://" + server.trim() + "/mwallet/smscontroller?sms_req="+Constants.sms_req;
baseURL = "https://" + server.trim() + "/mwallet/smscontroller?";
else
//baseURL = "http://" + server.trim() + "/mwallet/smscontroller?sms_req="+Constants.sms_req;
baseURL = "http://" + server.trim() + "/mwallet/smscontroller?";
/* LANGUAGE_CHANGE */
Language = getAppProperty("EMIDA_APP_LANGUAGE");
String lang = GetProperty(Constants.PROPERTY_LANGUAGE);
if ( lang!=null){
Language = lang;
}
if (Language.toLowerCase().equals("english")) {
LangAbbrev = "E";
} else if (Language.toLowerCase().equals("spanish")) {
LangAbbrev = "S";
}
Lang = new Language(Language);
if ( lang == null ){
SetProperty(Constants.PROPERTY_LANGUAGE, Language);
}
//GEN-LINE:|0-initialize|1|0-postInitialize
// write post-initialize user code here
}//GEN-BEGIN:|0-initialize|2|
//</editor-fold>//GEN-END:|0-initialize|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: startMIDlet ">//GEN-BEGIN:|3-startMIDlet|0|3-preAction
/**
* Performs an action assigned to the Mobile Device - MIDlet Started point.
*/
public void startMIDlet() {//GEN-END:|3-startMIDlet|0|3-preAction
// write pre-action user code here
if (DBagentCellNumber.length() == 0)
switchDisplayable(null, getSignOnForm());
else
switchDisplayable(null, getSignOnForm());//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
if ( nextDisplayable == this.getTOPUPSelfform() ){
topUpOperationBackTo = 1;
this.getTOPUPSelfform().setTitle(this.selectedCarrierName);//setang("TOPUPform"));
this.TopupSelfAmounttextField.setLabel(setLang("TOPamounttextField3"));
this.getTOPUPSelfform().removeCommand(TOPSelfbackCommand);
this.TOPSelfbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);
this.getTOPUPSelfform().addCommand(TOPSelfbackCommand);
this.getDisplay().setCurrentItem(this.TopupSelfAmounttextField);
}
else if ( nextDisplayable == this.getTOPUPOtherform() ){
topUpOperationBackTo = 2;
this.getTOPUPOtherform().setTitle(this.selectedCarrierName); //setLang("TOPUPform"));
this.TopupOtherMNumbertextField.setLabel(setLang("TOPMNumbertextField4"));
this.TopupOtherAmounttextField.setLabel(setLang("TOPamounttextField3"));
this.getTOPUPOtherform().removeCommand(TopupOtherbackCommand);
this.TopupOtherbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);
this.getTOPUPOtherform().addCommand(this.TopupOtherbackCommand);
this.getDisplay().setCurrentItem(this.TopupOtherMNumbertextField);
}
else if ( nextDisplayable == this.getWayTopUp() ){
this.WayTopUp.setTitle(setLang("MENUTOPUP"));
WayTopUp.deleteAll();
WayTopUp.append(Lang.getText("toMyPhone"), null);
WayTopUp.append(Lang.getText("otherCellPhone"), null);
if (this.backCommandWayTopUp != null){
WayTopUp.removeCommand(backCommandWayTopUp);
backCommandWayTopUp = new Command(setLang("Back"), Command.OK, 1);
WayTopUp.addCommand(backCommandWayTopUp);
//getBackCommandWayTopUp().
}
}
else if ( nextDisplayable == this.getListCarriersListForm() ){
this.ListCarriersListForm.setTitle(setLang("SELECT_CARRIERS"));
if ( getBackCommandListCarriersForm() != null ){
this.getListCarriersListForm().removeCommand(backCommandListCarriersForm);
backCommandListCarriersForm = new Command(setLang("Back"), Command.BACK, 0);
this.getListCarriersListForm().addCommand(backCommandListCarriersForm);
}
}
else if ( nextDisplayable == this.getListACHAccountsListform() ){
this.ListACHAccountsListform.setTitle(setLang("ListACHAccountsListform"));
if ( !achaccountsInMemory.isEmpty()){
this.getListACHAccountsListform().deleteAll();
for(int i=0; i < achaccountsInMemory.size() ; i++ ){
ACHAccounts account = (ACHAccounts)achaccountsInMemory.elementAt(i);
this.getListACHAccountsListform().append(account.accountnumber + Constants.SPACE + account.status,null);
}
}
if ( getACHAccountsListbackCommand1() != null ){
this.getListACHAccountsListform().removeCommand(ACHAccountsListbackCommand1);
ACHAccountsListbackCommand1 = new Command(setLang("Back"), Command.BACK, 0);
this.getListACHAccountsListform().addCommand(ACHAccountsListbackCommand1);
}
}
else if ( nextDisplayable == this.getPreSelectCarrierListForm() ){
this.PreSelectCarrierListForm.setTitle(setLang("SELECT_CARRIERS"));
this.PreSelectCarrierListForm.deleteAll();
String myCarrier = getDefaultCarrier();
if ( !myCarrier.equals(Constants.NOT_AVAILABLE) ){
PreSelectCarrierListForm.append(myCarrier, null);
}
PreSelectCarrierListForm.append(setLang("OtherCarriers"), null);
if ( getBackCommandPreSelectCarrier() != null){
this.getPreSelectCarrierListForm().removeCommand(backCommandPreSelectCarrier);
backCommandPreSelectCarrier = new Command(setLang("Back"), Command.BACK, 0);
this.getPreSelectCarrierListForm().addCommand(backCommandPreSelectCarrier);
}
}
else if ( nextDisplayable == this.getLanguageListForm() ){
if ( GetProperty(Constants.PROPERTY_LANGUAGE).equals("ENGLISH"))
LanguageListForm.setSelectedFlags(new boolean[] { true, false });
else
LanguageListForm.setSelectedFlags(new boolean[] { false, true });
}
else if ( nextDisplayable == this.getSupportform() ){
this.getSupportform().setTitle(setLang("Support"));
if ( this.getSupportMsgItem1() != null ){
this.getSupportMsgItem1().setText(setLang("SupportMsg1"));
this.getSupportMsgItem2().setText(setLang("SupportMsg2"));
this.getSupportMsgItem3().setText(setLang("SupportMsg3"));
}
}
else if ( nextDisplayable == this.getAboutform() ){
this.getAboutform().setTitle(setLang("Aboutform"));
this.getAboutCopyrightstringItem().setText(setLang("Copyright"));
this.getAboutform().removeCommand(AboutbackCommand);
AboutbackCommand = new Command(setLang("Back"), Command.BACK, 0);
this.getAboutform().addCommand(AboutbackCommand);
this.getAboutform().removeCommand(AbouthelpCommand);
//AbouthelpCommand = new Command(setLang("Help"), "", Command.HELP, 0);
this.getAboutform().addCommand(AbouthelpCommand);
}
else if ( nextDisplayable == this.getStateList() ){
this.getStateList().setTitle(setLang("State"));
if ( statesInMemory!= null ){
for(int i=0; i < statesInMemory.size() ; i++ ){
State state = (State)statesInMemory.elementAt(i);
this.getStateList().append(state.name,null);
}
}
this.getStateList().removeCommand(StateBackCommand);
StateBackCommand = new Command(setLang("Back"), "", Command.BACK, 0);
this.getStateList().addCommand(StateBackCommand);
}
else if ( nextDisplayable == this.getCityForm() ){
String cityTitle = getStateList().getString(getStateList().getSelectedIndex());
this.getCityForm().setTitle(setLang("State")+ Constants.SPACE +cityTitle);
this.getCityForm().removeCommand(this.CityBackCommand);
this.CityBackCommand = new Command(setLang("Back"), Command.BACK, 0);
this.getCityForm().addCommand(this.CityBackCommand);
this.getCityForm().removeCommand(this.CityOkCommand);
this.CityOkCommand = new Command(setLang("Ok"), Command.OK, 0);
this.getCityForm().addCommand(this.CityOkCommand);
this.CityTextField.setLabel(setLang("City"));
}
else if ( nextDisplayable == this.getZipCodeForm() ){
this.getZipCodeForm().setTitle(setLang("ZipCode"));
this.getZipCodeForm().removeCommand(this.ZipCodeBackCommand);
this.getZipCodeForm().removeCommand(this.ZipCodeOkCommand);
ZipCodeBackCommand = new Command(setLang("Back"), Command.BACK, 0);
ZipCodeOkCommand = new Command(setLang("Ok"), Command.OK, 0);
this.getZipCodeForm().addCommand(this.ZipCodeBackCommand);
this.getZipCodeForm().addCommand(this.ZipCodeOkCommand);
}
else if ( nextDisplayable == this.getListLocator() ){
this.getListLocator().setTitle(setLang("MENULOCATOR"));
ListLocator.set(0,setLang("ZipCode"), null);
ListLocator.set(1,setLang("State/City"), null);
this.getListLocator().removeCommand(LocatorBack);
LocatorBack = new Command(setLang("Back"), Command.BACK, 0);
this.getListLocator().addCommand(LocatorBack);
}
else if ( nextDisplayable == this.getPINform() ){
this.getPINform().setTitle(setLang("PINform"));
this.getPINform().removeCommand(CPokCommand);
this.getPINform().removeCommand(CPbackCommand);
CPbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);
CPokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);
this.getPINform().addCommand(CPokCommand);
this.getPINform().addCommand(CPbackCommand);
CPoldPINtextField.setLabel(setLang("CPoldPINtextField"));
CPnewPINtextField.setLabel(setLang("CPnewPINtextField"));
CPconfirmNEWPINtextField.setLabel(setLang("CPconfirmNEWPINtextField"));
this.getDisplay().setCurrentItem(this.CPoldPINtextField);
}
else if ( nextDisplayable == this.getSendmoneyform() ){
this.getSendmoneyform().setTitle(setLang("Sendmoneyform"));
getSENDphonenumbertextField().setLabel(setLang("SENDphonenumbertextField"));
getSENDAmounttextField().setLabel(setLang("SENDAmounttextField"));
this.getSendmoneyform().removeCommand(SENDbackCommand);
this.getSendmoneyform().removeCommand(SENDokCommand);
SENDbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);
SENDokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);
this.getSendmoneyform().addCommand(SENDokCommand);
this.getSendmoneyform().addCommand(SENDbackCommand);
}
else if ( nextDisplayable == this.getWithdrawcashform() ){
this.getWithdrawcashform().setTitle(setLang("Withdrawcashform"));
getWITHAmounttextField1().setLabel(setLang("WITHAmounttextField1"));
this.getWithdrawcashform().removeCommand(WITHbackCommand);
this.getWithdrawcashform().removeCommand(WITHokCommand);
WITHbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);
WITHokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);
this.getWithdrawcashform().addCommand(WITHokCommand);
this.getWithdrawcashform().addCommand(WITHbackCommand);
} else if ( nextDisplayable == this.getInStoreform() ){
int ii = 0;
}
}//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 == ACHActiveAccountMenuform) {//GEN-BEGIN:|7-commandAction|1|779-preAction
if (command == ACHActiveMainbackCommand) {//GEN-END:|7-commandAction|1|779-preAction
// write pre-action user code here
switchDisplayable(null, getListACHAccountsListform());//GEN-LINE:|7-commandAction|2|779-postAction
// write post-action user code here
} else if (command == ACHActiveMainokCommand) {//GEN-LINE:|7-commandAction|3|782-preAction
// write pre-action user code here
//this form is used for both deposits and withdrawals
int choice = ACHActiveMenuchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),ACHActiveAccountMenuform);
return;
}
//ALBO
switch (choice) {
case 0://One time deposit - both deposit and withdrawal
switchDisplayable(null, getACHOneTimeDepWithform());
break;
case 1://Recurring deposit or wihdrawal SETUP
//check to see if this account is recurring first
if (isACHRecurringAvailable(ACHOperations))
ShowMsg(setLang("ACHAccountIsRecurring"),ACHActiveAccountMenuform);
else
switchDisplayable(null, getACHSetRecurform());
break;
case 2://Delete a Recurring deposit or withdrawal
//check to see if this account is recurring
if (!isACHRecurringAvailable(ACHOperations))
ShowMsg(setLang("ACHAccountNotRecurring"),ACHActiveAccountMenuform);
else {
HumanCmd = setLang("ACHDelMsgstringItem");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
if (ACHOperations.startsWith(Constants.ACHWITHDRAWAL)) {
Sms_message_out = Constants.smsActionACHWithdrawRecDelete + SavedPIN +
Constants.SPACE + ACHID;
SmsSend = buildSMSParam(Constants.smsActionACHWithdrawRecDelete);
} else {
Sms_message_out = Constants.smsActionACHDepositRecDelete + SavedPIN +
Constants.SPACE + ACHID;
SmsSend = buildSMSParam(Constants.smsActionACHDepositRecDelete);
}
switchDisplayable(null, getSendopform());
}
break;
case 3://delete account
HumanCmd = setLang("ACHDeleteAccount");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
//delete ach
Sms_message_out = Constants.smsActionDeleteACHAccount + SavedPIN +
Constants.SPACE + ACHID;
SmsSend = buildSMSParam(Constants.smsActionDeleteACHAccount);
switchDisplayable(null, getSendopform());
break;
}//
//GEN-LINE:|7-commandAction|4|782-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|5|748-preAction
} else if (displayable == ACHAddAccountform) {
if (command == ACHAddAccountbackCommand) {//GEN-END:|7-commandAction|5|748-preAction
// write pre-action user code here
switchDisplayable(null, getACHMainMenuform());//GEN-LINE:|7-commandAction|6|748-postAction
// write post-action user code here
} else if (command == ACHAddAccountokCommand) {//GEN-LINE:|7-commandAction|7|750-preAction
// write pre-action user code here
String acctnumber = ACHAddAccountNumbertextField.getString();
String routenumber = AddACHRouteNumbertextField.getString();
String fname = ACHAddAccountFNAMEtextField.getString();
String lname = ACHAddAccountLNAMEtextField.getString();
if (acctnumber.length() == 0 || routenumber.length() == 0
|| fname.length() == 0 || lname.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHAddAccountform);
return;
}
if (Utils.isRoutingNumberValid(routenumber) == -1) {
ShowMsg(setLang("ACH_ROUTING_DIGITS_ERROR_MSG"),ACHAddAccountform);
return;
}
if (Utils.isAccountNumberValid(acctnumber) == -1) {
ShowMsg(setLang("ACH_ACCOUNTNUMBER_DIGITS_ERROR_MSG"),ACHAddAccountform);
return;
}
HumanCmd = setLang("SEND_MSG_ADD_ACH_ACCOUNT");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
String firstName = fname.replace(Constants.SPACE,Constants.DASH);
String lastName = lname.replace(Constants.SPACE,Constants.DASH);
Sms_message_out = Constants.smsActionAddAccount +
Constants.SPACE + SavedPIN +
Constants.SPACE + acctnumber +
Constants.SPACE + routenumber +
Constants.SPACE + fname +
Constants.SPACE + lname;
SmsSend = buildSMSParam(Constants.smsActionAddAccount);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|8|750-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|9|697-preAction
} else if (displayable == ACHMainMenuform) {
if (command == ACHMainbackCommand) {//GEN-END:|7-commandAction|9|697-preAction
// write pre-action user code here
switchDisplayable(null, getCashinoutform());//GEN-LINE:|7-commandAction|10|697-postAction
// write post-action user code here
} else if (command == ACHMainokCommand) {//GEN-LINE:|7-commandAction|11|699-preAction
// write pre-action user code here
ACHMsgstringItem.setText(ACHMsg);
//GEN-LINE:|7-commandAction|12|699-postAction
// write post-action user code here
int choice = ACHMenuchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),ACHMainMenuform);
return;
}
switch (choice) {
case 0://Retrieve accounts
//HumanCmd = " You want to display your ACH Accounts";
HumanCmd = setLang("ACHListAccountsMainPrompt");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
//check to see the list was already retrieved and ask the
//user if they would like to view it
if ( !achaccountsInMemory.isEmpty()){
switchDisplayable(null, getAskQuestionform());
} else {
Sms_message_out = Constants.smsActionListAccounts + SavedPIN;
SmsSend = buildSMSParam(Constants.smsActionListAccounts);
switchDisplayable(null, getSendopform());
}
break;
case 1://Create an account
if (ACHAddAccountFNAMEtextField != null)
ACHAddAccountFNAMEtextField.setString(firstname);
if (ACHAddAccountLNAMEtextField !=null)
ACHAddAccountLNAMEtextField.setString(lastname);
switchDisplayable(null, getACHAddAccountform());
break;
}//
}//GEN-BEGIN:|7-commandAction|13|766-preAction
} else if (displayable == ACHOneTimeDepWithform) {
if (command == ACHOneTimeDepWithbackCommand) {//GEN-END:|7-commandAction|13|766-preAction
// write pre-action user code here
switchDisplayable(null, getACHActiveAccountMenuform());//GEN-LINE:|7-commandAction|14|766-postAction
// write post-action user code here
} else if (command == ACHOneTimeDepWithokCommand) {//GEN-LINE:|7-commandAction|15|768-preAction
// write pre-action user code here
//this form is used for both ach deposit and withdrawl
String amt1 = ACHDepositAmtOnetextField.getString();
if (amt1.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHOneTimeDepWithform);
return;
}
boolean valid = Utils.verifyAmount(amt1);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),ACHOneTimeDepWithform);
return;
}
valid = Utils.checkLegalAmount(amt1);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),ACHOneTimeDepWithform);
return;
}
if (ACHOperations.startsWith(Constants.ACHWITHDRAWAL)) {
HumanCmd = setLang("ACHOnetimeWithdrawal");
Sms_message_out = Constants.smsActionWithdrawOnce + SavedPIN +
Constants.SPACE + ACHID +
Constants.SPACE + amt1;
SmsSend = buildSMSParam(Constants.smsActionWithdrawOnce);
} else {
HumanCmd = setLang("ACHOnetimeDeposit");
Sms_message_out = Constants.smsActionDepositOnce + SavedPIN +
Constants.SPACE + ACHID +
Constants.SPACE + amt1;
SmsSend = buildSMSParam(Constants.smsActionDepositOnce);
}
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|16|768-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|17|786-preAction
} else if (displayable == ACHSetRecurform) {
if (command == ACHSetRecurbackCommand) {//GEN-END:|7-commandAction|17|786-preAction
// write pre-action user code here
switchDisplayable(null, getACHActiveAccountMenuform());//GEN-LINE:|7-commandAction|18|786-postAction
// write post-action user code here
} else if (command == ACHSetRecurcokCommand) {//GEN-LINE:|7-commandAction|19|789-preAction
// write pre-action user code here
// This form is used for both ach deposit and recurring
//amount
String month = ACHDepStartMonthtextField.getString().trim();
if (month.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform);
return;
}
String day = ACHDepStartDaytextField.getString().trim();
if (day.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform);
return;
}
String year = ACHDepStartYeartextField.getString().trim();
if (year.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform);
return;
}
if (!Utils.containsOnlyNumbers(month)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform);
return;
}
if (!Utils.containsOnlyNumbers(day)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform);
return;
}
if (!Utils.containsOnlyNumbers(year)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform);
return;
}
if (month.length() >2) {
ShowMsg(setLang("MONTH_ERROR"),ACHSetRecurform);
return;
}
if (day.length() >2) {
ShowMsg(setLang("DAY_ERROR"),ACHSetRecurform);
return;
}
if (year.length() !=4) {
ShowMsg(setLang("YEAR_ERROR2"),ACHSetRecurform);
return;
}
int imonth = Integer.parseInt(month);
int iday = Integer.parseInt(day);
int iyear = Integer.parseInt(year);
if (iyear < 2013) {
ShowMsg(setLang("YEAR_ERROR"),ACHSetRecurform);
return;
}
if (imonth < 1 || imonth > 12) {
ShowMsg(setLang("MONTH_ERROR2"),ACHSetRecurform);
return;
}
if (iday < 1 || iday > 31) {
ShowMsg(setLang("DAY_ERROR2"),ACHSetRecurform);
return;
}
ACHDepositRecStartDate = month + "-" + day + "-" + year;
switchDisplayable(null, getACHSetRecurform2());//GEN-LINE:|7-commandAction|20|789-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|21|837-preAction
} else if (displayable == ACHSetRecurform2) {
if (command == ACHSetRecurform2backCommand) {//GEN-END:|7-commandAction|21|837-preAction
// write pre-action user code here
switchDisplayable(null, getACHOneTimeDepWithform());//GEN-LINE:|7-commandAction|22|837-postAction
// write post-action user code here
} else if (command == ACHSetRecurform2okCommand) {//GEN-LINE:|7-commandAction|23|839-preAction
// write pre-action user code here
// This form is used for both ach deposit and recurring
//amount
String month = ACHDepRecEndMonthtextField.getString().trim();
if (month.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform2);
return;
}
String day = ACHDepRecEndDaytextField.getString().trim();
if (day.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform2);
return;
}
String year = ACHDepRecEndYeartextField.getString().trim();
if (year.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform2);
return;
}
if (!Utils.containsOnlyNumbers(month)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform2);
return;
}
if (!Utils.containsOnlyNumbers(day)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform2);
return;
}
if (!Utils.containsOnlyNumbers(year)) {
ShowMsg(setLang("NUMERIC_ONLY"),ACHSetRecurform2);
return;
}
if (month.length() >2) {
ShowMsg(setLang("MONTH_ERROR"),ACHSetRecurform2);
return;
}
if (day.length() >2) {
ShowMsg(setLang("DAY_ERROR"),ACHSetRecurform2);
return;
}
if (year.length() !=4) {
ShowMsg(setLang("YEAR_ERROR2"),ACHSetRecurform2);
return;
}
int imonth = Integer.parseInt(month);
int iday = Integer.parseInt(day);
int iyear = Integer.parseInt(year);
if (iyear < 2013) {
ShowMsg(setLang("YEAR_ERROR"),ACHSetRecurform2);
return;
}
if (imonth < 1 || imonth > 12) {
ShowMsg(setLang("MONTH_ERROR2"),ACHSetRecurform2);
return;
}
if (iday < 1 || iday > 31) {
ShowMsg(setLang("DAY_ERROR2"),ACHSetRecurform2);
return;
}
ACHDepositRecEndDate = month + "-" + day + "-" + year;
switchDisplayable(null, getACHSetRecurform3());//GEN-LINE:|7-commandAction|24|839-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|25|832-preAction
} else if (displayable == ACHSetRecurform3) {
if (command == ACHSetRecurform3backCommand) {//GEN-END:|7-commandAction|25|832-preAction
// write pre-action user code here
switchDisplayable(null, getACHSetRecurform2());//GEN-LINE:|7-commandAction|26|832-postAction
// write post-action user code here
} else if (command == ACHSetRecurform3okCommand) {//GEN-LINE:|7-commandAction|27|848-preAction
// write pre-action user code
// This form is used for both ach deposit and recurring
int choice = ACHDepRecFreqchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),ACHSetRecurform3);
return;
}
String freq = "7";
switch (choice) {
case 0://freq 7 days
break;
case 1://30
freq = "30";
break;
}
//Instance Name ACHDepRecAmttextField
String amt = ACHDepRecAmttextField.getString();
if (amt.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4"),ACHSetRecurform3);
return;
}
boolean valid = Utils.verifyAmount(amt);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),ACHSetRecurform3);
return;
}
valid = Utils.checkLegalAmount(amt);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),ACHSetRecurform3);
return;
}
if (ACHOperations.startsWith(Constants.ACHWITHDRAWAL)) {
HumanCmd = setLang("SubmitRecuWithdraw");
Sms_message_out = Constants.smsActionACHWithdrawalRec + SavedPIN +
Constants.SPACE + ACHID +
Constants.SPACE + ACHDepositRecStartDate + Constants.SPACE +
ACHDepositRecEndDate + Constants.SPACE + freq +
Constants.SPACE + amt;
SmsSend = buildSMSParam(Constants.smsActionACHWithdrawalRec);
} else {
HumanCmd = setLang("SubmitRecuDeposit");
Sms_message_out = Constants.smsActionDepositRecurring + SavedPIN +
Constants.SPACE + ACHID +
Constants.SPACE + ACHDepositRecStartDate + Constants.SPACE +
ACHDepositRecEndDate + Constants.SPACE + freq +
Constants.SPACE + amt;
SmsSend = buildSMSParam(Constants.smsActionDepositRecurring);
}
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|28|848-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|29|755-preAction
} else if (displayable == ACHValidateform) {
if (command == ACHValidatebackCommand) {//GEN-END:|7-commandAction|29|755-preAction
// write pre-action user code here
switchDisplayable(null, getListACHAccountsListform());//GEN-LINE:|7-commandAction|30|755-postAction
// write post-action user code here
} else if (command == ACHValidateokCommand) {//GEN-LINE:|7-commandAction|31|757-preAction
// write pre-action user code here
String amt1 = ACHValidateAmt1textField.getString();
String amt2 = ACHValidateAmt2textField.getString();
if (amt1.length() == 0 || amt2.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ACHValidateform);
return;
}
boolean valid = Utils.verifyAmount(amt1);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),ACHValidateform);
return;
}
valid = Utils.verifyAmount(amt2);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),ACHValidateform);
return;
}
valid = Utils.checkLegalAmount(amt1);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),ACHValidateform);
return;
}
valid = Utils.checkLegalAmount(amt2);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),ACHValidateform);
return;
}
HumanCmd = setLang("AchValidateMsg");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionVerifyAccount + SavedPIN +
Constants.SPACE + ACHID +
Constants.SPACE + amt1 + Constants.SPACE + amt2;
SmsSend = buildSMSParam(Constants.smsActionVerifyAccount);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|32|757-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|33|330-preAction
} else if (displayable == Aboutform) {
if (command == AboutbackCommand) {//GEN-END:|7-commandAction|33|330-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|34|330-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|35|881-preAction
} else if (displayable == AskQuestionform) {
if (command == AskQuestionokCommand) {//GEN-END:|7-commandAction|35|881-preAction
// write pre-action user code here
int choice = AskQuestionchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),AskQuestionform);
return;
}
switch (choice) {
case 0://Show existing ACH accounts that are in memory
//HumanCmd = " You want to display your ACH Accounts";
switchDisplayable(null, getListACHAccountsListform());
break;
case 1: //Retrieve ACH accounts from memory
Sms_message_out = Constants.smsActionListAccounts + SavedPIN;
SmsSend = buildSMSParam(Constants.smsActionListAccounts);
switchDisplayable(null, getSendopform());
break;
}
//GEN-LINE:|7-commandAction|36|881-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|37|861-preAction
} else if (displayable == BPPayABillform) {
if (command == BPPaybackCommand) {//GEN-END:|7-commandAction|37|861-preAction
// write pre-action user code here
switchDisplayable(null, getPaybillmenuform());//GEN-LINE:|7-commandAction|38|861-postAction
// write post-action user code here
} else if (command == BPPayokCommand) {//GEN-LINE:|7-commandAction|39|863-preAction
// write pre-action user code here
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|40|863-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|41|108-preAction
} else if (displayable == Balanceform) {
if (command == BALbackCommand) {//GEN-END:|7-commandAction|41|108-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());
//GEN-LINE:|7-commandAction|42|108-postAction
// write post-action user code here
} else if (command == BALokCommand) {//GEN-LINE:|7-commandAction|43|111-preAction
// write pre-action user code here
String pin = BALpintextField3.getString();
if (pin.length() == 0) {
ShowMsg(setLang("SEND_MSG10") ,Balanceform);
return;
}
boolean bStatus = Utils.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 = Constants.smsActionBal + pin;
}
SmsSend = buildSMSParam(Constants.smsActionBal);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|44|111-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|45|448-preAction
} else if (displayable == CityForm) {
if (command == CityBackCommand) {//GEN-END:|7-commandAction|45|448-preAction
// write pre-action user code here
switchDisplayable(null, getStateList());//GEN-LINE:|7-commandAction|46|448-postAction
// write post-action user code here
} else if (command == CityOkCommand) {//GEN-LINE:|7-commandAction|47|451-preAction
// write pre-action user code here
String state = this.getStateList().getString(getStateList().getSelectedIndex());
String city = this.getCityTextField().getString();
if ( statesInMemory!= null ){
for(int i=0; i < statesInMemory.size() ; i++ ){
State stateObj = (State)statesInMemory.elementAt(i);
if ( stateObj.name.equals(state)){
state = stateObj.code;
}
}
}
if ( city.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4") ,CityForm);
return;
}
String addressType = getAppProperty("EMIDA_APP_LOCATION_TYPE_CITY");
HumanCmd = setLang("locator_msg1") + state +"/"+ city;
if ( city.indexOf(Constants.SPACE ) != -1 ){
city = city.replace(Constants.SPACE , Constants.DASH);
}
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionLocations + "city" +
Constants.SPACE + "00000" +
Constants.SPACE + state +
Constants.SPACE + city;
SmsSend = buildSMSParam(Constants.smsActionLocations);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|48|451-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|49|144-preAction
} else if (displayable == Commform) {
if (command == CommOkCommand) {//GEN-END:|7-commandAction|49|144-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());
//GEN-LINE:|7-commandAction|50|144-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|51|474-preAction
} else if (displayable == ContactSupportForm) {
if (command == ContactUsBackCommand) {//GEN-END:|7-commandAction|51|474-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|52|474-postAction
// write post-action user code here
} else if (command == ContactUsNextCommand) {//GEN-LINE:|7-commandAction|53|472-preAction
// write pre-action user code here
//Title
int choice = ContactUsTitlechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),ContactSupportForm);
return;
}
String title ="Mr.";
switch (choice) {
case 0://Mr.
title = "Mr.";
break;
case 1://Mrs.
title = "Mrs.";
break;
case 2://Ms.
title = "Ms.";
break;
case 3://Dr.
title = "Dr.";
break;
case 4://Chief.
title = "Chief.";
break;
}
//Firstname
String fname = ContactusFnametextField.getString();
//LastName
String lname = ContactusLnametextField.getString();
//EMAIL
String email = ContactusEmaillabel.getString();
if (fname.length() == 0 || lname.length() == 0
|| email.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ContactSupportForm);
return;
}
if (!Utils.validMail(email)) {
ShowMsg(setLang("regemail"),ContactSupportForm);
return;
}
//Preferred contact
choice = ContactusPrefeeredchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),ContactSupportForm);
return;
}
String preferred = "1"; //mobilenumber
switch (choice) {
case 0://email
preferred = "2";
break;
case 1://phone
preferred = "1";
break;
}
ContactUsTitle = title;
ContactUsFirstName = fname.replace(Constants.DASH, Constants.POUND);
ContactUsLastName = lname.replace(Constants.DASH, Constants.POUND);
ContactUsEmailAddr = email;
ContactUsPrefeered = preferred;
switchDisplayable(null, getContactSupportSubmitform());//GEN-LINE:|7-commandAction|54|472-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|55|499-preAction
} else if (displayable == ContactSupportSubmitform) {
if (command == ContactusBodybackCommand) {//GEN-END:|7-commandAction|55|499-preAction
// write pre-action user code here
switchDisplayable(null, getContactSupportForm());//GEN-LINE:|7-commandAction|56|499-postAction
// write post-action user code here
} else if (command == ContactusBodyokCommand) {//GEN-LINE:|7-commandAction|57|497-preAction
// write pre-action user code here
//Subject
String subj = ContactusSubjtextField.getString();
//LastName
String body = ContactusBodytextField.getString();
if (subj.length() == 0 || body.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),ContactSupportSubmitform);
return;
}
String subject = subj.replace(Constants.DASH, Constants.POUND);
String comment = body.replace(Constants.DASH, Constants.POUND);
Sms_message_out = Constants.smsActionSupport + SavedPIN +
Constants.DASH + ContactUsTitle +
Constants.DASH + ContactUsFirstName +
Constants.DASH + ContactUsLastName +
Constants.DASH + ContactUsEmailAddr +
Constants.DASH + DBagentCellNumber +
Constants.DASH + ContactUsPrefeered +
Constants.DASH + subject +
Constants.DASH + comment;
SmsSend = buildSMSParam(Constants.smsActionSupport);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|58|497-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|59|241-preAction
} else if (displayable == DepositCashform) {
if (command == DepositbackCommand) {//GEN-END:|7-commandAction|59|241-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|60|241-postAction
// write post-action user code here
} else if (command == DepositokCommand) {//GEN-LINE:|7-commandAction|61|239-preAction
// write pre-action user code here
String amount = DepositAMTtextField.getString();
if (amount.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),DepositCashform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),DepositCashform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),DepositCashform);
return;
}
//HumanCmd = " You want to deposit " + amount + " into your account?";
HumanCmd = setLang("SEND_MSG7") + amount + setLang("SEND_MSG8");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionDeposit + SavedPIN + Constants.SPACE + amount;
SmsSend = buildSMSParam(Constants.smsActionDeposit);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|62|239-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|63|281-preAction
} else if (displayable == Historyform) {
if (command == HISbackCommand) {//GEN-END:|7-commandAction|63|281-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|64|281-postAction
// write post-action user code here
} else if (command == HISokCommand) {//GEN-LINE:|7-commandAction|65|283-preAction
// write pre-action user code here
HumanCmd = setLang("SEND_MSG34");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionHistory + SavedPIN;
SmsSend = buildSMSParam(Constants.smsActionHistory);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|66|283-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|67|688-preAction
} else if (displayable == InStoreform) {
if (command == InStorebackCommand) {//GEN-END:|7-commandAction|67|688-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|68|688-postAction
// write post-action user code here
} else if (command == InStoreokCommand) {//GEN-LINE:|7-commandAction|69|690-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|70|690-postAction
// write post-action user code here
String amount = InStoreAmttextField.getString();
if (amount.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),InStoreform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",DepositCashform);
ShowMsg(setLang("SEND_MSG37"),InStoreform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",DepositCashform);
ShowMsg(setLang("SEND_MSG17"),InStoreform);
return;
}
HumanCmd = setLang("InStoreConfirm") + amount;
//Please confirm your wallet debit of ...
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionInStore + SavedPIN + Constants.SPACE + amount;
SmsSend = buildSMSParam(Constants.smsActionInStore);
switchDisplayable(null, getSendopform());
}//GEN-BEGIN:|7-commandAction|71|392-preAction
} else if (displayable == LanguageListForm) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|71|392-preAction
// write pre-action user code here
LanguageListFormAction();//GEN-LINE:|7-commandAction|72|392-postAction
// write post-action user code here
switchDisplayable(null, getMainBridgelist());
} else if (command == backCommandLanguageListForm) {//GEN-LINE:|7-commandAction|73|397-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|74|397-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|75|738-preAction
} else if (displayable == ListACHAccountsListform) {
if (command == ACHAccountsListbackCommand1) {//GEN-END:|7-commandAction|75|738-preAction
// write pre-action user code here
switchDisplayable(null, getACHMainMenuform());//GEN-LINE:|7-commandAction|76|738-postAction
// write post-action user code here
} else if (command == List.SELECT_COMMAND) {//GEN-LINE:|7-commandAction|77|730-preAction
// write pre-action user code here
ListACHAccountsListformAction();//GEN-LINE:|7-commandAction|78|730-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|79|372-preAction
} else if (displayable == ListCarriersListForm) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|79|372-preAction
// write pre-action user code here
ListCarriersListFormAction();//GEN-LINE:|7-commandAction|80|372-postAction
// write post-action user code here
} else if (command == backCommandListCarriersForm) {//GEN-LINE:|7-commandAction|81|375-preAction
// write pre-action user code here
if ( this.listCarriersBackTo == 0 ){
this.switchDisplayable(null, this.getWayTopUp() );
}
else if (this.listCarriersBackTo == 1 ){
this.switchDisplayable(null, this.getPreSelectCarrierListForm());
}
switchDisplayable(null, getTopupSelectform());//GEN-LINE:|7-commandAction|82|375-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|83|409-preAction
} else if (displayable == ListLocator) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|83|409-preAction
// write pre-action user code here
ListLocatorAction();//GEN-LINE:|7-commandAction|84|409-postAction
// write post-action user code here
} else if (command == LocatorBack) {//GEN-LINE:|7-commandAction|85|416-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|86|416-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|87|258-preAction
} else if (displayable == MainBridgelist) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|87|258-preAction
// write pre-action user code here
MainBridgelistAction();//GEN-LINE:|7-commandAction|88|258-postAction
// write post-action user code here
} else if (command == mainListExitCommand) {//GEN-LINE:|7-commandAction|89|262-preAction
// write pre-action user code here
exitMIDlet();//GEN-LINE:|7-commandAction|90|262-postAction
// write post-action user code here
} else if (command == mainmenulist_selectbutton) {//GEN-LINE:|7-commandAction|91|272-preAction
// write pre-action user code here
MainBridgelistAction();//GEN-LINE:|7-commandAction|92|272-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|93|81-preAction
} else if (displayable == NotImplform) {
if (command == backCommand3) {//GEN-END:|7-commandAction|93|81-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|94|81-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|95|117-preAction
} else if (displayable == PINform) {
if (command == CPbackCommand) {//GEN-END:|7-commandAction|95|117-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());
//GEN-LINE:|7-commandAction|96|117-postAction
// write post-action user code here
} else if (command == CPokCommand) {//GEN-LINE:|7-commandAction|97|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;
}
if (newpin.compareTo(confirmpin) != 0) {
ShowMsg(setLang("SEND_MSG3"),PINform);
return;
}
int resultPwdCheck = Utils.checkPIN(newpin,passwordConfig);
if (resultPwdCheck==1) {
ShowMsg(setLang("SEND_MSG_PIN_LENGTH") ,PINform);
return;
} else if (resultPwdCheck==2) {
ShowMsg(setLang("SEND_MSG_PIN_SPECIAL_CHAR") ,PINform);
return;
} else if (resultPwdCheck==3) {
ShowMsg(setLang("SEND_MSG_PIN_LOWER_CASE") ,PINform);
return;
} else if (resultPwdCheck==4) {
ShowMsg(setLang("SEND_MSG_PIN_UPPER_CASE") ,PINform);
return;
} else if (resultPwdCheck==5) {
ShowMsg(setLang("SEND_MSG_PIN_NUMBER") ,PINform);
return;
} else if (resultPwdCheck==6) {
ShowMsg(setLang("SEND_MSG_PIN_REPETITION") ,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 = Constants.smsActionPin + oldpin +
Constants.SPACE + newpin +
Constants.SPACE + confirmpin;
} else {
Sms_message_out = Constants.smsActionApin + oldpin +
Constants.SPACE + newpin +
Constants.SPACE + confirmpin;
}
SmsSend = buildSMSParam(Constants.smsActionPin);
UseAgentPIN =0;
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|98|120-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|99|364-preAction
} else if (displayable == PreSelectCarrierListForm) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|99|364-preAction
// write pre-action user code here
PreSelectCarrierListFormAction();//GEN-LINE:|7-commandAction|100|364-postAction
// write post-action user code here
} else if (command == backCommandPreSelectCarrier) {//GEN-LINE:|7-commandAction|101|367-preAction
// write pre-action user code here
switchDisplayable(null, getWayTopUp());//GEN-LINE:|7-commandAction|102|367-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|103|52-preAction
} else if (displayable == Sendmoneyform) {
if (command == SENDbackCommand) {//GEN-END:|7-commandAction|103|52-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|104|52-postAction
// write post-action user code here
} else if (command == SENDokCommand) {//GEN-LINE:|7-commandAction|105|55-preAction
// write pre-action user code here
String number = SENDphonenumbertextField.getString();
String amount = SENDAmounttextField.getString();
if (number.length() == 0 || amount.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4"),Sendmoneyform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",Sendmoneyform);
ShowMsg(setLang("SEND_MSG37"),Sendmoneyform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",Sendmoneyform);
ShowMsg(setLang("SEND_MSG17"),Sendmoneyform);
return;
}
number = Utils.stripPlus(number);
//HumanCmd = "You are sending money: "+amount+ " to "+number;
HumanCmd = setLang("SEND_MSG1");
HumanCmd = HumanCmd + Constants.SPACE + number;
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionSendMoney + SavedPIN +
Constants.SPACE + number +
Constants.SPACE + amount;
SmsSend = buildSMSParam(Constants.smsActionSendMoney);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|106|55-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|107|65-preAction
} else if (displayable == Sendopform) {
if (command == SENDOPCommand) {//GEN-END:|7-commandAction|107|65-preAction
//instant comm class....send
this.prepareAndSendRequest();
//GEN-LINE:|7-commandAction|108|65-postAction
} else if (command == SENDOPbackCommand) {//GEN-LINE:|7-commandAction|109|67-preAction
// write pre-action user code here
/*
* The requirements are to always clear the PIN field when
* a user presses the back button
*/
if (previousForm != -1) {
switch (previousForm) {
case 0://send money
switchDisplayable(null, getSendmoneyform());
break;
case 1://withdraw cash
switchDisplayable(null, getWithdrawcashform());
break;
case 2://deposit
switchDisplayable(null, getDepositCashform());
break;
case 3://pay bill
switchDisplayable(null, getPaybillmenuform());
break;
case 4://top up
if ( topUpOperationBackTo == 1 ){
switchDisplayable(null, getTOPUPSelfform());
}
else {
switchDisplayable(null, getTOPUPOtherform());
}
break;
case 5://instore
switchDisplayable(null, getInStoreform());
break;
case 6://cash in out
switchDisplayable(null, getCashinoutform());
break;
case 7://check balance
//switchDisplayable(null, getBalanceform());
switchDisplayable(null, getMainBridgelist());
break;
case 8://history
if (HISCommentstringItem !=null) {
HISCommentstringItem.setText("");
}
switchDisplayable(null, getHistoryform());
break;
case 9://locator
switchDisplayable(null, getListLocator());
break;
case 10://change pin
if (CPoldPINtextField !=null){
CPoldPINtextField.setString("");
}
if (CPnewPINtextField !=null){
CPnewPINtextField.setString("");
}
if (CPconfirmNEWPINtextField !=null){
CPconfirmNEWPINtextField.setString("");
}
switchDisplayable(null, getPINform());
break;
case 11://change language
switchDisplayable(null, getLanguageListForm());
break;
case 12://about
switchDisplayable(null, getAboutform());
break;
//case 12://upgrade
// switchDisplayable(null, getUpgradePromptform());
// break;
default:
switchDisplayable(null, getMainBridgelist());
break;
}///switch
}
//GEN-LINE:|7-commandAction|110|67-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|111|39-preAction
} else if (displayable == SignOnForm) {
if (command == SOexitCommand) {//GEN-END:|7-commandAction|111|39-preAction
// write pre-action user code here
exitMIDlet();//GEN-LINE:|7-commandAction|112|39-postAction
// write post-action user code here
} else if (command == SOokCommand) {//GEN-LINE:|7-commandAction|113|42-preAction
// write pre-action user code here
String cell = SOUsersCellPhonetextField.getString();
String pin = SOUserPIN.getString();
if ( cell.length() == 0 ) {
ShowMsg(setLang("SEND_MSG20"), getSignOnForm(), true);
return;
}
boolean bStatus = Utils.checkPIN(pin);
if (!bStatus) {
ShowMsg(setLang("SEND_MSG38") ,getSignOnForm(), true);
return;
}
CheckCellNumAndCarrier(cell,pin);
//GEN-LINE:|7-commandAction|114|42-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|115|429-preAction
} else if (displayable == StateList) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|115|429-preAction
// write pre-action user code here
StateListAction();//GEN-LINE:|7-commandAction|116|429-postAction
// write post-action user code here
} else if (command == StateBackCommand) {//GEN-LINE:|7-commandAction|117|433-preAction
// write pre-action user code here
switchDisplayable(null, getListLocator());//GEN-LINE:|7-commandAction|118|433-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|119|339-preAction
} else if (displayable == Supportform) {
if (command == SupportcancelCommand) {//GEN-END:|7-commandAction|119|339-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|120|339-postAction
// write post-action user code here
} else if (command == SupportokCommand) {//GEN-LINE:|7-commandAction|121|343-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|122|343-postAction
//got to support site
String url = getAppProperty("EMIDA_APP_SUPPORT_SITE");
try {
platformRequest(url);
} catch (ConnectionNotFoundException ex) {
String msg = setLang("SupportSiteNotReachable") +
Constants.SPACE + ex.getMessage();
ShowMsg(msg,Supportform);
}
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|123|323-preAction
} else if (displayable == TOPUPOtherform) {
if (command == TopupOtherbackCommand) {//GEN-END:|7-commandAction|123|323-preAction
// write pre-action user code here
switchDisplayable(null, getListCarriersListForm());//GEN-LINE:|7-commandAction|124|323-postAction
// write post-action user code here
} else if (command == ToupOtherokCommand) {//GEN-LINE:|7-commandAction|125|321-preAction
// write pre-action user code here
String mnumber = TopupOtherMNumbertextField.getString();
String amount = TopupOtherAmounttextField.getString();
if (amount.length() == 0 || mnumber.length() ==0) {
ShowMsg(setLang("SEND_MSG4"),TOPUPOtherform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",TOPUPform);
ShowMsg(setLang("SEND_MSG37"),TOPUPOtherform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",TOPUPform);
ShowMsg(setLang("SEND_MSG17"),TOPUPOtherform);
return;
}
//HumanCmd = "Top up your phone for " + Constants.SPACE + amount;
HumanCmd = setLang("SEND_MSG21");
HumanCmd = HumanCmd + Constants.SPACE + amount;
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
String operation = Constants.smsActionTopUp2 + SavedPIN +
Constants.SPACE + amount +
Constants.SPACE + this.selectedCarrierId +
Constants.SPACE + mnumber;
SmsSend = buildSMSParam(Constants.smsActionTopUp2);
// Top up command is: topup PIN amount sku and users mobile number or other number
Sms_message_out = operation;
//nullItems();
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|126|321-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|127|98-preAction
} else if (displayable == TOPUPSelfform) {
if (command == TOPSelfbackCommand) {//GEN-END:|7-commandAction|127|98-preAction
// write pre-action user code here
if ( this.listCarriersBackTo == 2){
this.switchDisplayable(null, this.getPreSelectCarrierListForm());
}
else if ( this.listCarriersBackTo == 1){
switchDisplayable(null, getListCarriersListForm());
}
switchDisplayable(null, getTopupSelectform());//GEN-LINE:|7-commandAction|128|98-postAction
// write post-action user code here
} else if (command == TOPSelfokCommand) {//GEN-LINE:|7-commandAction|129|101-preAction
// write pre-action user code here
String amount = TopupSelfAmounttextField.getString();
if (amount.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4"),TOPUPSelfform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",TOPUPform);
ShowMsg(setLang("SEND_MSG37"),TOPUPSelfform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",TOPUPform);
ShowMsg(setLang("SEND_MSG17"),TOPUPSelfform);
return;
}
//HumanCmd = "Top up your phone" + Constants.SPACE + amount;
HumanCmd = setLang("SEND_MSG21");
HumanCmd = HumanCmd + Constants.SPACE + amount;
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
String operation = Constants.smsActionTopUp1 + SavedPIN +
Constants.SPACE + amount +
Constants.SPACE + this.selectedCarrierId +
Constants.SPACE + DBagentCellNumber;
SmsSend = buildSMSParam(Constants.smsActionTopUp1);
// Top up command is: topup PIN amount sku and users mobile number or other number
Sms_message_out = operation;
//nullItems();
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|130|101-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|131|315-preAction
} else if (displayable == TopupSelectform) {
if (command == AirtimebackCommand) {//GEN-END:|7-commandAction|131|315-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|132|315-postAction
// write post-action user code here
} else if (command == AirtimeokCommand) {//GEN-LINE:|7-commandAction|133|313-preAction
// write pre-action user code here
int choice = AirtimechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),TopupSelectform);
return;
}
switch (choice) {
case 0://add airtime to my phone
switchDisplayable(null, getTOPUPSelfform());
Selftopup=true;
break;
case 1://add airtime to another phone
switchDisplayable(null, getTOPUPOtherform());
Selftopup=false;
break;
}
//GEN-LINE:|7-commandAction|134|313-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|135|515-preAction
} else if (displayable == UpgradePromptform) {
if (command == UpgradePromptbackCommand) {//GEN-END:|7-commandAction|135|515-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|136|515-postAction
// write post-action user code here
} else if (command == UpgradePromptokCommand) {//GEN-LINE:|7-commandAction|137|518-preAction
// write pre-action user code here
switchDisplayable(null, getUpgradeform());//GEN-LINE:|7-commandAction|138|518-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|139|511-preAction
} else if (displayable == Upgradeform) {
if (command == RegbackCommand) {//GEN-END:|7-commandAction|139|511-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|140|511-postAction
// write post-action user code here
} else if (command == RegnextCommand) {//GEN-LINE:|7-commandAction|141|535-preAction
// write pre-action user code here
regfname = regfirstnametextField.getString();
reglname = reglastnametextField.getString();
int choice = regCountrychoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform);
return;
}
regcountry ="1"; //United States
switch (choice) {
case 0://US
regcountry = "1";
break;
case 1://Mexico
regcountry = "2";
break;
}
choice = regLanguagechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform);
return;
}
reglang="en";
switch (choice) {
case 0://english
reglang = "en";
break;
case 1://spanish
reglang = "es";
break;
}
choice = regsecqchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform);
return;
}
regsecq= urlEncode("Where were you born?");
switch (choice) {
case 0://
regsecq = urlEncode("Where were you born?");
break;
case 1://
regsecq = urlEncode("What is the name of your favorite pet?");
break;
case 2://
regsecq = urlEncode("What is your favorite word?");
break;
}
regseca = regsecanswertextField.getString();
regsecword = regsecwordtextField.getString();
if (regfname.length() == 0 || reglname.length() == 0 || regsecword.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4"),Upgradeform);
return;
}
if (regsecword.indexOf(Constants.SPACE) != -1) {
ShowMsg(setLang("securityWordError"),Upgradeform);
return;
}
regseca = urlEncode(regseca);
regfname = urlEncode(regfname);
reglname = urlEncode(reglname);
switchDisplayable(null, getUpgradeform2());//GEN-LINE:|7-commandAction|142|535-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|143|550-preAction
} else if (displayable == Upgradeform2) {
if (command == regbackCommand2) {//GEN-END:|7-commandAction|143|550-preAction
// write pre-action user code here
switchDisplayable(null, getUpgradeform());//GEN-LINE:|7-commandAction|144|550-postAction
// write post-action user code here
} else if (command == regnextCommand2) {//GEN-LINE:|7-commandAction|145|553-preAction
// write pre-action user code here
//Title
int choice = regtitlechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform2);
return;
}
regtitle ="Mr.";
switch (choice) {
case 0://Mr.
regtitle = "Mr.";
break;
case 1://Mrs.
regtitle = "Mrs.";
break;
case 2://Ms.
regtitle = "Ms.";
break;
case 3://Dr.
regtitle = "Dr.";
break;
case 4://Chief.
regtitle = "Chief.";
break;
}
regaddr1 = regaddr1textField.getString();
String regaddr2_temp = regaddr2textField.getString();
regcity = regcitytextField.getString();
if (regaddr1.length() == 0 || regcity.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),Upgradeform2);
return;
}
regaddr1 = urlEncode(regaddr1);
regcity = urlEncode(regcity);
if (regaddr2_temp.length() > 0) {
regaddr2 = urlEncode(regaddr2_temp);
} else
regaddr2 = null;
choice = regstatechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform2);
return;
}
switch (choice) {
case 0:
regstate = setLang("regstateAL");
break;
case 1:
regstate = setLang("regstateAK");
break;
case 2:
regstate = urlEncode(setLang("regstateAS"));
break;
case 3:
regstate = setLang("regstateAZ");
break;
case 4:
regstate = setLang("regstateAR");
break;
case 5:
regstate = setLang("regstateCA");
break;
case 6:
regstate = urlEncode(setLang("regstateCM"));
break;
case 7:
regstate = setLang("regstateCO");
break;
case 8:
regstate = setLang("regstateCT");
break;
case 9:
regstate = setLang("regstateDE");
break;
case 10:
regstate = urlEncode(setLang("regstateDC"));
break;
case 11:
regstate = setLang("regstateFL");
break;
case 12:
regstate = setLang("regstateGA");
break;
case 13:
regstate = setLang("regstateGU");
break;
case 14:
regstate = setLang("regstateHI");
break;
case 15:
regstate = setLang("regstateID");
break;
case 16:
regstate = setLang("regstateIL");
break;
case 17:
regstate = setLang("regstateIA");
break;
case 18:
regstate = setLang("regstateKS");
break;
case 19:
regstate = setLang("regstateKY");
break;
case 20:
regstate = setLang("regstateLA");
break;
case 21:
regstate = setLang("regstateME");
break;
case 22:
regstate = setLang("regstateMD");
break;
case 23:
regstate = setLang("regstateMA");
break;
case 24:
regstate = setLang("regstateMI");
break;
case 25:
regstate = setLang("regstateMN");
break;
case 26:
regstate = setLang("regstateMS");
break;
case 27:
regstate = setLang("regstateMO");
break;
case 28:
regstate = setLang("regstateMT");
break;
case 29:
regstate = setLang("regstateNE");
break;
case 30:
regstate = setLang("regstateNV");
break;
case 31:
regstate = urlEncode(setLang("regstateNH"));
break;
case 32:
regstate = urlEncode(setLang("regstateNJ"));
break;
case 33:
regstate = urlEncode(setLang("regstateNM"));
break;
case 34:
regstate = urlEncode(setLang("regstateNY"));
break;
case 35:
regstate = urlEncode(setLang("regstateNC"));
break;
case 36:
regstate = urlEncode(setLang("regstateND"));
break;
case 37:
regstate = setLang("regstateOH");
break;
case 38:
regstate = setLang("regstateOK");
break;
case 39:
regstate = setLang("regstateOR");
break;
case 40:
regstate = setLang("regstatePA");
break;
case 41:
regstate = urlEncode(setLang("regstatePR"));
break;
case 42:
regstate = urlEncode(setLang("regstateRI"));
break;
case 43:
regstate = urlEncode(setLang("regstateSC"));
break;
case 44:
regstate = urlEncode(setLang("regstateSD"));
break;
case 45:
regstate = setLang("regstateTN");
break;
case 46:
regstate = setLang("regstateTX");
break;
case 47:
regstate = setLang("regstateUT");
break;
case 48:
regstate = setLang("regstateVT");
break;
case 49:
regstate = setLang("regstateVA");
break;
case 50:
regstate = urlEncode(setLang("regstateVI"));
break;
case 51:
regstate = setLang("regstateWA");
break;
case 52:
regstate = urlEncode(setLang("regstateWV"));
break;
case 53:
regstate = setLang("regstateWI");
break;
case 54:
regstate = setLang("regstateWY");
break;
}
switchDisplayable(null, getUpgradeform3());//GEN-LINE:|7-commandAction|146|553-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|147|615-preAction
} else if (displayable == Upgradeform3) {
if (command == regbackCommand3) {//GEN-END:|7-commandAction|147|615-preAction
// write pre-action user code here
switchDisplayable(null, getUpgradeform2());//GEN-LINE:|7-commandAction|148|615-postAction
// write post-action user code here
} else if (command == regokCommand3) {//GEN-LINE:|7-commandAction|149|647-preAction
regzip = regziptextField.getString();
regemail = regemailtextField.getString();
if (regzip.length() == 0 || regemail.length() ==0) {
ShowMsg(setLang("SEND_MSG4"),Upgradeform3);
return;
}
int choice = regtzchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform3);
return;
}
regtz ="PDT";
switch (choice) {
case 0:
regtz = setLang("ADT");
break;
case 1:
regtz = setLang("CDT");
break;
case 2:
regtz = setLang("EDT");
break;
case 3:
regtz = setLang("HDT");
break;
case 4:
regtz = setLang("MDT");
break;
case 5:
regtz = setLang("DTU");
break;
case 6:
regtz = setLang("PDT");
break;
}
choice = regIDtypechoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),Upgradeform3);
return;
}
regidtype ="1";
switch (choice) {
case 0:
regidtype = "1";
break;
case 1:
regidtype = "2";
break;
}
regidvalue = regIDvaluetextField.getString();
if (regidvalue.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),Upgradeform3);
return;
}
regidvalue = urlEncode(regidvalue);
//check email and id value. lengths etc
if (regemail.length() > 0 && !Utils.validMail(regemail)) {
ShowMsg(setLang("regemail"),Upgradeform3);
return;
}
if (regidtype.startsWith("1")) {
int valid = Utils.isSSNValid(regidvalue);
if (valid == 1) {//length
ShowMsg(setLang("regssnerror2"),Upgradeform3);
return;
}
if (valid == 1) {//format
ShowMsg(setLang("regssnerror"),Upgradeform3);
return;
}
} else {
int valid = Utils.isTINValid(regidvalue);
if (valid == 1) {//format
ShowMsg(setLang("regtinerror"),Upgradeform3);
return;
}
if (valid == 2) {//length
ShowMsg(setLang("regtinerror2"),Upgradeform3);
return;
}
}
switchDisplayable(null, getUpgradeform4());//GEN-LINE:|7-commandAction|150|647-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|151|675-preAction
} else if (displayable == Upgradeform4) {
if (command == regbackCommand5) {//GEN-END:|7-commandAction|151|675-preAction
// write pre-action user code here
switchDisplayable(null, getUpgradeform3());//GEN-LINE:|7-commandAction|152|675-postAction
// write post-action user code here
} else if (command == regokCommand4) {//GEN-LINE:|7-commandAction|153|673-preAction
// write pre-action user code here
//GEN-LINE:|7-commandAction|154|673-postAction
// write post-action user code here
String month = regdobmonthtextField.getString();
String day = regdobdaytextField.getString();
String year = regdobyeartextField.getString();
if (month.length() == 0 || day.length() == 0 || year.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),Upgradeform4);
return;
}
Integer im = Integer.valueOf(month);
if (im.intValue() < 1 || im.intValue() > 12) {
ShowMsg(setLang("regdobmontherror"),Upgradeform4);
return;
}
Integer id = Integer.valueOf(day);
if (id.intValue() < 1 || id.intValue() > 31) {
ShowMsg(setLang("regdobdayerror"),Upgradeform4);
return;
}
Calendar c1 = Calendar.getInstance();
Date d1 = new Date();
c1.setTime(d1);
int thisyy = c1.get(Calendar.YEAR);
int lastyear = thisyy - 18;
Integer iy = Integer.valueOf(year);
if (iy.intValue() < 1901 || iy.intValue() > lastyear) {
ShowMsg(setLang("regdobyearerror"),Upgradeform4);
return;
}
String date_of_birth = month + day + year;
//collect all data for reigstration and submit
String terms = "1";
String referrer = null;
String prod = Constants.PRODUCT_CODE;
String account_type = Constants.JAGUAR_FULL_ACCOUNT;
String mobilenumber = DBagentCellNumber;
String car2 = urlEncode(getDefaultCarrier());
String operation = prod + Constants.DASH +
account_type + Constants.DASH +
mobilenumber + Constants.DASH +
regfname + Constants.DASH +
reglname + Constants.DASH +
regcountry + Constants.DASH +
reglang + Constants.DASH +
terms + Constants.DASH +
regsecq + Constants.DASH +
regseca + Constants.DASH +
regsecword + Constants.DASH +
referrer + Constants.DASH +
regtitle + Constants.DASH +
regaddr1 + Constants.DASH +
regaddr2 + Constants.DASH +
regcity + Constants.DASH +
regstate + Constants.DASH +
regzip + Constants.DASH +
car2 + Constants.DASH +
regemail + Constants.DASH +
regtz + Constants.DASH +
date_of_birth + Constants.DASH +
regidtype + Constants.DASH +
regidvalue;
HumanCmd = setLang("termsconfirm");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionUpgrade + Constants.DASH + operation;
SmsSend = buildSMSParam(Constants.smsActionUpgrade);
switchDisplayable(null, getSendopform());
}//GEN-BEGIN:|7-commandAction|155|349-preAction
} else if (displayable == WayTopUp) {
if (command == List.SELECT_COMMAND) {//GEN-END:|7-commandAction|155|349-preAction
// write pre-action user code here
WayTopUpAction();//GEN-LINE:|7-commandAction|156|349-postAction
// write post-action user code here
} else if (command == backCommandWayTopUp) {//GEN-LINE:|7-commandAction|157|354-preAction
// write pre-action user code here
this.switchDisplayable(null, getMainBridgelist());
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|158|354-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|159|71-preAction
} else if (displayable == Withdrawcashform) {
if (command == WITHbackCommand) {//GEN-END:|7-commandAction|159|71-preAction
// write pre-action user code here
switchDisplayable(null, getCashinoutform());//GEN-LINE:|7-commandAction|160|71-postAction
// write post-action user code here
} else if (command == WITHokCommand) {//GEN-LINE:|7-commandAction|161|76-preAction
// write pre-action user code here
String amount = WITHAmounttextField1.getString();
if (amount.length() == 0) {
ShowMsg(setLang("SEND_MSG4"),Withdrawcashform);
return;
}
//In Nigeria the consumer can enter a comma for amount
//Example: 12,000 Naira.
amount = Utils.stripComma(amount);
boolean valid = Utils.verifyAmount(amount);
if (!valid) {
//ShowMsg("Amount value should contain only numbers 0 to 9 and period.",Withdrawcashform);
ShowMsg(setLang("SEND_MSG37"),Withdrawcashform);
return;
}
valid = Utils.checkLegalAmount(amount);
if (!valid) {
//ShowMsg("Amount must be greater than 0 and only 2 decimals places.",Withdrawcashform);
ShowMsg(setLang("SEND_MSG17"),Withdrawcashform);
return;
}
//HumanCmd = " You want to withdraw cash from your account. In the amount of " + amount;
HumanCmd = setLang("SEND_MSG22") + amount;
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
Sms_message_out = Constants.smsActionCash + SavedPIN + Constants.SPACE + amount;
SmsSend = buildSMSParam(Constants.smsActionCash);
//nullItems();
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|162|76-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|163|461-preAction
} else if (displayable == ZipCodeForm) {
if (command == ZipCodeBackCommand) {//GEN-END:|7-commandAction|163|461-preAction
// write pre-action user code here
switchDisplayable(null, getListLocator());//GEN-LINE:|7-commandAction|164|461-postAction
// write post-action user code here
} else if (command == ZipCodeOkCommand) {//GEN-LINE:|7-commandAction|165|463-preAction
// write pre-action user code here
String state = "null";
String city = "null";
String zipCode = this.getZipCodeTextField().getString();
if ( zipCode.length() == 0 ) {
ShowMsg(setLang("SEND_MSG4") , this.ZipCodeForm);
return;
}
String addressType = getAppProperty("EMIDA_APP_LOCATION_TYPE_ZIPCODE");
HumanCmd = setLang("locator_msg1") + this.getZipCodeForm().getTitle()+": "+zipCode;
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
//8080/mwallet/smscontroller?sms_req=locations%20null%2092610%20null%20null&ver=4.0&siteUser=17742180759&lang=en&immediate=true&sendSMS=true]
if (zipCode.length() > 0)
Sms_message_out = Constants.smsActionLocations + "zipCode" +
Constants.SPACE + zipCode +
Constants.SPACE + state +
Constants.SPACE + city;
SmsSend = buildSMSParam(Constants.smsActionLocations);
switchDisplayable(null, getSendopform());//GEN-LINE:|7-commandAction|166|463-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|167|719-preAction
} else if (displayable == cashin_cashform) {
if (command == cashin_cashbackCommand) {//GEN-END:|7-commandAction|167|719-preAction
// write pre-action user code here
switchDisplayable(null, getCashinoutform());//GEN-LINE:|7-commandAction|168|719-postAction
// write post-action user code here
} else if (command == cashin_cashokCommand) {//GEN-LINE:|7-commandAction|169|721-preAction
// write pre-action user code here
switchDisplayable(null, getListLocator());//GEN-LINE:|7-commandAction|170|721-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|171|706-preAction
} else if (displayable == cashinoutform) {
if (command == cashinoutbackCommand) {//GEN-END:|7-commandAction|171|706-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|172|706-postAction
// write post-action user code here
} else if (command == cashinoutokCommand) {//GEN-LINE:|7-commandAction|173|704-preAction
// MAIN CASH IN OUT MENU
//GEN-LINE:|7-commandAction|174|704-postAction
// write post-action user code here
int choice = cashinoutmenuchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),cashinoutform);
return;
}
switch (choice) {
case 0://go to cash in - cash form
switchDisplayable(null, getDepositCashform());
break;
// case 1: ///go to cash in - bank account to wallet
// if (Kyc_level.startsWith("1"))
// switchDisplayable(null, getUpgradePromptform());
// else {
// ACHOperations = Constants.ACHDEPOSIT;
// switchDisplayable(null, getACHMainMenuform());
// }
// break;
// case 2: //go to cash in - scan a check
// break;
// case 3: // go to cash OUT - cash
// if (Kyc_level.startsWith("1"))
// switchDisplayable(null, getUpgradePromptform());
// else {
// switchDisplayable(null, getWithdrawcashform());
// }
// break;
// case 4: // go to cash out - wallet to bank account
// if (Kyc_level.startsWith("1"))
// switchDisplayable(null, getUpgradePromptform());
// else {
// ACHOperations = Constants.ACHWITHDRAWAL;
//// switchDisplayable(null, getACHMainMenuform());
// }
// break;
case 1:// cash out
switchDisplayable(null, getWithdrawcashform());
break;
}
}//GEN-BEGIN:|7-commandAction|175|86-preAction
} else if (displayable == paybillmenuform) {
if (command == billpaymenuBackCommand) {//GEN-END:|7-commandAction|175|86-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());//GEN-LINE:|7-commandAction|176|86-postAction
// write post-action user code here
} else if (command == billpaymenuOkCommand) {//GEN-LINE:|7-commandAction|177|89-preAction
// write pre-action user code here
int choice = billpaymenuchoiceGroup.getSelectedIndex();
if (choice == -1) {
//error
ShowMsg(setLang("SEND_MSG6"),paybillmenuform);
return;
}
switch (choice) {
case 0://go to either biller list or retrieve biller list
//this is for pay a bill
//switchDisplayable(null, getCashin_cashform());
break;
case 1: ///go to either biller list or rettieve biller list
//this is for set up a recurring bill payment
//switchDisplayable(null, getACHMainMenuform());
break;
case 2: //view paid bills
//switchDisplayable(null, getNotImplform());
break;
case 3: // list recurring bills
// switchDisplayable(null, getWithdrawcashform());
break;
}
//GEN-LINE:|7-commandAction|178|89-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|179|266-preAction
} else if (displayable == splashScreen) {
if (command == SPLASHokCommand) {//GEN-END:|7-commandAction|179|266-preAction
// write pre-action user code here
//This is not used anymore.....replaced by login form
String lastDateCarrierUpdate = GetProperty(Constants.PROPERTY_DATE_LAST_CARRIER_UPDATE);
//we must update the carrier database?
boolean result = updateCarrierList(lastDateCarrierUpdate);
if ( result ){
this.HumanCmd = this.setLang("UpdateCarrierList");
this.Sms_message_out = Constants.smsActionAutomaticTaskSplash;
this.prepareAndSendRequest();
}
else{
fillCarrierDataBase();
switchDisplayable(null, getMainBridgelist());
}
//GEN-LINE:|7-commandAction|180|266-postAction
// write post-action user code here
} else if (command == SplashScreen.DISMISS_COMMAND) {//GEN-LINE:|7-commandAction|181|46-preAction
// write pre-action user code here
switchDisplayable(null, getMainBridgelist());
//GEN-LINE:|7-commandAction|182|46-postAction
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|183|7-postCommandAction
}//GEN-END:|7-commandAction|183|7-postCommandAction
// write post-action user code here
} //CommandAction
//</editor-fold>
private void prepareAndSendRequest() {
// write pre-action user code here
SendOperation();
// write post-action user code here
}//GEN-BEGIN:|7-commandAction|184|
//</editor-fold>//GEN-END:|7-commandAction|184|
//<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(), getSOUserPIN()});//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 defaultstate="collapsed" desc=" Generated Getter: Sendmoneyform ">//GEN-BEGIN:|50-getter|0|50-preInit
/**
* Returns an initialized instance of Sendmoneyform component.
*
* @return the initialized component instance
*/
public Form getSendmoneyform() {
if (Sendmoneyform == null) {//GEN-END:|50-getter|0|50-preInit
// write pre-init user code here
Sendmoneyform = new Form(setLang("Sendmoneyform"), new Item[]{getSENDphonenumbertextField(), getSENDAmounttextField()});//GEN-BEGIN:|50-getter|1|50-postInit
Sendmoneyform.addCommand(getSENDbackCommand());
Sendmoneyform.addCommand(getSENDokCommand());
Sendmoneyform.setCommandListener(this);//GEN-END:|50-getter|1|50-postInit
// write post-init user code here
}//GEN-BEGIN:|50-getter|2|
return Sendmoneyform;
}
//</editor-fold>//GEN-END:|50-getter|2|
//</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 defaultstate="collapsed" desc=" Generated Getter: SENDphonenumbertextField ">//GEN-BEGIN:|56-getter|0|56-preInit
/**
* Returns an initialized instance of SENDphonenumbertextField component.
*
* @return the initialized component instance
*/
public TextField getSENDphonenumbertextField() {
if (SENDphonenumbertextField == null) {//GEN-END:|56-getter|0|56-preInit
// write pre-init user code here
SENDphonenumbertextField = new TextField(setLang("SENDphonenumbertextField"), "", 32, TextField.PHONENUMBER);//GEN-LINE:|56-getter|1|56-postInit
// write post-init user code here
}//GEN-BEGIN:|56-getter|2|
return SENDphonenumbertextField;
}
//</editor-fold>//GEN-END:|56-getter|2|
//</editor-fold>
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SENDAmounttextField ">//GEN-BEGIN:|57-getter|0|57-preInit
/**
* Returns an initialized instance of SENDAmounttextField component.
*
* @return the initialized component instance
*/
public TextField getSENDAmounttextField() {
if (SENDAmounttextField == null) {//GEN-END:|57-getter|0|57-preInit
// write pre-init user code here
SENDAmounttextField = new TextField(setLang("SENDAmounttextField"), "", 32, TextField.ANY);//GEN-LINE:|57-getter|1|57-postInit
// write post-init user code here
}//GEN-BEGIN:|57-getter|2|
return SENDAmounttextField;
}
//</editor-fold>//GEN-END:|57-getter|2|
//</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()});//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 defaultstate="collapsed" desc=" Generated Getter: Withdrawcashform ">//GEN-BEGIN:|69-getter|0|69-preInit
/**
* Returns an initialized instance of Withdrawcashform component.
*
* @return the initialized component instance
*/
public Form getWithdrawcashform() {
if (Withdrawcashform == null) {//GEN-END:|69-getter|0|69-preInit
// write pre-init user code here
Withdrawcashform = new Form(setLang("Withdrawcashform"), new Item[]{getWITHAmounttextField1()});//GEN-BEGIN:|69-getter|1|69-postInit
Withdrawcashform.addCommand(getWITHbackCommand());
Withdrawcashform.addCommand(getWITHokCommand());
Withdrawcashform.setCommandListener(this);//GEN-END:|69-getter|1|69-postInit
// write post-init user code here
}//GEN-BEGIN:|69-getter|2|
return Withdrawcashform;
}
//</editor-fold>//GEN-END:|69-getter|2|
//</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 defaultstate="collapsed" desc=" Generated Getter: WITHAmounttextField1 ">//GEN-BEGIN:|73-getter|0|73-preInit
/**
* Returns an initialized instance of WITHAmounttextField1 component.
*
* @return the initialized component instance
*/
public TextField getWITHAmounttextField1() {
if (WITHAmounttextField1 == null) {//GEN-END:|73-getter|0|73-preInit
// write pre-init user code here
WITHAmounttextField1 = new TextField(setLang("WITHAmounttextField1"), "", 32, TextField.ANY);//GEN-LINE:|73-getter|1|73-postInit
// write post-init user code here
}//GEN-BEGIN:|73-getter|2|
return WITHAmounttextField1;
}
//</editor-fold>//GEN-END:|73-getter|2|
//</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"), getImage(), 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 defaultstate="collapsed" desc=" Generated Getter: paybillmenuform ">//GEN-BEGIN:|84-getter|0|84-preInit
/**
* Returns an initialized instance of paybillmenuform component.
*
* @return the initialized component instance
*/
public Form getPaybillmenuform() {
if (paybillmenuform == null) {//GEN-END:|84-getter|0|84-preInit
// write pre-init user code here
paybillmenuform = new Form(setLang("paybillform"), new Item[]{getBillpaymenuchoiceGroup()});//GEN-BEGIN:|84-getter|1|84-postInit
paybillmenuform.addCommand(getBillpaymenuBackCommand());
paybillmenuform.addCommand(getBillpaymenuOkCommand());
paybillmenuform.setCommandListener(this);//GEN-END:|84-getter|1|84-postInit
// write post-init user code here
}//GEN-BEGIN:|84-getter|2|
return paybillmenuform;
}
//</editor-fold>//GEN-END:|84-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: billpaymenuBackCommand ">//GEN-BEGIN:|85-getter|0|85-preInit
/**
* Returns an initialized instance of billpaymenuBackCommand component.
*
* @return the initialized component instance
*/
public Command getBillpaymenuBackCommand() {
if (billpaymenuBackCommand == null) {//GEN-END:|85-getter|0|85-preInit
// write pre-init user code here
billpaymenuBackCommand = 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 billpaymenuBackCommand;
}
//</editor-fold>//GEN-END:|85-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: billpaymenuOkCommand ">//GEN-BEGIN:|88-getter|0|88-preInit
/**
* Returns an initialized instance of billpaymenuOkCommand component.
*
* @return the initialized component instance
*/
public Command getBillpaymenuOkCommand() {
if (billpaymenuOkCommand == null) {//GEN-END:|88-getter|0|88-preInit
// write pre-init user code here
billpaymenuOkCommand = 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 billpaymenuOkCommand;
}
//</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: TOPUPSelfform ">//GEN-BEGIN:|96-getter|0|96-preInit
/**
* Returns an initialized instance of TOPUPSelfform component.
*
* @return the initialized component instance
*/
public Form getTOPUPSelfform() {
if (TOPUPSelfform == null) {//GEN-END:|96-getter|0|96-preInit
// write pre-init user code here
TOPUPSelfform = new Form(setLang("TOPUPform"), new Item[]{getTopupSelfAmounttextField()});//GEN-BEGIN:|96-getter|1|96-postInit
TOPUPSelfform.addCommand(getTOPSelfbackCommand());
TOPUPSelfform.addCommand(getTOPSelfokCommand());
TOPUPSelfform.setCommandListener(this);//GEN-END:|96-getter|1|96-postInit
// write post-init user code here
}//GEN-BEGIN:|96-getter|2|
return TOPUPSelfform;
}
//</editor-fold>//GEN-END:|96-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPSelfbackCommand ">//GEN-BEGIN:|97-getter|0|97-preInit
/**
* Returns an initialized instance of TOPSelfbackCommand component.
*
* @return the initialized component instance
*/
public Command getTOPSelfbackCommand() {
if (TOPSelfbackCommand == null) {//GEN-END:|97-getter|0|97-preInit
// write pre-init user code here
TOPSelfbackCommand = 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 TOPSelfbackCommand;
}
//</editor-fold>//GEN-END:|97-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPSelfokCommand ">//GEN-BEGIN:|100-getter|0|100-preInit
/**
* Returns an initialized instance of TOPSelfokCommand component.
*
* @return the initialized component instance
*/
public Command getTOPSelfokCommand() {
if (TOPSelfokCommand == null) {//GEN-END:|100-getter|0|100-preInit
// write pre-init user code here
TOPSelfokCommand = 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 TOPSelfokCommand;
}
//</editor-fold>//GEN-END:|100-getter|2|
//</editor-fold>
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TopupSelfAmounttextField ">//GEN-BEGIN:|103-getter|0|103-preInit
/**
* Returns an initialized instance of TopupSelfAmounttextField component.
*
* @return the initialized component instance
*/
public TextField getTopupSelfAmounttextField() {
if (TopupSelfAmounttextField == null) {//GEN-END:|103-getter|0|103-preInit
// write pre-init user code here
TopupSelfAmounttextField = new TextField(setLang("TOPamounttextField3"), "", 32, TextField.ANY);//GEN-LINE:|103-getter|1|103-postInit
// write post-init user code here
}//GEN-BEGIN:|103-getter|2|
return TopupSelfAmounttextField;
}
//</editor-fold>//GEN-END:|103-getter|2|
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</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("pin"), "", 32, TextField.ANY | 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.ANY | 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.ANY | 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.ANY | 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>
//</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>
//</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: AgentlistbackCommand ">//GEN-BEGIN:|170-getter|0|170-preInit
/**
* Returns an initialized instance of AgentlistbackCommand component.
*
* @return the initialized component instance
*/
public Command getAgentlistbackCommand() {
if (AgentlistbackCommand == null) {//GEN-END:|170-getter|0|170-preInit
// write pre-init user code here
AgentlistbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|170-getter|1|170-postInit
// write post-init user code here
}//GEN-BEGIN:|170-getter|2|
return AgentlistbackCommand;
}
//</editor-fold>//GEN-END:|170-getter|2|
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegbackCommand ">//GEN-BEGIN:|180-getter|0|180-preInit
/**
* Returns an initialized instance of AgtRegbackCommand component.
*
* @return the initialized component instance
*/
public Command getAgtRegbackCommand() {
if (AgtRegbackCommand == null) {//GEN-END:|180-getter|0|180-preInit
// write pre-init user code here
AgtRegbackCommand = 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 AgtRegbackCommand;
}
//</editor-fold>//GEN-END:|180-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtRegokCommand ">//GEN-BEGIN:|183-getter|0|183-preInit
/**
* Returns an initialized instance of AgtRegokCommand component.
*
* @return the initialized component instance
*/
public Command getAgtRegokCommand() {
if (AgtRegokCommand == null) {//GEN-END:|183-getter|0|183-preInit
// write pre-init user code here
AgtRegokCommand = 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 AgtRegokCommand;
}
//</editor-fold>//GEN-END:|183-getter|2|
//</editor-fold>
//</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>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</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"), 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>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashbackCommand ">//GEN-BEGIN:|211-getter|0|211-preInit
/**
* Returns an initialized instance of AgtCashbackCommand component.
*
* @return the initialized component instance
*/
public Command getAgtCashbackCommand() {
if (AgtCashbackCommand == null) {//GEN-END:|211-getter|0|211-preInit
// write pre-init user code here
AgtCashbackCommand = 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 AgtCashbackCommand;
}
//</editor-fold>//GEN-END:|211-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AgtCashokCommand ">//GEN-BEGIN:|214-getter|0|214-preInit
/**
* Returns an initialized instance of AgtCashokCommand component.
*
* @return the initialized component instance
*/
public Command getAgtCashokCommand() {
if (AgtCashokCommand == null) {//GEN-END:|214-getter|0|214-preInit
// write pre-init user code here
AgtCashokCommand = 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 AgtCashokCommand;
}
//</editor-fold>//GEN-END:|214-getter|2|
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//</editor-fold>
//<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: 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("", getImage(), 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("/jagguar_icon.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: DepositCashform ">//GEN-BEGIN:|235-getter|0|235-preInit
/**
* Returns an initialized instance of DepositCashform component.
*
* @return the initialized component instance
*/
public Form getDepositCashform() {
if (DepositCashform == null) {//GEN-END:|235-getter|0|235-preInit
// write pre-init user code here
DepositCashform = new Form(setLang("DepositCashform"), new Item[]{getDepositAMTtextField()});//GEN-BEGIN:|235-getter|1|235-postInit
DepositCashform.addCommand(getDepositokCommand());
DepositCashform.addCommand(getDepositbackCommand());
DepositCashform.setCommandListener(this);//GEN-END:|235-getter|1|235-postInit
// write post-init user code here
}//GEN-BEGIN:|235-getter|2|
return DepositCashform;
}
//</editor-fold>//GEN-END:|235-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: DepositAMTtextField ">//GEN-BEGIN:|236-getter|0|236-preInit
/**
* Returns an initialized instance of DepositAMTtextField component.
*
* @return the initialized component instance
*/
public TextField getDepositAMTtextField() {
if (DepositAMTtextField == null) {//GEN-END:|236-getter|0|236-preInit
// write pre-init user code here
DepositAMTtextField = new TextField(setLang("DepositAMTtextField"), "", 32, TextField.ANY);//GEN-LINE:|236-getter|1|236-postInit
// write post-init user code here
}//GEN-BEGIN:|236-getter|2|
return DepositAMTtextField;
}
//</editor-fold>//GEN-END:|236-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_MONOSPACE, Font.STYLE_BOLD, Font.SIZE_MEDIUM);//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 defaultstate="collapsed" desc=" Generated Getter: MainBridgelist ">//GEN-BEGIN:|257-getter|0|257-preInit
/**
* Returns an initialized instance of MainBridgelist component.
*
* @return the initialized component instance
*/
public List getMainBridgelist() {
if (MainBridgelist == null) {//GEN-END:|257-getter|0|257-preInit
// write pre-init user code here
MainBridgelist = new List(buildTitle(), Choice.IMPLICIT);//GEN-BEGIN:|257-getter|1|257-postInit
MainBridgelist.addCommand(getMainListExitCommand());
MainBridgelist.addCommand(getMainmenulist_selectbutton());
MainBridgelist.setCommandListener(this);//GEN-END:|257-getter|1|257-postInit
// write post-init user code here
createCanvasMainList(0);
}//GEN-BEGIN:|257-getter|2|
return MainBridgelist;
}
//</editor-fold>//GEN-END:|257-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: MainBridgelistAction ">//GEN-BEGIN:|257-action|0|257-preAction
/**
* Performs an action assigned to the selected list element in the
* MainBridgelist component.
*/
public void MainBridgelistAction() {//GEN-END:|257-action|0|257-preAction
// enter pre-action user code here
String __selectedString = getMainBridgelist().getString(getMainBridgelist().getSelectedIndex());//GEN-LINE:|257-action|1|257-postAction
int __pos = getMainBridgelist().getSelectedIndex();
//overridge the posistion and locate the operation
//DO NOT change the order of the switch statement below
__pos = locateoperation(__selectedString);
previousForm = __pos;
if (__selectedString != null) { //
if (__pos ==0) {//send money
//
if (SENDAmounttextField !=null){
SENDAmounttextField.setString("");
SENDphonenumbertextField.setString(getAppProperty("EMIDA_APP_PHONE_PREFIX"));
}
//if the users Kyc_level is 1, then they are prohibited from sending money or
//withdrawing cash, steer them to the upgrade form
String menulabel = getAppProperty("EMIDA_APP_UPGRADE");
if (Kyc_level.startsWith("1") && menulabel.startsWith("1"))
switchDisplayable(null, getUpgradePromptform());
else {
switchDisplayable(null, getSendmoneyform());
this.getDisplay().setCurrentItem(getSENDphonenumbertextField());
}
// write post-action user code here
} else if (__pos ==1) {//"Request cash")
if (WITHAmounttextField1 !=null){
WITHAmounttextField1.setString("");
}
//if the users Kyc_level is 1, then they are prohibited from sending money or
//withdrawing cash, steer them to the upgrade form
String menulabel = getAppProperty("EMIDA_APP_UPGRADE");
if (Kyc_level.startsWith("1") && menulabel.startsWith("1"))
switchDisplayable(null, getUpgradePromptform());
else {
switchDisplayable(null, getWithdrawcashform());
this.getDisplay().setCurrentItem(getWITHAmounttextField1());
}
// write post-action user code here
} else if (__pos ==2) {//"Deposit cash"
// write pre-action user code here
if (DepositAMTtextField !=null) {
DepositAMTtextField.setString("");
}
switchDisplayable(null, getDepositCashform());
this.getDisplay().setCurrentItem(getDepositAMTtextField());
// write post-action user code here
} else if (__pos ==3) {//"Pay a bill"
switchDisplayable(null, getPaybillmenuform());
// write post-action user code here
} else if (__pos ==4 ) {//"Top up your phone")
if (TopupSelfAmounttextField !=null){
TopupSelfAmounttextField.setString("");
}
switchDisplayable(null, getWayTopUp());
// write post-action user code here
} else if (__pos == 5 ) {//In Store
switchDisplayable(null, getInStoreform());
} else if (__pos == 6) {//cash in out form
switchDisplayable(null, getCashinoutform());
// write post-action user code here
} else if (__pos == 7) {//balance
//if (BALpintextField3 !=null)
// BALpintextField3.setString("");
UseAgentBAL = 0;
//HumanCmd = " You want to check your balance.";
HumanCmd = setLang("SEND_MSG9");
if ( SENDOPdatastringItem !=null) {
SENDOPdatastringItem.setText(HumanCmd);
}
if ( UseAgentBAL == 0 ) {
Sms_message_out = Constants.smsActionBal + SavedPIN;
}
SmsSend = buildSMSParam(Constants.smsActionBal);
switchDisplayable(null, getSendopform());
//switchDisplayable(null, getBalanceform());
// write post-action user code here
} else if (__pos == 8) {
////////////////////////////////////////////////////
//history
if (HISCommentstringItem !=null) {
HISCommentstringItem.setText("");
}
switchDisplayable(null, getHistoryform());
//////////////////////////////////////////////////
} else if (__pos == 9 ) {
////////////////////////////////////////////////
//////////////"MERCHANT LOCATOR"/////////////////////
//Alert alLocator = new Alert("","You have selected merchant locator!!",null,AlertType.INFO);
switchDisplayable(null, this.getListLocator());
///////////////////////////////////////////////
} else if (__pos == 10 ){
////////////////////////////////////////////////
//////////////"Change PIN"/////////////////////
if (CPoldPINtextField !=null) {
CPoldPINtextField.setString("");
CPnewPINtextField.setString("");
CPconfirmNEWPINtextField.setString("");
}
UseAgentPIN = 0;
switchDisplayable(null, getPINform());
///////////////////////////////////////////////
} else if (__pos == 11 ) {
//////////////////////////////////////////////
//"Change language"
switchDisplayable(null, getLanguageListForm());
//////////////////////////////////////////////
} else if (__pos == 12 ) {//ABOUT
switchDisplayable(null, getAboutform());
} else if (__pos == 13 ) {//ContactUs Support
switchDisplayable(null, getContactSupportForm());
}
}
}//GEN-BEGIN:|257-action|2|
//</editor-fold>//GEN-END:|257-action|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: Historyform ">//GEN-BEGIN:|277-getter|0|277-preInit
/**
* Returns an initialized instance of Historyform component.
*
* @return the initialized component instance
*/
public Form getHistoryform() {
if (Historyform == null) {//GEN-END:|277-getter|0|277-preInit
// write pre-init user code here
Historyform = new Form(setLang("Historyform"), new Item[]{getHISCommentstringItem()});//GEN-BEGIN:|277-getter|1|277-postInit
Historyform.addCommand(getHISbackCommand());
Historyform.addCommand(getHISokCommand());
Historyform.setCommandListener(this);//GEN-END:|277-getter|1|277-postInit
// write post-init user code here
}//GEN-BEGIN:|277-getter|2|
return Historyform;
}
//</editor-fold>//GEN-END:|277-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: HISCommentstringItem ">//GEN-BEGIN:|279-getter|0|279-preInit
/**
* Returns an initialized instance of HISCommentstringItem component.
*
* @return the initialized component instance
*/
public StringItem getHISCommentstringItem() {
if (HISCommentstringItem == null) {//GEN-END:|279-getter|0|279-preInit
// write pre-init user code here
HISCommentstringItem = new StringItem("", setLang("HISCommentstringItem"));//GEN-LINE:|279-getter|1|279-postInit
// write post-init user code here
}//GEN-BEGIN:|279-getter|2|
return HISCommentstringItem;
}
//</editor-fold>//GEN-END:|279-getter|2|
//</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: 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("/Untitled.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: AboutokCommand ">//GEN-BEGIN:|301-getter|0|301-preInit
/**
* Returns an initialized instance of AboutokCommand component.
*
* @return the initialized component instance
*/
public Command getAboutokCommand() {
if (AboutokCommand == null) {//GEN-END:|301-getter|0|301-preInit
// write pre-init user code here
AboutokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|301-getter|1|301-postInit
// write post-init user code here
}//GEN-BEGIN:|301-getter|2|
return AboutokCommand;
}
//</editor-fold>//GEN-END:|301-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer1 ">//GEN-BEGIN:|307-getter|0|307-preInit
/**
* Returns an initialized instance of spacer1 component.
*
* @return the initialized component instance
*/
public Spacer getSpacer1() {
if (spacer1 == null) {//GEN-END:|307-getter|0|307-preInit
// write pre-init user code here
spacer1 = new Spacer(16, 1);//GEN-LINE:|307-getter|1|307-postInit
// write post-init user code here
}//GEN-BEGIN:|307-getter|2|
return spacer1;
}
//</editor-fold>//GEN-END:|307-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TopupSelectform ">//GEN-BEGIN:|308-getter|0|308-preInit
/**
* Returns an initialized instance of TopupSelectform component.
*
* @return the initialized component instance
*/
public Form getTopupSelectform() {
if (TopupSelectform == null) {//GEN-END:|308-getter|0|308-preInit
// write pre-init user code here
TopupSelectform = new Form(setLang("TOPUPform"), new Item[]{getAirtimechoiceGroup()});//GEN-BEGIN:|308-getter|1|308-postInit
TopupSelectform.addCommand(getAirtimeokCommand());
TopupSelectform.addCommand(getAirtimebackCommand());
TopupSelectform.setCommandListener(this);//GEN-END:|308-getter|1|308-postInit
// write post-init user code here
}//GEN-BEGIN:|308-getter|2|
return TopupSelectform;
}
//</editor-fold>//GEN-END:|308-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AirtimechoiceGroup ">//GEN-BEGIN:|309-getter|0|309-preInit
/**
* Returns an initialized instance of AirtimechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getAirtimechoiceGroup() {
if (AirtimechoiceGroup == null) {//GEN-END:|309-getter|0|309-preInit
// write pre-init user code here
AirtimechoiceGroup = new ChoiceGroup(setLang("Airtime_option"), Choice.EXCLUSIVE);//GEN-BEGIN:|309-getter|1|309-postInit
AirtimechoiceGroup.append(setLang("Airtime_item1"), null);
AirtimechoiceGroup.append(setLang("Airtime_item2"), null);
AirtimechoiceGroup.setSelectedFlags(new boolean[]{true, false});//GEN-END:|309-getter|1|309-postInit
// write post-init user code here
}//GEN-BEGIN:|309-getter|2|
return AirtimechoiceGroup;
}
//</editor-fold>//GEN-END:|309-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AirtimeokCommand ">//GEN-BEGIN:|312-getter|0|312-preInit
/**
* Returns an initialized instance of AirtimeokCommand component.
*
* @return the initialized component instance
*/
public Command getAirtimeokCommand() {
if (AirtimeokCommand == null) {//GEN-END:|312-getter|0|312-preInit
// write pre-init user code here
AirtimeokCommand = new Command(setLang("Ok"), Command.OK, 0);//GEN-LINE:|312-getter|1|312-postInit
// write post-init user code here
}//GEN-BEGIN:|312-getter|2|
return AirtimeokCommand;
}
//</editor-fold>//GEN-END:|312-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AirtimebackCommand ">//GEN-BEGIN:|314-getter|0|314-preInit
/**
* Returns an initialized instance of AirtimebackCommand component.
*
* @return the initialized component instance
*/
public Command getAirtimebackCommand() {
if (AirtimebackCommand == null) {//GEN-END:|314-getter|0|314-preInit
// write pre-init user code here
AirtimebackCommand = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|314-getter|1|314-postInit
// write post-init user code here
}//GEN-BEGIN:|314-getter|2|
return AirtimebackCommand;
}
//</editor-fold>//GEN-END:|314-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TOPUPOtherform ">//GEN-BEGIN:|318-getter|0|318-preInit
/**
* Returns an initialized instance of TOPUPOtherform component.
*
* @return the initialized component instance
*/
public Form getTOPUPOtherform() {
if (TOPUPOtherform == null) {//GEN-END:|318-getter|0|318-preInit
// write pre-init user code here
TOPUPOtherform = new Form(setLang("TOPUPform"), new Item[]{getTopupOtherMNumbertextField(), getTopupOtherAmounttextField()});//GEN-BEGIN:|318-getter|1|318-postInit
TOPUPOtherform.addCommand(getToupOtherokCommand());
TOPUPOtherform.addCommand(getTopupOtherbackCommand());
TOPUPOtherform.setCommandListener(this);//GEN-END:|318-getter|1|318-postInit
// write post-init user code here
}//GEN-BEGIN:|318-getter|2|
return TOPUPOtherform;
}
//</editor-fold>//GEN-END:|318-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ToupOtherokCommand ">//GEN-BEGIN:|320-getter|0|320-preInit
/**
* Returns an initialized instance of ToupOtherokCommand component.
*
* @return the initialized component instance
*/
public Command getToupOtherokCommand() {
if (ToupOtherokCommand == null) {//GEN-END:|320-getter|0|320-preInit
// write pre-init user code here
ToupOtherokCommand = new Command(setLang("Ok"), Command.OK, 0);//GEN-LINE:|320-getter|1|320-postInit
// write post-init user code here
}//GEN-BEGIN:|320-getter|2|
return ToupOtherokCommand;
}
//</editor-fold>//GEN-END:|320-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TopupOtherbackCommand ">//GEN-BEGIN:|322-getter|0|322-preInit
/**
* Returns an initialized instance of TopupOtherbackCommand component.
*
* @return the initialized component instance
*/
public Command getTopupOtherbackCommand() {
if (TopupOtherbackCommand == null) {//GEN-END:|322-getter|0|322-preInit
// write pre-init user code here
TopupOtherbackCommand = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|322-getter|1|322-postInit
// write post-init user code here
}//GEN-BEGIN:|322-getter|2|
return TopupOtherbackCommand;
}
//</editor-fold>//GEN-END:|322-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TopupOtherMNumbertextField ">//GEN-BEGIN:|326-getter|0|326-preInit
/**
* Returns an initialized instance of TopupOtherMNumbertextField component.
*
* @return the initialized component instance
*/
public TextField getTopupOtherMNumbertextField() {
if (TopupOtherMNumbertextField == null) {//GEN-END:|326-getter|0|326-preInit
// write pre-init user code here
TopupOtherMNumbertextField = new TextField(setLang("TOPMNumbertextField4"), "", 32, TextField.PHONENUMBER);//GEN-LINE:|326-getter|1|326-postInit
// write post-init user code here
}//GEN-BEGIN:|326-getter|2|
return TopupOtherMNumbertextField;
}
//</editor-fold>//GEN-END:|326-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: TopupOtherAmounttextField ">//GEN-BEGIN:|327-getter|0|327-preInit
/**
* Returns an initialized instance of TopupOtherAmounttextField component.
*
* @return the initialized component instance
*/
public TextField getTopupOtherAmounttextField() {
if (TopupOtherAmounttextField == null) {//GEN-END:|327-getter|0|327-preInit
// write pre-init user code here
TopupOtherAmounttextField = new TextField(setLang("TOPamounttextField3"), "", 32, TextField.ANY);//GEN-LINE:|327-getter|1|327-postInit
// write post-init user code here
}//GEN-BEGIN:|327-getter|2|
return TopupOtherAmounttextField;
}
//</editor-fold>//GEN-END:|327-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AboutbackCommand ">//GEN-BEGIN:|329-getter|0|329-preInit
/**
* Returns an initialized instance of AboutbackCommand component.
*
* @return the initialized component instance
*/
public Command getAboutbackCommand() {
if (AboutbackCommand == null) {//GEN-END:|329-getter|0|329-preInit
// write pre-init user code here
AboutbackCommand = new Command(setLang("Back"), "", Command.BACK, 0);//GEN-LINE:|329-getter|1|329-postInit
// write post-init user code here
}//GEN-BEGIN:|329-getter|2|
return AboutbackCommand;
}
//</editor-fold>//GEN-END:|329-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: spacer2 ">//GEN-BEGIN:|332-getter|0|332-preInit
/**
* Returns an initialized instance of spacer2 component.
*
* @return the initialized component instance
*/
public Spacer getSpacer2() {
if (spacer2 == null) {//GEN-END:|332-getter|0|332-preInit
// write pre-init user code here
spacer2 = new Spacer(16, 1);//GEN-LINE:|332-getter|1|332-postInit
// write post-init user code here
}//GEN-BEGIN:|332-getter|2|
return spacer2;
}
//</editor-fold>//GEN-END:|332-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: imageItem2 ">//GEN-BEGIN:|333-getter|0|333-preInit
/**
* Returns an initialized instance of imageItem2 component.
*
* @return the initialized component instance
*/
public ImageItem getImageItem2() {
if (imageItem2 == null) {//GEN-END:|333-getter|0|333-preInit
// write pre-init user code here
imageItem2 = new ImageItem("", getImage2(), ImageItem.LAYOUT_DEFAULT, "<Missing Image>");//GEN-LINE:|333-getter|1|333-postInit
// write post-init user code here
}//GEN-BEGIN:|333-getter|2|
return imageItem2;
}
//</editor-fold>//GEN-END:|333-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AbouthelpCommand ">//GEN-BEGIN:|335-getter|0|335-preInit
/**
* Returns an initialized instance of AbouthelpCommand component.
*
* @return the initialized component instance
*/
public Command getAbouthelpCommand() {
if (AbouthelpCommand == null) {//GEN-END:|335-getter|0|335-preInit
// write pre-init user code here
AbouthelpCommand = new Command(setLang("Help"), "", Command.HELP, 0);//GEN-LINE:|335-getter|1|335-postInit
// write post-init user code here
}//GEN-BEGIN:|335-getter|2|
return AbouthelpCommand;
}
//</editor-fold>//GEN-END:|335-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SupportcancelCommand ">//GEN-BEGIN:|338-getter|0|338-preInit
/**
* Returns an initialized instance of SupportcancelCommand component.
*
* @return the initialized component instance
*/
public Command getSupportcancelCommand() {
if (SupportcancelCommand == null) {//GEN-END:|338-getter|0|338-preInit
// write pre-init user code here
SupportcancelCommand = new Command(setLang("Cancel"), Command.CANCEL, 0);//GEN-LINE:|338-getter|1|338-postInit
// write post-init user code here
}//GEN-BEGIN:|338-getter|2|
return SupportcancelCommand;
}
//</editor-fold>//GEN-END:|338-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Supportform ">//GEN-BEGIN:|337-getter|0|337-preInit
/**
* Returns an initialized instance of Supportform component.
*
* @return the initialized component instance
*/
public Form getSupportform() {
if (Supportform == null) {//GEN-END:|337-getter|0|337-preInit
// write pre-init user code here
Supportform = new Form(setLang("Support"), new Item[]{getSupportMsgItem1(), getSupportMsgItem2(), getSupportMsgItem3()});//GEN-BEGIN:|337-getter|1|337-postInit
Supportform.addCommand(getSupportcancelCommand());
Supportform.addCommand(getSupportokCommand());
Supportform.setCommandListener(this);//GEN-END:|337-getter|1|337-postInit
// write post-init user code here
}//GEN-BEGIN:|337-getter|2|
return Supportform;
}
//</editor-fold>//GEN-END:|337-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SupportMsgItem1 ">//GEN-BEGIN:|340-getter|0|340-preInit
/**
* Returns an initialized instance of SupportMsgItem1 component.
*
* @return the initialized component instance
*/
public StringItem getSupportMsgItem1() {
if (SupportMsgItem1 == null) {//GEN-END:|340-getter|0|340-preInit
// write pre-init user code here
SupportMsgItem1 = new StringItem("", setLang("SupportMsg1"));//GEN-BEGIN:|340-getter|1|340-postInit
SupportMsgItem1.setLayout(ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER);//GEN-END:|340-getter|1|340-postInit
// write post-init user code here
}//GEN-BEGIN:|340-getter|2|
return SupportMsgItem1;
}
//</editor-fold>//GEN-END:|340-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SupportokCommand ">//GEN-BEGIN:|342-getter|0|342-preInit
/**
* Returns an initialized instance of SupportokCommand component.
*
* @return the initialized component instance
*/
public Command getSupportokCommand() {
if (SupportokCommand == null) {//GEN-END:|342-getter|0|342-preInit
// write pre-init user code here
SupportokCommand = new Command(setLang("Ok"), "", Command.OK, 0);//GEN-LINE:|342-getter|1|342-postInit
// write post-init user code here
}//GEN-BEGIN:|342-getter|2|
return SupportokCommand;
}
//</editor-fold>//GEN-END:|342-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommandWayTopUp ">//GEN-BEGIN:|351-getter|0|351-preInit
/**
* Returns an initialized instance of okCommandWayTopUp component.
*
* @return the initialized component instance
*/
public Command getOkCommandWayTopUp() {
if (okCommandWayTopUp == null) {//GEN-END:|351-getter|0|351-preInit
// write pre-init user code here
okCommandWayTopUp = new Command("Ok", Command.OK, 0);//GEN-LINE:|351-getter|1|351-postInit
// write post-init user code here
}//GEN-BEGIN:|351-getter|2|
return okCommandWayTopUp;
}
//</editor-fold>//GEN-END:|351-getter|2|
//</editor-fold>
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: WayTopUp ">//GEN-BEGIN:|348-getter|0|348-preInit
/**
* Returns an initialized instance of WayTopUp component.
*
* @return the initialized component instance
*/
public List getWayTopUp() {
if (WayTopUp == null) {//GEN-END:|348-getter|0|348-preInit
// write pre-init user code here
WayTopUp = new List(setLang("MENUTOPUP"), Choice.IMPLICIT);//GEN-BEGIN:|348-getter|1|348-postInit
WayTopUp.append(Lang.getText("toMyPhone"), null);
WayTopUp.append(Lang.getText("otherCellPhone"), null);
WayTopUp.addCommand(getBackCommandWayTopUp());
WayTopUp.setCommandListener(this);
WayTopUp.setSelectedFlags(new boolean[]{false, false});//GEN-END:|348-getter|1|348-postInit
// write post-init user code here
}//GEN-BEGIN:|348-getter|2|
return WayTopUp;
}
//</editor-fold>//GEN-END:|348-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: WayTopUpAction ">//GEN-BEGIN:|348-action|0|348-preAction
/**
* Performs an action assigned to the selected list element in the WayTopUp
* component.
*/
public void WayTopUpAction() {//GEN-END:|348-action|0|348-preAction
// enter pre-action user code here
String __selectedString = getWayTopUp().getString(getWayTopUp().getSelectedIndex());//GEN-BEGIN:|348-action|1|358-preAction
if (__selectedString != null) {
if (__selectedString.equals(Lang.getText("toMyPhone"))) {//GEN-END:|348-action|1|358-preAction
// write pre-action user code here
switchDisplayable(null, getPreSelectCarrierListForm());//GEN-LINE:|348-action|2|358-postAction
// write post-action user code here
} else if (__selectedString.equals(Lang.getText("otherCellPhone"))) {//GEN-LINE:|348-action|3|359-preAction
// write pre-action user code here
this.listCarriersBackTo = 0;
if (ListCarriersListForm != null ) {
if ( this.carriersInMemory != null && this.carriersInMemory.size()>0 ){
String lastDateCarrierUpdate = GetProperty(Constants.PROPERTY_DATE_LAST_CARRIER_UPDATE);
//we must update the carrier database?
boolean result = updateCarrierList(lastDateCarrierUpdate);
result = true;
if ( result ){
this.carriersInMemory = null;
this.HumanCmd = this.setLang("UpdateCarrierList");
//The smsActionAutomaticTaskOtherPhone is replaced with smsActionCarriers
this.Sms_message_out = Constants.smsActionAutomaticTaskOtherPhone + SavedPIN;
this.prepareAndSendRequest();
}
else{
this.fillListCarriers();
}
}
else{
this.HumanCmd = this.setLang("UpdateCarrierList");
//The smsActionAutomaticTaskOtherPhone is replaced with smsActionCarriers
this.Sms_message_out = Constants.smsActionAutomaticTaskOtherPhone + SavedPIN;
this.prepareAndSendRequest();
}
} else { //retrieve carriers
this.HumanCmd = this.setLang("UpdateCarrierList");
this.Sms_message_out = Constants.smsActionCarriers + SavedPIN;
this.prepareAndSendRequest();
}
switchDisplayable(null, getListCarriersListForm());//GEN-LINE:|348-action|4|359-postAction
// write post-action user code here
}//GEN-BEGIN:|348-action|5|348-postAction
}//GEN-END:|348-action|5|348-postAction
}//GEN-BEGIN:|348-action|6|
//</editor-fold>//GEN-END:|348-action|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand ">//GEN-BEGIN:|356-getter|0|356-preInit
/**
* Returns an initialized instance of itemCommand component.
*
* @return the initialized component instance
*/
public Command getItemCommand() {
if (itemCommand == null) {//GEN-END:|356-getter|0|356-preInit
// write pre-init user code here
itemCommand = new Command("Item", Command.ITEM, 0);//GEN-LINE:|356-getter|1|356-postInit
// write post-init user code here
}//GEN-BEGIN:|356-getter|2|
return itemCommand;
}
//</editor-fold>//GEN-END:|356-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommandPreSelectCarrier ">//GEN-BEGIN:|366-getter|0|366-preInit
/**
* Returns an initialized instance of backCommandPreSelectCarrier component.
*
* @return the initialized component instance
*/
public Command getBackCommandPreSelectCarrier() {
if (backCommandPreSelectCarrier == null) {//GEN-END:|366-getter|0|366-preInit
// write pre-init user code here
backCommandPreSelectCarrier = new Command("Back", Command.BACK, 0);//GEN-LINE:|366-getter|1|366-postInit
// write post-init user code here
}//GEN-BEGIN:|366-getter|2|
return backCommandPreSelectCarrier;
}
//</editor-fold>//GEN-END:|366-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: PreSelectCarrierListForm ">//GEN-BEGIN:|363-getter|0|363-preInit
/**
* Returns an initialized instance of PreSelectCarrierListForm component.
*
* @return the initialized component instance
*/
public List getPreSelectCarrierListForm() {
if (PreSelectCarrierListForm == null) {//GEN-END:|363-getter|0|363-preInit
// write pre-init user code here
PreSelectCarrierListForm = new List("", Choice.IMPLICIT);//GEN-BEGIN:|363-getter|1|363-postInit
PreSelectCarrierListForm.append(getDefaultCarrier(), null);
PreSelectCarrierListForm.append(setLang("OtherCarriers"), null);
PreSelectCarrierListForm.addCommand(getBackCommandPreSelectCarrier());
PreSelectCarrierListForm.setCommandListener(this);
PreSelectCarrierListForm.setSelectedFlags(new boolean[]{true, false});//GEN-END:|363-getter|1|363-postInit
// write post-init user code here
}//GEN-BEGIN:|363-getter|2|
return PreSelectCarrierListForm;
}
//</editor-fold>//GEN-END:|363-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: PreSelectCarrierListFormAction ">//GEN-BEGIN:|363-action|0|363-preAction
/**
* Performs an action assigned to the selected list element in the
* PreSelectCarrierListForm component.
*/
public void PreSelectCarrierListFormAction() {//GEN-END:|363-action|0|363-preAction
// enter pre-action user code here
String __selectedString = getPreSelectCarrierListForm().getString(getPreSelectCarrierListForm().getSelectedIndex());//GEN-BEGIN:|363-action|1|368-preAction
if (__selectedString != null) {
if (__selectedString.equals(getDefaultCarrier())) {//GEN-END:|363-action|1|368-preAction
// write pre-action user code here
//yes, this is my Carrier
String carrierId = GetProperty(Constants.PROPERTY_CARRIER_ID);
if ( carrierId != null){
this.selectedCarrierId = carrierId;
this.selectedCarrierName = GetProperty(Constants.PROPERTY_CARRIER_NAME);
}
this.listCarriersBackTo = 2;
switchDisplayable(null, getTOPUPSelfform());//GEN-LINE:|363-action|2|368-postAction
// write post-action user code here
} else if (__selectedString.equals(setLang("OtherCarriers"))) {//GEN-LINE:|363-action|3|369-preAction
// write pre-action user code here
this.listCarriersBackTo = 1;
switchDisplayable(null, getListCarriersListForm());//GEN-LINE:|363-action|4|369-postAction
if (ListCarriersListForm != null &&
this.carriersInMemory != null &&
this.carriersInMemory.size() > 0) {
this.fillListCarriers();
} else {
//this.HumanCmd = this.setLang("UpdateCarrierList");
//this.Sms_message_out = Constants.smsActionCarriers + SavedPIN;
this.HumanCmd = this.setLang("UpdateCarrierList");
//The smsActionAutomaticTaskOtherPhone is replaced with smsActionCarriers
this.Sms_message_out = Constants.smsActionAutomaticTaskOtherPhone + SavedPIN;
this.prepareAndSendRequest();
}
}//GEN-BEGIN:|363-action|5|363-postAction
}//GEN-END:|363-action|5|363-postAction
// enter post-action user code here
}//GEN-BEGIN:|363-action|6|
//</editor-fold>//GEN-END:|363-action|6|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommandListCarriersForm ">//GEN-BEGIN:|374-getter|0|374-preInit
/**
* Returns an initialized instance of backCommandListCarriersForm component.
*
* @return the initialized component instance
*/
public Command getBackCommandListCarriersForm() {
if (backCommandListCarriersForm == null) {//GEN-END:|374-getter|0|374-preInit
// write pre-init user code here
backCommandListCarriersForm = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|374-getter|1|374-postInit
// write post-init user code here
}//GEN-BEGIN:|374-getter|2|
return backCommandListCarriersForm;
}
//</editor-fold>//GEN-END:|374-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ListCarriersListForm ">//GEN-BEGIN:|371-getter|0|371-preInit
/**
* Returns an initialized instance of ListCarriersListForm component.
*
* @return the initialized component instance
*/
public List getListCarriersListForm() {
if (ListCarriersListForm == null) {//GEN-END:|371-getter|0|371-preInit
// write pre-init user code here
ListCarriersListForm = new List(setLang("SELECT_CARRIERS"), Choice.IMPLICIT);//GEN-BEGIN:|371-getter|1|371-postInit
ListCarriersListForm.addCommand(getBackCommandListCarriersForm());
ListCarriersListForm.setCommandListener(this);//GEN-END:|371-getter|1|371-postInit
// write post-init user code here
}//GEN-BEGIN:|371-getter|2|
return ListCarriersListForm;
}
//</editor-fold>//GEN-END:|371-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: ListCarriersListFormAction ">//GEN-BEGIN:|371-action|0|371-preAction
/**
* Performs an action assigned to the selected list element in the
* ListCarriersListForm component.
*/
public void ListCarriersListFormAction() {//GEN-END:|371-action|0|371-preAction
// enter pre-action user code here
//The assumption here is that the carrier list has been retrieved from the CAT server
String __selectedString = getListCarriersListForm().getString(getListCarriersListForm().getSelectedIndex());//GEN-LINE:|371-action|1|371-postAction
// enter post-action user code here
findTemporalCarrierByName(__selectedString);
if ( this.listCarriersBackTo == 0 ){
this.switchDisplayable(null, this.getTOPUPOtherform() );
getTopupOtherMNumbertextField().setString("");
getTopupOtherAmounttextField().setString("");
this.getDisplay().setCurrentItem(getTopupOtherMNumbertextField());
}
else if ( this.listCarriersBackTo == 1){
this.switchDisplayable(null, this.getTOPUPSelfform());
}
else{
this.switchDisplayable(null, this.getMainBridgelist() );
}
}//GEN-BEGIN:|371-action|2|
//</editor-fold>//GEN-END:|371-action|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand ">//GEN-BEGIN:|387-getter|0|387-preInit
/**
* Returns an initialized instance of okCommand component.
*
* @return the initialized component instance
*/
public Command getOkCommand() {
if (okCommand == null) {//GEN-END:|387-getter|0|387-preInit
// write pre-init user code here
okCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|387-getter|1|387-postInit
// write post-init user code here
}//GEN-BEGIN:|387-getter|2|
return okCommand;
}
//</editor-fold>//GEN-END:|387-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|389-getter|0|389-preInit
/**
* Returns an initialized instance of backCommand1 component.
*
* @return the initialized component instance
*/
public Command getBackCommand1() {
if (backCommand1 == null) {//GEN-END:|389-getter|0|389-preInit
// write pre-init user code here
backCommand1 = new Command("Back", Command.BACK, 0);//GEN-LINE:|389-getter|1|389-postInit
// write post-init user code here
}//GEN-BEGIN:|389-getter|2|
return backCommand1;
}
//</editor-fold>//GEN-END:|389-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommandLanguageListForm ">//GEN-BEGIN:|396-getter|0|396-preInit
/**
* Returns an initialized instance of backCommandLanguageListForm component.
*
* @return the initialized component instance
*/
public Command getBackCommandLanguageListForm() {
if (backCommandLanguageListForm == null) {//GEN-END:|396-getter|0|396-preInit
// write pre-init user code here
backCommandLanguageListForm = new Command("Back", Command.BACK, 0);//GEN-LINE:|396-getter|1|396-postInit
// write post-init user code here
}//GEN-BEGIN:|396-getter|2|
return backCommandLanguageListForm;
}
//</editor-fold>//GEN-END:|396-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: LanguageListForm ">//GEN-BEGIN:|391-getter|0|391-preInit
/**
* Returns an initialized instance of LanguageListForm component.
*
* @return the initialized component instance
*/
public List getLanguageListForm() {
if (LanguageListForm == null) {//GEN-END:|391-getter|0|391-preInit
// write pre-init user code here
LanguageListForm = new List(setLang("MENULANGUAGE"), Choice.IMPLICIT);//GEN-BEGIN:|391-getter|1|391-postInit
LanguageListForm.append(setLang("English"), null);
LanguageListForm.append(setLang("Espa\u00F1ol"), null);
LanguageListForm.addCommand(getBackCommandLanguageListForm());
LanguageListForm.setCommandListener(this);
LanguageListForm.setSelectedFlags(new boolean[]{false, false});//GEN-END:|391-getter|1|391-postInit
// write post-init user code here
}//GEN-BEGIN:|391-getter|2|
return LanguageListForm;
}
//</editor-fold>//GEN-END:|391-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: LanguageListFormAction ">//GEN-BEGIN:|391-action|0|391-preAction
/**
* Performs an action assigned to the selected list element in the
* LanguageListForm component.
*/
public void LanguageListFormAction() {//GEN-END:|391-action|0|391-preAction
// enter pre-action user code here
String __selectedString = getLanguageListForm().getString(getLanguageListForm().getSelectedIndex());//GEN-BEGIN:|391-action|1|394-preAction
if (__selectedString != null) {
if (__selectedString.equals(setLang("English"))) {//GEN-END:|391-action|1|394-preAction
// write pre-action user code here
this.LangAbbrev = "E";
LanguageListForm.setSelectedFlags(new boolean[] { true, false });
SetProperty(Constants.PROPERTY_LANGUAGE, "ENGLISH");
Language = "ENGLISH";
//GEN-LINE:|391-action|2|394-postAction
// write post-action user code here
} else if (__selectedString.equals(setLang("Espa\u00F1ol"))) {//GEN-LINE:|391-action|3|395-preAction
// write pre-action user code here
this.LangAbbrev = "S";
LanguageListForm.setSelectedFlags(new boolean[] { false, true });
SetProperty(Constants.PROPERTY_LANGUAGE, "SPANISH");
Language = "SPANISH";
//GEN-LINE:|391-action|4|395-postAction
// write post-action user code here
}//GEN-BEGIN:|391-action|5|391-postAction
}//GEN-END:|391-action|5|391-postAction
// enter post-action user code here
Lang = new Language(Language);
createCanvasMainList(1);
if ( SENDOPdatastringItem != null)
SENDOPdatastringItem.setLabel(setLang("SENDOPdatastringItem"));
}//GEN-BEGIN:|391-action|6|
//</editor-fold>//GEN-END:|391-action|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommandWayTopUp ">//GEN-BEGIN:|353-getter|0|353-preInit
/**
* Returns an initialized instance of backCommandWayTopUp component.
*
* @return the initialized component instance
*/
public Command getBackCommandWayTopUp() {
if (backCommandWayTopUp == null) {//GEN-END:|353-getter|0|353-preInit
// write pre-init user code here
backCommandWayTopUp = new Command(setLang("Back"), Command.OK, 1);//GEN-LINE:|353-getter|1|353-postInit
// write post-init user code here
}//GEN-BEGIN:|353-getter|2|
return backCommandWayTopUp;
}
//</editor-fold>//GEN-END:|353-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommandSettingsListForm ">//GEN-BEGIN:|403-getter|0|403-preInit
/**
* Returns an initialized instance of backCommandSettingsListForm component.
*
* @return the initialized component instance
*/
public Command getBackCommandSettingsListForm() {
if (backCommandSettingsListForm == null) {//GEN-END:|403-getter|0|403-preInit
// write pre-init user code here
backCommandSettingsListForm = new Command(setLang("BACK"), Command.BACK, 0);//GEN-LINE:|403-getter|1|403-postInit
// write post-init user code here
}//GEN-BEGIN:|403-getter|2|
return backCommandSettingsListForm;
}
//</editor-fold>//GEN-END:|403-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SupportMsgItem2 ">//GEN-BEGIN:|405-getter|0|405-preInit
/**
* Returns an initialized instance of SupportMsgItem2 component.
*
* @return the initialized component instance
*/
public StringItem getSupportMsgItem2() {
if (SupportMsgItem2 == null) {//GEN-END:|405-getter|0|405-preInit
// write pre-init user code here
SupportMsgItem2 = new StringItem("", setLang("SupportMsg2"));//GEN-BEGIN:|405-getter|1|405-postInit
SupportMsgItem2.setLayout(ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER);//GEN-END:|405-getter|1|405-postInit
// write post-init user code here
}//GEN-BEGIN:|405-getter|2|
return SupportMsgItem2;
}
//</editor-fold>//GEN-END:|405-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SupportMsgItem3 ">//GEN-BEGIN:|406-getter|0|406-preInit
/**
* Returns an initialized instance of SupportMsgItem3 component.
*
* @return the initialized component instance
*/
public StringItem getSupportMsgItem3() {
if (SupportMsgItem3 == null) {//GEN-END:|406-getter|0|406-preInit
// write pre-init user code here
SupportMsgItem3 = new StringItem("", setLang("SupportMsg3"));//GEN-BEGIN:|406-getter|1|406-postInit
SupportMsgItem3.setLayout(ImageItem.LAYOUT_CENTER | Item.LAYOUT_TOP | Item.LAYOUT_BOTTOM | Item.LAYOUT_VCENTER);//GEN-END:|406-getter|1|406-postInit
// write post-init user code here
}//GEN-BEGIN:|406-getter|2|
return SupportMsgItem3;
}
//</editor-fold>//GEN-END:|406-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Aboutform ">//GEN-BEGIN:|299-getter|0|299-preInit
/**
* Returns an initialized instance of Aboutform component.
*
* @return the initialized component instance
*/
public Form getAboutform() {
if (Aboutform == null) {//GEN-END:|299-getter|0|299-preInit
// write pre-init user code here
Aboutform = new Form(setLang("Aboutform"), new Item[]{getImageItem2(), getSpacer1(), getSpacer2(), getAboutCopyrightstringItem()});//GEN-BEGIN:|299-getter|1|299-postInit
Aboutform.addCommand(getAboutbackCommand());
Aboutform.setCommandListener(this);//GEN-END:|299-getter|1|299-postInit
// write post-init user code here
//add support string
}//GEN-BEGIN:|299-getter|2|
return Aboutform;
}
//</editor-fold>//GEN-END:|299-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: SOUserPIN ">//GEN-BEGIN:|407-getter|0|407-preInit
/**
* Returns an initialized instance of SOUserPIN component.
*
* @return the initialized component instance
*/
public TextField getSOUserPIN() {
if (SOUserPIN == null) {//GEN-END:|407-getter|0|407-preInit
// write pre-init user code here
SOUserPIN = new TextField(setLang("pin"), "", 32, TextField.ANY | TextField.PASSWORD);//GEN-LINE:|407-getter|1|407-postInit
// write post-init user code here
}//GEN-BEGIN:|407-getter|2|
return SOUserPIN;
}
//</editor-fold>//GEN-END:|407-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: LocatorOk ">//GEN-BEGIN:|413-getter|0|413-preInit
/**
* Returns an initialized instance of LocatorOk component.
*
* @return the initialized component instance
*/
public Command getLocatorOk() {
if (LocatorOk == null) {//GEN-END:|413-getter|0|413-preInit
// write pre-init user code here
LocatorOk = new Command("Ok", Command.OK, 0);//GEN-LINE:|413-getter|1|413-postInit
// write post-init user code here
}//GEN-BEGIN:|413-getter|2|
return LocatorOk;
}
//</editor-fold>//GEN-END:|413-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: LocatorBack ">//GEN-BEGIN:|415-getter|0|415-preInit
/**
* Returns an initialized instance of LocatorBack component.
*
* @return the initialized component instance
*/
public Command getLocatorBack() {
if (LocatorBack == null) {//GEN-END:|415-getter|0|415-preInit
// write pre-init user code here
LocatorBack = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|415-getter|1|415-postInit
// write post-init user code here
}//GEN-BEGIN:|415-getter|2|
return LocatorBack;
}
//</editor-fold>//GEN-END:|415-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ListLocator ">//GEN-BEGIN:|408-getter|0|408-preInit
/**
* Returns an initialized instance of ListLocator component.
*
* @return the initialized component instance
*/
public List getListLocator() {
if (ListLocator == null) {//GEN-END:|408-getter|0|408-preInit
// write pre-init user code here
ListLocator = new List(setLang("MENULOCATOR"), Choice.IMPLICIT);//GEN-BEGIN:|408-getter|1|408-postInit
ListLocator.append(setLang("ZipCode"), null);
ListLocator.append(setLang("State/City"), null);
ListLocator.addCommand(getLocatorBack());
ListLocator.setCommandListener(this);
ListLocator.setSelectedFlags(new boolean[]{false, false});//GEN-END:|408-getter|1|408-postInit
// write post-init user code here
}//GEN-BEGIN:|408-getter|2|
return ListLocator;
}
//</editor-fold>//GEN-END:|408-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: ListLocatorAction ">//GEN-BEGIN:|408-action|0|408-preAction
/**
* Performs an action assigned to the selected list element in the
* ListLocator component.
*/
public void ListLocatorAction() {//GEN-END:|408-action|0|408-preAction
// enter pre-action user code here
String __selectedString = getListLocator().getString(getListLocator().getSelectedIndex());//GEN-BEGIN:|408-action|1|466-preAction
if (__selectedString != null) {
if (__selectedString.equals(setLang("ZipCode"))) {//GEN-END:|408-action|1|466-preAction
// write pre-action user code here
if ( ZipCodeTextField != null ){
this.ZipCodeTextField.setString("");
}
switchDisplayable(null, getZipCodeForm());//GEN-LINE:|408-action|2|466-postAction
// write post-action user code here
} else if (__selectedString.equals(setLang("State/City"))) {//GEN-LINE:|408-action|3|467-preAction
// write pre-action user code here
switchDisplayable(null, getStateList());//GEN-LINE:|408-action|4|467-postAction
// write post-action user code here
}//GEN-BEGIN:|408-action|5|408-postAction
}//GEN-END:|408-action|5|408-postAction
// enter post-action user code here
}//GEN-BEGIN:|408-action|6|
//</editor-fold>//GEN-END:|408-action|6|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: StateBackCommand ">//GEN-BEGIN:|432-getter|0|432-preInit
/**
* Returns an initialized instance of StateBackCommand component.
*
* @return the initialized component instance
*/
public Command getStateBackCommand() {
if (StateBackCommand == null) {//GEN-END:|432-getter|0|432-preInit
// write pre-init user code here
StateBackCommand = new Command(setLang("Back"), "", Command.BACK, 0);//GEN-LINE:|432-getter|1|432-postInit
// write post-init user code here
}//GEN-BEGIN:|432-getter|2|
return StateBackCommand;
}
//</editor-fold>//GEN-END:|432-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: StateOkCommand ">//GEN-BEGIN:|434-getter|0|434-preInit
/**
* Returns an initialized instance of StateOkCommand component.
*
* @return the initialized component instance
*/
public Command getStateOkCommand() {
if (StateOkCommand == null) {//GEN-END:|434-getter|0|434-preInit
// write pre-init user code here
StateOkCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|434-getter|1|434-postInit
// write post-init user code here
}//GEN-BEGIN:|434-getter|2|
return StateOkCommand;
}
//</editor-fold>//GEN-END:|434-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: StateList ">//GEN-BEGIN:|428-getter|0|428-preInit
/**
* Returns an initialized instance of StateList component.
*
* @return the initialized component instance
*/
public List getStateList() {
if (StateList == null) {//GEN-END:|428-getter|0|428-preInit
// write pre-init user code here
StateList = new List(setLang("State"), Choice.IMPLICIT);//GEN-BEGIN:|428-getter|1|428-postInit
StateList.addCommand(getStateBackCommand());
StateList.setCommandListener(this);//GEN-END:|428-getter|1|428-postInit
// write post-init user code here
}//GEN-BEGIN:|428-getter|2|
return StateList;
}
//</editor-fold>//GEN-END:|428-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: StateListAction ">//GEN-BEGIN:|428-action|0|428-preAction
/**
* Performs an action assigned to the selected list element in the StateList
* component.
*/
public void StateListAction() {//GEN-END:|428-action|0|428-preAction
// enter pre-action user code here
String __selectedString = getStateList().getString(getStateList().getSelectedIndex());//GEN-LINE:|428-action|1|428-postAction
// enter post-action user code here
if ( CityTextField != null )
{
this.CityTextField.setString("");
}
this.switchDisplayable(null, this.getCityForm());
}//GEN-BEGIN:|428-action|2|
//</editor-fold>//GEN-END:|428-action|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CityForm ">//GEN-BEGIN:|443-getter|0|443-preInit
/**
* Returns an initialized instance of CityForm component.
*
* @return the initialized component instance
*/
public Form getCityForm() {
if (CityForm == null) {//GEN-END:|443-getter|0|443-preInit
// write pre-init user code here
CityForm = new Form("", new Item[]{getCityTextField()});//GEN-BEGIN:|443-getter|1|443-postInit
CityForm.addCommand(getCityBackCommand());
CityForm.addCommand(getCityOkCommand());
CityForm.setCommandListener(this);//GEN-END:|443-getter|1|443-postInit
// write post-init user code here
}//GEN-BEGIN:|443-getter|2|
return CityForm;
}
//</editor-fold>//GEN-END:|443-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CityTextField ">//GEN-BEGIN:|444-getter|0|444-preInit
/**
* Returns an initialized instance of CityTextField component.
*
* @return the initialized component instance
*/
public TextField getCityTextField() {
if (CityTextField == null) {//GEN-END:|444-getter|0|444-preInit
// write pre-init user code here
CityTextField = new TextField(setLang("City"), "", 32, TextField.ANY);//GEN-LINE:|444-getter|1|444-postInit
// write post-init user code here
}//GEN-BEGIN:|444-getter|2|
return CityTextField;
}
//</editor-fold>//GEN-END:|444-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CityBackCommand ">//GEN-BEGIN:|447-getter|0|447-preInit
/**
* Returns an initialized instance of CityBackCommand component.
*
* @return the initialized component instance
*/
public Command getCityBackCommand() {
if (CityBackCommand == null) {//GEN-END:|447-getter|0|447-preInit
// write pre-init user code here
CityBackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|447-getter|1|447-postInit
// write post-init user code here
}//GEN-BEGIN:|447-getter|2|
return CityBackCommand;
}
//</editor-fold>//GEN-END:|447-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: CityOkCommand ">//GEN-BEGIN:|450-getter|0|450-preInit
/**
* Returns an initialized instance of CityOkCommand component.
*
* @return the initialized component instance
*/
public Command getCityOkCommand() {
if (CityOkCommand == null) {//GEN-END:|450-getter|0|450-preInit
// write pre-init user code here
CityOkCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|450-getter|1|450-postInit
// write post-init user code here
}//GEN-BEGIN:|450-getter|2|
return CityOkCommand;
}
//</editor-fold>//GEN-END:|450-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ZipCodeForm ">//GEN-BEGIN:|454-getter|0|454-preInit
/**
* Returns an initialized instance of ZipCodeForm component.
*
* @return the initialized component instance
*/
public Form getZipCodeForm() {
if (ZipCodeForm == null) {//GEN-END:|454-getter|0|454-preInit
// write pre-init user code here
ZipCodeForm = new Form(setLang("ZipCode"), new Item[]{getZipCodeTextField()});//GEN-BEGIN:|454-getter|1|454-postInit
ZipCodeForm.addCommand(getZipCodeBackCommand());
ZipCodeForm.addCommand(getZipCodeOkCommand());
ZipCodeForm.setCommandListener(this);//GEN-END:|454-getter|1|454-postInit
// write post-init user code here
}//GEN-BEGIN:|454-getter|2|
return ZipCodeForm;
}
//</editor-fold>//GEN-END:|454-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ZipCodeTextField ">//GEN-BEGIN:|458-getter|0|458-preInit
/**
* Returns an initialized instance of ZipCodeTextField component.
*
* @return the initialized component instance
*/
public TextField getZipCodeTextField() {
if (ZipCodeTextField == null) {//GEN-END:|458-getter|0|458-preInit
// write pre-init user code here
ZipCodeTextField = new TextField("", "", 32, TextField.NUMERIC);//GEN-LINE:|458-getter|1|458-postInit
// write post-init user code here
}//GEN-BEGIN:|458-getter|2|
return ZipCodeTextField;
}
//</editor-fold>//GEN-END:|458-getter|2|
//</editor-fold>
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ZipCodeBackCommand ">//GEN-BEGIN:|460-getter|0|460-preInit
/**
* Returns an initialized instance of ZipCodeBackCommand component.
*
* @return the initialized component instance
*/
public Command getZipCodeBackCommand() {
if (ZipCodeBackCommand == null) {//GEN-END:|460-getter|0|460-preInit
// write pre-init user code here
ZipCodeBackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|460-getter|1|460-postInit
// write post-init user code here
}//GEN-BEGIN:|460-getter|2|
return ZipCodeBackCommand;
}
//</editor-fold>//GEN-END:|460-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ZipCodeOkCommand ">//GEN-BEGIN:|462-getter|0|462-preInit
/**
* Returns an initialized instance of ZipCodeOkCommand component.
*
* @return the initialized component instance
*/
public Command getZipCodeOkCommand() {
if (ZipCodeOkCommand == null) {//GEN-END:|462-getter|0|462-preInit
// write pre-init user code here
ZipCodeOkCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|462-getter|1|462-postInit
// write post-init user code here
}//GEN-BEGIN:|462-getter|2|
return ZipCodeOkCommand;
}
//</editor-fold>//GEN-END:|462-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactUsNextCommand ">//GEN-BEGIN:|471-getter|0|471-preInit
/**
* Returns an initialized instance of ContactUsNextCommand component.
*
* @return the initialized component instance
*/
public Command getContactUsNextCommand() {
if (ContactUsNextCommand == null) {//GEN-END:|471-getter|0|471-preInit
// write pre-init user code here
ContactUsNextCommand = new Command(setLang("Next"), setLang("Next"), Command.OK, 0);//GEN-LINE:|471-getter|1|471-postInit
// write post-init user code here
}//GEN-BEGIN:|471-getter|2|
return ContactUsNextCommand;
}
//</editor-fold>//GEN-END:|471-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactUsBackCommand ">//GEN-BEGIN:|473-getter|0|473-preInit
/**
* Returns an initialized instance of ContactUsBackCommand component.
*
* @return the initialized component instance
*/
public Command getContactUsBackCommand() {
if (ContactUsBackCommand == null) {//GEN-END:|473-getter|0|473-preInit
// write pre-init user code here
ContactUsBackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|473-getter|1|473-postInit
// write post-init user code here
}//GEN-BEGIN:|473-getter|2|
return ContactUsBackCommand;
}
//</editor-fold>//GEN-END:|473-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactSupportForm ">//GEN-BEGIN:|470-getter|0|470-preInit
/**
* Returns an initialized instance of ContactSupportForm component.
*
* @return the initialized component instance
*/
public Form getContactSupportForm() {
if (ContactSupportForm == null) {//GEN-END:|470-getter|0|470-preInit
// write pre-init user code here
ContactSupportForm = new Form(setLang("suptitle"), new Item[]{getContactUsTitlechoiceGroup(), getContactusFnametextField(), getContactusLnametextField(), getContactusEmaillabel(), getContactusPrefeeredchoiceGroup()});//GEN-BEGIN:|470-getter|1|470-postInit
ContactSupportForm.addCommand(getContactUsNextCommand());
ContactSupportForm.addCommand(getContactUsBackCommand());
ContactSupportForm.setCommandListener(this);//GEN-END:|470-getter|1|470-postInit
// write post-init user code here
}//GEN-BEGIN:|470-getter|2|
return ContactSupportForm;
}
//</editor-fold>//GEN-END:|470-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactUsTitlechoiceGroup ">//GEN-BEGIN:|480-getter|0|480-preInit
/**
* Returns an initialized instance of ContactUsTitlechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getContactUsTitlechoiceGroup() {
if (ContactUsTitlechoiceGroup == null) {//GEN-END:|480-getter|0|480-preInit
// write pre-init user code here
ContactUsTitlechoiceGroup = new ChoiceGroup(setLang("contactusGreet"), Choice.POPUP);//GEN-BEGIN:|480-getter|1|480-postInit
ContactUsTitlechoiceGroup.append(setLang("TitleMr"), null);
ContactUsTitlechoiceGroup.append(setLang("TitleMrs"), null);
ContactUsTitlechoiceGroup.append(setLang("TitleMs"), null);
ContactUsTitlechoiceGroup.append(setLang("TitleDr"), null);
ContactUsTitlechoiceGroup.append(setLang("TitleChief"), null);
ContactUsTitlechoiceGroup.setSelectedFlags(new boolean[]{true, false, false, false, false});//GEN-END:|480-getter|1|480-postInit
// write post-init user code here
}//GEN-BEGIN:|480-getter|2|
return ContactUsTitlechoiceGroup;
}
//</editor-fold>//GEN-END:|480-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusFnametextField ">//GEN-BEGIN:|486-getter|0|486-preInit
/**
* Returns an initialized instance of ContactusFnametextField component.
*
* @return the initialized component instance
*/
public TextField getContactusFnametextField() {
if (ContactusFnametextField == null) {//GEN-END:|486-getter|0|486-preInit
// write pre-init user code here
ContactusFnametextField = new TextField(setLang("contactusfnamelabel"), "", 32, TextField.ANY);//GEN-LINE:|486-getter|1|486-postInit
// write post-init user code here
}//GEN-BEGIN:|486-getter|2|
return ContactusFnametextField;
}
//</editor-fold>//GEN-END:|486-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusLnametextField ">//GEN-BEGIN:|487-getter|0|487-preInit
/**
* Returns an initialized instance of ContactusLnametextField component.
*
* @return the initialized component instance
*/
public TextField getContactusLnametextField() {
if (ContactusLnametextField == null) {//GEN-END:|487-getter|0|487-preInit
// write pre-init user code here
ContactusLnametextField = new TextField(setLang("contactuslnamelabel"), "", 32, TextField.ANY);//GEN-LINE:|487-getter|1|487-postInit
// write post-init user code here
}//GEN-BEGIN:|487-getter|2|
return ContactusLnametextField;
}
//</editor-fold>//GEN-END:|487-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusEmaillabel ">//GEN-BEGIN:|488-getter|0|488-preInit
/**
* Returns an initialized instance of ContactusEmaillabel component.
*
* @return the initialized component instance
*/
public TextField getContactusEmaillabel() {
if (ContactusEmaillabel == null) {//GEN-END:|488-getter|0|488-preInit
// write pre-init user code here
ContactusEmaillabel = new TextField(setLang("contactusEmaillabel"), "", 32, TextField.ANY);//GEN-LINE:|488-getter|1|488-postInit
// write post-init user code here
}//GEN-BEGIN:|488-getter|2|
return ContactusEmaillabel;
}
//</editor-fold>//GEN-END:|488-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusPrefeeredchoiceGroup ">//GEN-BEGIN:|489-getter|0|489-preInit
/**
* Returns an initialized instance of ContactusPrefeeredchoiceGroup
* component.
*
* @return the initialized component instance
*/
public ChoiceGroup getContactusPrefeeredchoiceGroup() {
if (ContactusPrefeeredchoiceGroup == null) {//GEN-END:|489-getter|0|489-preInit
// write pre-init user code here
ContactusPrefeeredchoiceGroup = new ChoiceGroup(setLang("contactusModeprompt"), Choice.POPUP);//GEN-BEGIN:|489-getter|1|489-postInit
ContactusPrefeeredchoiceGroup.append(setLang("contactusemail"), null);
ContactusPrefeeredchoiceGroup.append(setLang("contactusphone"), null);
ContactusPrefeeredchoiceGroup.setSelectedFlags(new boolean[]{false, false});//GEN-END:|489-getter|1|489-postInit
// write post-init user code here
}//GEN-BEGIN:|489-getter|2|
return ContactusPrefeeredchoiceGroup;
}
//</editor-fold>//GEN-END:|489-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactSupportSubmitform ">//GEN-BEGIN:|493-getter|0|493-preInit
/**
* Returns an initialized instance of ContactSupportSubmitform component.
*
* @return the initialized component instance
*/
public Form getContactSupportSubmitform() {
if (ContactSupportSubmitform == null) {//GEN-END:|493-getter|0|493-preInit
// write pre-init user code here
ContactSupportSubmitform = new Form(setLang("suptitle"), new Item[]{getContactusSubjtextField(), getContactusBodytextField()});//GEN-BEGIN:|493-getter|1|493-postInit
ContactSupportSubmitform.addCommand(getContactusBodyokCommand());
ContactSupportSubmitform.addCommand(getContactusBodybackCommand());
ContactSupportSubmitform.setCommandListener(this);//GEN-END:|493-getter|1|493-postInit
// write post-init user code here
}//GEN-BEGIN:|493-getter|2|
return ContactSupportSubmitform;
}
//</editor-fold>//GEN-END:|493-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusBodyokCommand ">//GEN-BEGIN:|496-getter|0|496-preInit
/**
* Returns an initialized instance of ContactusBodyokCommand component.
*
* @return the initialized component instance
*/
public Command getContactusBodyokCommand() {
if (ContactusBodyokCommand == null) {//GEN-END:|496-getter|0|496-preInit
// write pre-init user code here
ContactusBodyokCommand = new Command(setLang("Submit"), setLang("Submit"), Command.OK, 0);//GEN-LINE:|496-getter|1|496-postInit
// write post-init user code here
}//GEN-BEGIN:|496-getter|2|
return ContactusBodyokCommand;
}
//</editor-fold>//GEN-END:|496-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusBodybackCommand ">//GEN-BEGIN:|498-getter|0|498-preInit
/**
* Returns an initialized instance of ContactusBodybackCommand component.
*
* @return the initialized component instance
*/
public Command getContactusBodybackCommand() {
if (ContactusBodybackCommand == null) {//GEN-END:|498-getter|0|498-preInit
// write pre-init user code here
ContactusBodybackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|498-getter|1|498-postInit
// write post-init user code here
}//GEN-BEGIN:|498-getter|2|
return ContactusBodybackCommand;
}
//</editor-fold>//GEN-END:|498-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusSubjtextField ">//GEN-BEGIN:|503-getter|0|503-preInit
/**
* Returns an initialized instance of ContactusSubjtextField component.
*
* @return the initialized component instance
*/
public TextField getContactusSubjtextField() {
if (ContactusSubjtextField == null) {//GEN-END:|503-getter|0|503-preInit
// write pre-init user code here
ContactusSubjtextField = new TextField(setLang("contactussubject"), "", 32, TextField.ANY);//GEN-LINE:|503-getter|1|503-postInit
// write post-init user code here
}//GEN-BEGIN:|503-getter|2|
return ContactusSubjtextField;
}
//</editor-fold>//GEN-END:|503-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ContactusBodytextField ">//GEN-BEGIN:|504-getter|0|504-preInit
/**
* Returns an initialized instance of ContactusBodytextField component.
*
* @return the initialized component instance
*/
public TextField getContactusBodytextField() {
if (ContactusBodytextField == null) {//GEN-END:|504-getter|0|504-preInit
// write pre-init user code here
ContactusBodytextField = new TextField(setLang("contactusbody"), "", 500, TextField.ANY);//GEN-LINE:|504-getter|1|504-postInit
// write post-init user code here
}//GEN-BEGIN:|504-getter|2|
return ContactusBodytextField;
}
//</editor-fold>//GEN-END:|504-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AboutCopyrightstringItem ">//GEN-BEGIN:|505-getter|0|505-preInit
/**
* Returns an initialized instance of AboutCopyrightstringItem component.
*
* @return the initialized component instance
*/
public StringItem getAboutCopyrightstringItem() {
if (AboutCopyrightstringItem == null) {//GEN-END:|505-getter|0|505-preInit
// write pre-init user code here
AboutCopyrightstringItem = new StringItem("", "");//GEN-LINE:|505-getter|1|505-postInit
// write post-init user code here
}//GEN-BEGIN:|505-getter|2|
return AboutCopyrightstringItem;
}
//</editor-fold>//GEN-END:|505-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: RegbackCommand ">//GEN-BEGIN:|510-getter|0|510-preInit
/**
* Returns an initialized instance of RegbackCommand component.
*
* @return the initialized component instance
*/
public Command getRegbackCommand() {
if (RegbackCommand == null) {//GEN-END:|510-getter|0|510-preInit
// write pre-init user code here
RegbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|510-getter|1|510-postInit
// write post-init user code here
}//GEN-BEGIN:|510-getter|2|
return RegbackCommand;
}
//</editor-fold>//GEN-END:|510-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Upgradeform ">//GEN-BEGIN:|507-getter|0|507-preInit
/**
* Returns an initialized instance of Upgradeform component.
*
* @return the initialized component instance
*/
public Form getUpgradeform() {
if (Upgradeform == null) {//GEN-END:|507-getter|0|507-preInit
// write pre-init user code here
Upgradeform = new Form(setLang("RegistrationTitle"), new Item[]{getRegfirstnametextField(), getReglastnametextField(), getRegCountrychoiceGroup(), getRegLanguagechoiceGroup(), getRegsecqchoiceGroup(), getRegsecanswertextField(), getRegsecwordtextField()});//GEN-BEGIN:|507-getter|1|507-postInit
Upgradeform.addCommand(getRegbackCommand());
Upgradeform.addCommand(getRegnextCommand());
Upgradeform.setCommandListener(this);//GEN-END:|507-getter|1|507-postInit
// write post-init user code here
}//GEN-BEGIN:|507-getter|2|
return Upgradeform;
}
//</editor-fold>//GEN-END:|507-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regfirstnametextField ">//GEN-BEGIN:|508-getter|0|508-preInit
/**
* Returns an initialized instance of regfirstnametextField component.
*
* @return the initialized component instance
*/
public TextField getRegfirstnametextField() {
if (regfirstnametextField == null) {//GEN-END:|508-getter|0|508-preInit
// write pre-init user code here
regfirstnametextField = new TextField(setLang("contactusfnamelabel"), "", 32, TextField.ANY);//GEN-LINE:|508-getter|1|508-postInit
// write post-init user code here
}//GEN-BEGIN:|508-getter|2|
return regfirstnametextField;
}
//</editor-fold>//GEN-END:|508-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: reglastnametextField ">//GEN-BEGIN:|509-getter|0|509-preInit
/**
* Returns an initialized instance of reglastnametextField component.
*
* @return the initialized component instance
*/
public TextField getReglastnametextField() {
if (reglastnametextField == null) {//GEN-END:|509-getter|0|509-preInit
// write pre-init user code here
reglastnametextField = new TextField(setLang("contactuslnamelabel"), "", 32, TextField.ANY);//GEN-LINE:|509-getter|1|509-postInit
// write post-init user code here
}//GEN-BEGIN:|509-getter|2|
return reglastnametextField;
}
//</editor-fold>//GEN-END:|509-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: UpgradePromptbackCommand ">//GEN-BEGIN:|514-getter|0|514-preInit
/**
* Returns an initialized instance of UpgradePromptbackCommand component.
*
* @return the initialized component instance
*/
public Command getUpgradePromptbackCommand() {
if (UpgradePromptbackCommand == null) {//GEN-END:|514-getter|0|514-preInit
// write pre-init user code here
UpgradePromptbackCommand = new Command(setLang("Back"), Command.BACK, 0);//GEN-LINE:|514-getter|1|514-postInit
// write post-init user code here
}//GEN-BEGIN:|514-getter|2|
return UpgradePromptbackCommand;
}
//</editor-fold>//GEN-END:|514-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: UpgradePromptokCommand ">//GEN-BEGIN:|517-getter|0|517-preInit
/**
* Returns an initialized instance of UpgradePromptokCommand component.
*
* @return the initialized component instance
*/
public Command getUpgradePromptokCommand() {
if (UpgradePromptokCommand == null) {//GEN-END:|517-getter|0|517-preInit
// write pre-init user code here
UpgradePromptokCommand = new Command(setLang("buttonUpgrade"), Command.OK, 0);//GEN-LINE:|517-getter|1|517-postInit
// write post-init user code here
}//GEN-BEGIN:|517-getter|2|
return UpgradePromptokCommand;
}
//</editor-fold>//GEN-END:|517-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: UpgradePromptform ">//GEN-BEGIN:|513-getter|0|513-preInit
/**
* Returns an initialized instance of UpgradePromptform component.
*
* @return the initialized component instance
*/
public Form getUpgradePromptform() {
if (UpgradePromptform == null) {//GEN-END:|513-getter|0|513-preInit
// write pre-init user code here
UpgradePromptform = new Form(setLang("buttonUpgrade"), new Item[]{getUpgradePromptstringItem()});//GEN-BEGIN:|513-getter|1|513-postInit
UpgradePromptform.addCommand(getUpgradePromptbackCommand());
UpgradePromptform.addCommand(getUpgradePromptokCommand());
UpgradePromptform.setCommandListener(this);//GEN-END:|513-getter|1|513-postInit
// write post-init user code here
}//GEN-BEGIN:|513-getter|2|
return UpgradePromptform;
}
//</editor-fold>//GEN-END:|513-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: UpgradePromptstringItem ">//GEN-BEGIN:|519-getter|0|519-preInit
/**
* Returns an initialized instance of UpgradePromptstringItem component.
*
* @return the initialized component instance
*/
public StringItem getUpgradePromptstringItem() {
if (UpgradePromptstringItem == null) {//GEN-END:|519-getter|0|519-preInit
// write pre-init user code here
UpgradePromptstringItem = new StringItem(setLang("regsupgradelabel1"), "");//GEN-LINE:|519-getter|1|519-postInit
// write post-init user code here
}//GEN-BEGIN:|519-getter|2|
return UpgradePromptstringItem;
}
//</editor-fold>//GEN-END:|519-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regCountrychoiceGroup ">//GEN-BEGIN:|521-getter|0|521-preInit
/**
* Returns an initialized instance of regCountrychoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegCountrychoiceGroup() {
if (regCountrychoiceGroup == null) {//GEN-END:|521-getter|0|521-preInit
// write pre-init user code here
regCountrychoiceGroup = new ChoiceGroup(setLang("regcountry"), Choice.POPUP);//GEN-BEGIN:|521-getter|1|521-postInit
regCountrychoiceGroup.append(setLang("regUnitedStates"), null);
regCountrychoiceGroup.append(setLang("regMexico"), null);
regCountrychoiceGroup.setSelectedFlags(new boolean[]{true, false});//GEN-END:|521-getter|1|521-postInit
// write post-init user code here
}//GEN-BEGIN:|521-getter|2|
return regCountrychoiceGroup;
}
//</editor-fold>//GEN-END:|521-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regLanguagechoiceGroup ">//GEN-BEGIN:|524-getter|0|524-preInit
/**
* Returns an initialized instance of regLanguagechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegLanguagechoiceGroup() {
if (regLanguagechoiceGroup == null) {//GEN-END:|524-getter|0|524-preInit
// write pre-init user code here
regLanguagechoiceGroup = new ChoiceGroup(setLang("reglanguage"), Choice.POPUP);//GEN-BEGIN:|524-getter|1|524-postInit
regLanguagechoiceGroup.append(setLang("regenglish"), null);
regLanguagechoiceGroup.append(setLang("regspanish"), null);
regLanguagechoiceGroup.setSelectedFlags(new boolean[]{true, false});//GEN-END:|524-getter|1|524-postInit
// write post-init user code here
}//GEN-BEGIN:|524-getter|2|
return regLanguagechoiceGroup;
}
//</editor-fold>//GEN-END:|524-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regsecqchoiceGroup ">//GEN-BEGIN:|527-getter|0|527-preInit
/**
* Returns an initialized instance of regsecqchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegsecqchoiceGroup() {
if (regsecqchoiceGroup == null) {//GEN-END:|527-getter|0|527-preInit
// write pre-init user code here
regsecqchoiceGroup = new ChoiceGroup(setLang("regsecquestion"), Choice.POPUP);//GEN-BEGIN:|527-getter|1|527-postInit
regsecqchoiceGroup.append(setLang("regsecqborn"), null);
regsecqchoiceGroup.append(setLang("regsecqpet"), null);
regsecqchoiceGroup.append(setLang("regsecqfood"), null);
regsecqchoiceGroup.setSelectedFlags(new boolean[]{true, false, false});//GEN-END:|527-getter|1|527-postInit
// write post-init user code here
}//GEN-BEGIN:|527-getter|2|
return regsecqchoiceGroup;
}
//</editor-fold>//GEN-END:|527-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand1 ">//GEN-BEGIN:|532-getter|0|532-preInit
/**
* Returns an initialized instance of itemCommand1 component.
*
* @return the initialized component instance
*/
public Command getItemCommand1() {
if (itemCommand1 == null) {//GEN-END:|532-getter|0|532-preInit
// write pre-init user code here
itemCommand1 = new Command("Item", Command.ITEM, 0);//GEN-LINE:|532-getter|1|532-postInit
// write post-init user code here
}//GEN-BEGIN:|532-getter|2|
return itemCommand1;
}
//</editor-fold>//GEN-END:|532-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: RegnextCommand ">//GEN-BEGIN:|534-getter|0|534-preInit
/**
* Returns an initialized instance of RegnextCommand component.
*
* @return the initialized component instance
*/
public Command getRegnextCommand() {
if (RegnextCommand == null) {//GEN-END:|534-getter|0|534-preInit
// write pre-init user code here
RegnextCommand = new Command(setLang("Next"), setLang("Next"), Command.OK, 0);//GEN-LINE:|534-getter|1|534-postInit
// write post-init user code here
}//GEN-BEGIN:|534-getter|2|
return RegnextCommand;
}
//</editor-fold>//GEN-END:|534-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regsecanswertextField ">//GEN-BEGIN:|536-getter|0|536-preInit
/**
* Returns an initialized instance of regsecanswertextField component.
*
* @return the initialized component instance
*/
public TextField getRegsecanswertextField() {
if (regsecanswertextField == null) {//GEN-END:|536-getter|0|536-preInit
// write pre-init user code here
regsecanswertextField = new TextField(setLang("regsecanswer"), "", 32, TextField.ANY);//GEN-LINE:|536-getter|1|536-postInit
// write post-init user code here
}//GEN-BEGIN:|536-getter|2|
return regsecanswertextField;
}
//</editor-fold>//GEN-END:|536-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Upgradeform2 ">//GEN-BEGIN:|537-getter|0|537-preInit
/**
* Returns an initialized instance of Upgradeform2 component.
*
* @return the initialized component instance
*/
public Form getUpgradeform2() {
if (Upgradeform2 == null) {//GEN-END:|537-getter|0|537-preInit
// write pre-init user code here
Upgradeform2 = new Form(setLang("RegistrationTitle"), new Item[]{getRegtitlechoiceGroup(), getRegaddr1textField(), getRegaddr2textField(), getRegcitytextField(), getRegstatechoiceGroup()});//GEN-BEGIN:|537-getter|1|537-postInit
Upgradeform2.addCommand(getRegbackCommand2());
Upgradeform2.addCommand(getRegnextCommand2());
Upgradeform2.setCommandListener(this);//GEN-END:|537-getter|1|537-postInit
// write post-init user code here
}//GEN-BEGIN:|537-getter|2|
return Upgradeform2;
}
//</editor-fold>//GEN-END:|537-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regsecwordtextField ">//GEN-BEGIN:|539-getter|0|539-preInit
/**
* Returns an initialized instance of regsecwordtextField component.
*
* @return the initialized component instance
*/
public TextField getRegsecwordtextField() {
if (regsecwordtextField == null) {//GEN-END:|539-getter|0|539-preInit
// write pre-init user code here
regsecwordtextField = new TextField(setLang("regsecword"), "", 32, TextField.ANY);//GEN-LINE:|539-getter|1|539-postInit
// write post-init user code here
}//GEN-BEGIN:|539-getter|2|
return regsecwordtextField;
}
//</editor-fold>//GEN-END:|539-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regtitlechoiceGroup ">//GEN-BEGIN:|540-getter|0|540-preInit
/**
* Returns an initialized instance of regtitlechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegtitlechoiceGroup() {
if (regtitlechoiceGroup == null) {//GEN-END:|540-getter|0|540-preInit
// write pre-init user code here
regtitlechoiceGroup = new ChoiceGroup(setLang("regtitle"), Choice.POPUP);//GEN-BEGIN:|540-getter|1|540-postInit
regtitlechoiceGroup.append(setLang("TitleMr"), null);
regtitlechoiceGroup.append(setLang("TitleMrs"), null);
regtitlechoiceGroup.append(setLang("TitleMs"), null);
regtitlechoiceGroup.append(setLang("TitleDr"), null);
regtitlechoiceGroup.append(setLang("TitleChief"), null);
regtitlechoiceGroup.setSelectedFlags(new boolean[]{true, false, false, false, false});//GEN-END:|540-getter|1|540-postInit
// write post-init user code here
}//GEN-BEGIN:|540-getter|2|
return regtitlechoiceGroup;
}
//</editor-fold>//GEN-END:|540-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regaddr1textField ">//GEN-BEGIN:|546-getter|0|546-preInit
/**
* Returns an initialized instance of regaddr1textField component.
*
* @return the initialized component instance
*/
public TextField getRegaddr1textField() {
if (regaddr1textField == null) {//GEN-END:|546-getter|0|546-preInit
// write pre-init user code here
regaddr1textField = new TextField(setLang("regaddr1"), "", 32, TextField.ANY);//GEN-LINE:|546-getter|1|546-postInit
// write post-init user code here
}//GEN-BEGIN:|546-getter|2|
return regaddr1textField;
}
//</editor-fold>//GEN-END:|546-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regaddr2textField ">//GEN-BEGIN:|547-getter|0|547-preInit
/**
* Returns an initialized instance of regaddr2textField component.
*
* @return the initialized component instance
*/
public TextField getRegaddr2textField() {
if (regaddr2textField == null) {//GEN-END:|547-getter|0|547-preInit
// write pre-init user code here
regaddr2textField = new TextField(setLang("regaddr2"), "", 32, TextField.ANY);//GEN-LINE:|547-getter|1|547-postInit
// write post-init user code here
}//GEN-BEGIN:|547-getter|2|
return regaddr2textField;
}
//</editor-fold>//GEN-END:|547-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regbackCommand2 ">//GEN-BEGIN:|549-getter|0|549-preInit
/**
* Returns an initialized instance of regbackCommand2 component.
*
* @return the initialized component instance
*/
public Command getRegbackCommand2() {
if (regbackCommand2 == null) {//GEN-END:|549-getter|0|549-preInit
// write pre-init user code here
regbackCommand2 = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|549-getter|1|549-postInit
// write post-init user code here
}//GEN-BEGIN:|549-getter|2|
return regbackCommand2;
}
//</editor-fold>//GEN-END:|549-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regnextCommand2 ">//GEN-BEGIN:|552-getter|0|552-preInit
/**
* Returns an initialized instance of regnextCommand2 component.
*
* @return the initialized component instance
*/
public Command getRegnextCommand2() {
if (regnextCommand2 == null) {//GEN-END:|552-getter|0|552-preInit
// write pre-init user code here
regnextCommand2 = new Command(setLang("Next"), setLang("Next"), Command.OK, 0);//GEN-LINE:|552-getter|1|552-postInit
// write post-init user code here
}//GEN-BEGIN:|552-getter|2|
return regnextCommand2;
}
//</editor-fold>//GEN-END:|552-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regcitytextField ">//GEN-BEGIN:|554-getter|0|554-preInit
/**
* Returns an initialized instance of regcitytextField component.
*
* @return the initialized component instance
*/
public TextField getRegcitytextField() {
if (regcitytextField == null) {//GEN-END:|554-getter|0|554-preInit
// write pre-init user code here
regcitytextField = new TextField(setLang("regcity"), "", 32, TextField.ANY);//GEN-LINE:|554-getter|1|554-postInit
// write post-init user code here
}//GEN-BEGIN:|554-getter|2|
return regcitytextField;
}
//</editor-fold>//GEN-END:|554-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regstatechoiceGroup ">//GEN-BEGIN:|555-getter|0|555-preInit
/**
* Returns an initialized instance of regstatechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegstatechoiceGroup() {
if (regstatechoiceGroup == null) {//GEN-END:|555-getter|0|555-preInit
// write pre-init user code here
regstatechoiceGroup = new ChoiceGroup(setLang("regstate"), Choice.POPUP);//GEN-BEGIN:|555-getter|1|555-postInit
regstatechoiceGroup.append(setLang("regstateAL"), null);
regstatechoiceGroup.append(setLang("regstateAK"), null);
regstatechoiceGroup.append(setLang("regstateAS"), null);
regstatechoiceGroup.append(setLang("regstateAZ"), null);
regstatechoiceGroup.append(setLang("regstateAR"), null);
regstatechoiceGroup.append(setLang("regstateCA"), null);
regstatechoiceGroup.append(setLang("regstateCM"), null);
regstatechoiceGroup.append(setLang("regstateCO"), null);
regstatechoiceGroup.append(setLang("regstateCT"), null);
regstatechoiceGroup.append(setLang("regstateDE"), null);
regstatechoiceGroup.append(setLang("regstateDC"), null);
regstatechoiceGroup.append(setLang("regstateFL"), null);
regstatechoiceGroup.append(setLang("regstateGA"), null);
regstatechoiceGroup.append(setLang("regstateGU"), null);
regstatechoiceGroup.append(setLang("regstateHI"), null);
regstatechoiceGroup.append(setLang("regstateID"), null);
regstatechoiceGroup.append(setLang("regstateIL"), null);
regstatechoiceGroup.append(setLang("regstateIA"), null);
regstatechoiceGroup.append(setLang("regstateKS"), null);
regstatechoiceGroup.append(setLang("regstateKY"), null);
regstatechoiceGroup.append(setLang("regstateLA"), null);
regstatechoiceGroup.append(setLang("regstateME"), null);
regstatechoiceGroup.append(setLang("regstateMD"), null);
regstatechoiceGroup.append(setLang("regstateMA"), null);
regstatechoiceGroup.append(setLang("regstateMI"), null);
regstatechoiceGroup.append(setLang("regstateMN"), null);
regstatechoiceGroup.append(setLang("regstateMS"), null);
regstatechoiceGroup.append(setLang("regstateMO"), null);
regstatechoiceGroup.append(setLang("regstateMI"), null);
regstatechoiceGroup.append(setLang("regstateNE"), null);
regstatechoiceGroup.append(setLang("regstateNV"), null);
regstatechoiceGroup.append(setLang("regstateNH"), null);
regstatechoiceGroup.append(setLang("regstateNJ"), null);
regstatechoiceGroup.append(setLang("regstateNM"), null);
regstatechoiceGroup.append(setLang("regstateNY"), null);
regstatechoiceGroup.append(setLang("regstateNC"), null);
regstatechoiceGroup.append(setLang("regstateND"), null);
regstatechoiceGroup.append(setLang("regstateOH"), null);
regstatechoiceGroup.append(setLang("regstateOK"), null);
regstatechoiceGroup.append(setLang("regstateOR"), null);
regstatechoiceGroup.append(setLang("regstatePA"), null);
regstatechoiceGroup.append(setLang("regstatePR"), null);
regstatechoiceGroup.append(setLang("regstateRI"), null);
regstatechoiceGroup.append(setLang("regstateSC"), null);
regstatechoiceGroup.append(setLang("regstateSD"), null);
regstatechoiceGroup.append(setLang("regstateTN"), null);
regstatechoiceGroup.append(setLang("regstateTX"), null);
regstatechoiceGroup.append(setLang("regstateUT"), null);
regstatechoiceGroup.append(setLang("regstateVT"), null);
regstatechoiceGroup.append(setLang("regstateVA"), null);
regstatechoiceGroup.append(setLang("regstateVI"), null);
regstatechoiceGroup.append(setLang("regstateWA"), null);
regstatechoiceGroup.append(setLang("regstateWV"), null);
regstatechoiceGroup.append(setLang("regstateWI"), null);
regstatechoiceGroup.append(setLang("regstateWY"), null);
regstatechoiceGroup.setSelectedFlags(new boolean[]{false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false, false});//GEN-END:|555-getter|1|555-postInit
// write post-init user code here
}//GEN-BEGIN:|555-getter|2|
return regstatechoiceGroup;
}
//</editor-fold>//GEN-END:|555-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regbackCommand3 ">//GEN-BEGIN:|614-getter|0|614-preInit
/**
* Returns an initialized instance of regbackCommand3 component.
*
* @return the initialized component instance
*/
public Command getRegbackCommand3() {
if (regbackCommand3 == null) {//GEN-END:|614-getter|0|614-preInit
// write pre-init user code here
regbackCommand3 = new Command("Back", Command.BACK, 0);//GEN-LINE:|614-getter|1|614-postInit
// write post-init user code here
}//GEN-BEGIN:|614-getter|2|
return regbackCommand3;
}
//</editor-fold>//GEN-END:|614-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Upgradeform3 ">//GEN-BEGIN:|612-getter|0|612-preInit
/**
* Returns an initialized instance of Upgradeform3 component.
*
* @return the initialized component instance
*/
public Form getUpgradeform3() {
if (Upgradeform3 == null) {//GEN-END:|612-getter|0|612-preInit
// write pre-init user code here
Upgradeform3 = new Form(setLang("RegistrationTitle"), new Item[]{getRegziptextField(), getRegemailtextField(), getRegtzchoiceGroup(), getRegIDtypechoiceGroup(), getRegIDvaluetextField()});//GEN-BEGIN:|612-getter|1|612-postInit
Upgradeform3.addCommand(getRegbackCommand3());
Upgradeform3.addCommand(getRegokCommand3());
Upgradeform3.setCommandListener(this);//GEN-END:|612-getter|1|612-postInit
// write post-init user code here
}//GEN-BEGIN:|612-getter|2|
return Upgradeform3;
}
//</editor-fold>//GEN-END:|612-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regziptextField ">//GEN-BEGIN:|617-getter|0|617-preInit
/**
* Returns an initialized instance of regziptextField component.
*
* @return the initialized component instance
*/
public TextField getRegziptextField() {
if (regziptextField == null) {//GEN-END:|617-getter|0|617-preInit
// write pre-init user code here
regziptextField = new TextField(setLang("regzip"), "", 5, TextField.NUMERIC);//GEN-LINE:|617-getter|1|617-postInit
// write post-init user code here
}//GEN-BEGIN:|617-getter|2|
return regziptextField;
}
//</editor-fold>//GEN-END:|617-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regemailtextField ">//GEN-BEGIN:|618-getter|0|618-preInit
/**
* Returns an initialized instance of regemailtextField component.
*
* @return the initialized component instance
*/
public TextField getRegemailtextField() {
if (regemailtextField == null) {//GEN-END:|618-getter|0|618-preInit
// write pre-init user code here
regemailtextField = new TextField(setLang("contactusEmaillabel"), "", 32, TextField.EMAILADDR);//GEN-LINE:|618-getter|1|618-postInit
// write post-init user code here
}//GEN-BEGIN:|618-getter|2|
return regemailtextField;
}
//</editor-fold>//GEN-END:|618-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regtzchoiceGroup ">//GEN-BEGIN:|619-getter|0|619-preInit
/**
* Returns an initialized instance of regtzchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegtzchoiceGroup() {
if (regtzchoiceGroup == null) {//GEN-END:|619-getter|0|619-preInit
// write pre-init user code here
regtzchoiceGroup = new ChoiceGroup(setLang("regtimezones"), Choice.POPUP);//GEN-BEGIN:|619-getter|1|619-postInit
regtzchoiceGroup.append(setLang("regtzADT"), null);
regtzchoiceGroup.append(setLang("regtzCDT"), null);
regtzchoiceGroup.append(setLang("regtzEDT"), null);
regtzchoiceGroup.append(setLang("regtzHDT"), null);
regtzchoiceGroup.append(setLang("regtzMDTD"), null);
regtzchoiceGroup.append(setLang("regtzMDTA"), null);
regtzchoiceGroup.append(setLang("regtzPDT"), null);
regtzchoiceGroup.setSelectedFlags(new boolean[]{true, false, false, false, false, false, false});//GEN-END:|619-getter|1|619-postInit
// write post-init user code here
}//GEN-BEGIN:|619-getter|2|
return regtzchoiceGroup;
}
//</editor-fold>//GEN-END:|619-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regokCommand3 ">//GEN-BEGIN:|646-getter|0|646-preInit
/**
* Returns an initialized instance of regokCommand3 component.
*
* @return the initialized component instance
*/
public Command getRegokCommand3() {
if (regokCommand3 == null) {//GEN-END:|646-getter|0|646-preInit
// write pre-init user code here
regokCommand3 = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|646-getter|1|646-postInit
// write post-init user code here
}//GEN-BEGIN:|646-getter|2|
return regokCommand3;
}
//</editor-fold>//GEN-END:|646-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regbackCommand4 ">//GEN-BEGIN:|651-getter|0|651-preInit
/**
* Returns an initialized instance of regbackCommand4 component.
*
* @return the initialized component instance
*/
public Command getRegbackCommand4() {
if (regbackCommand4 == null) {//GEN-END:|651-getter|0|651-preInit
// write pre-init user code here
regbackCommand4 = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|651-getter|1|651-postInit
// write post-init user code here
}//GEN-BEGIN:|651-getter|2|
return regbackCommand4;
}
//</editor-fold>//GEN-END:|651-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: Upgradeform4 ">//GEN-BEGIN:|666-getter|0|666-preInit
/**
* Returns an initialized instance of Upgradeform4 component.
*
* @return the initialized component instance
*/
public Form getUpgradeform4() {
if (Upgradeform4 == null) {//GEN-END:|666-getter|0|666-preInit
// write pre-init user code here
Upgradeform4 = new Form(setLang("RegistrationTitle"), new Item[]{getStringItem(), getRegdobmonthtextField(), getRegdobdaytextField(), getRegdobyeartextField()});//GEN-BEGIN:|666-getter|1|666-postInit
Upgradeform4.addCommand(getRegokCommand4());
Upgradeform4.addCommand(getRegbackCommand5());
Upgradeform4.setCommandListener(this);//GEN-END:|666-getter|1|666-postInit
// write post-init user code here
}//GEN-BEGIN:|666-getter|2|
return Upgradeform4;
}
//</editor-fold>//GEN-END:|666-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regIDtypechoiceGroup ">//GEN-BEGIN:|668-getter|0|668-preInit
/**
* Returns an initialized instance of regIDtypechoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getRegIDtypechoiceGroup() {
if (regIDtypechoiceGroup == null) {//GEN-END:|668-getter|0|668-preInit
// write pre-init user code here
regIDtypechoiceGroup = new ChoiceGroup(setLang("regIDType"), Choice.POPUP);//GEN-BEGIN:|668-getter|1|668-postInit
regIDtypechoiceGroup.append(setLang("regIDSSN"), null);
regIDtypechoiceGroup.append(setLang("regIDTIN"), null);
regIDtypechoiceGroup.setSelectedFlags(new boolean[]{true, false});//GEN-END:|668-getter|1|668-postInit
// write post-init user code here
}//GEN-BEGIN:|668-getter|2|
return regIDtypechoiceGroup;
}
//</editor-fold>//GEN-END:|668-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regIDvaluetextField ">//GEN-BEGIN:|671-getter|0|671-preInit
/**
* Returns an initialized instance of regIDvaluetextField component.
*
* @return the initialized component instance
*/
public TextField getRegIDvaluetextField() {
if (regIDvaluetextField == null) {//GEN-END:|671-getter|0|671-preInit
// write pre-init user code here
regIDvaluetextField = new TextField(setLang("regIDValue"), "", 32, TextField.ANY);//GEN-BEGIN:|671-getter|1|671-postInit
regIDvaluetextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|671-getter|1|671-postInit
// write post-init user code here
}//GEN-BEGIN:|671-getter|2|
return regIDvaluetextField;
}
//</editor-fold>//GEN-END:|671-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regokCommand4 ">//GEN-BEGIN:|672-getter|0|672-preInit
/**
* Returns an initialized instance of regokCommand4 component.
*
* @return the initialized component instance
*/
public Command getRegokCommand4() {
if (regokCommand4 == null) {//GEN-END:|672-getter|0|672-preInit
// write pre-init user code here
regokCommand4 = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|672-getter|1|672-postInit
// write post-init user code here
}//GEN-BEGIN:|672-getter|2|
return regokCommand4;
}
//</editor-fold>//GEN-END:|672-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regbackCommand5 ">//GEN-BEGIN:|674-getter|0|674-preInit
/**
* Returns an initialized instance of regbackCommand5 component.
*
* @return the initialized component instance
*/
public Command getRegbackCommand5() {
if (regbackCommand5 == null) {//GEN-END:|674-getter|0|674-preInit
// write pre-init user code here
regbackCommand5 = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|674-getter|1|674-postInit
// write post-init user code here
}//GEN-BEGIN:|674-getter|2|
return regbackCommand5;
}
//</editor-fold>//GEN-END:|674-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: stringItem ">//GEN-BEGIN:|681-getter|0|681-preInit
/**
* Returns an initialized instance of stringItem component.
*
* @return the initialized component instance
*/
public StringItem getStringItem() {
if (stringItem == null) {//GEN-END:|681-getter|0|681-preInit
// write pre-init user code here
stringItem = new StringItem("Enter your birthdate", "");//GEN-LINE:|681-getter|1|681-postInit
// write post-init user code here
}//GEN-BEGIN:|681-getter|2|
return stringItem;
}
//</editor-fold>//GEN-END:|681-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regdobmonthtextField ">//GEN-BEGIN:|683-getter|0|683-preInit
/**
* Returns an initialized instance of regdobmonthtextField component.
*
* @return the initialized component instance
*/
public TextField getRegdobmonthtextField() {
if (regdobmonthtextField == null) {//GEN-END:|683-getter|0|683-preInit
// write pre-init user code here
regdobmonthtextField = new TextField(setLang("regbdaymonth"), "01", 2, TextField.NUMERIC);//GEN-LINE:|683-getter|1|683-postInit
// write post-init user code here
}//GEN-BEGIN:|683-getter|2|
return regdobmonthtextField;
}
//</editor-fold>//GEN-END:|683-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regdobdaytextField ">//GEN-BEGIN:|684-getter|0|684-preInit
/**
* Returns an initialized instance of regdobdaytextField component.
*
* @return the initialized component instance
*/
public TextField getRegdobdaytextField() {
if (regdobdaytextField == null) {//GEN-END:|684-getter|0|684-preInit
// write pre-init user code here
regdobdaytextField = new TextField(setLang("regbday"), "01", 2, TextField.NUMERIC);//GEN-LINE:|684-getter|1|684-postInit
// write post-init user code here
}//GEN-BEGIN:|684-getter|2|
return regdobdaytextField;
}
//</editor-fold>//GEN-END:|684-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: regdobyeartextField ">//GEN-BEGIN:|685-getter|0|685-preInit
/**
* Returns an initialized instance of regdobyeartextField component.
*
* @return the initialized component instance
*/
public TextField getRegdobyeartextField() {
if (regdobyeartextField == null) {//GEN-END:|685-getter|0|685-preInit
// write pre-init user code here
regdobyeartextField = new TextField(setLang("regbdayyear"), "1994", 4, TextField.NUMERIC);//GEN-LINE:|685-getter|1|685-postInit
// write post-init user code here
}//GEN-BEGIN:|685-getter|2|
return regdobyeartextField;
}
//</editor-fold>//GEN-END:|685-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: InStorebackCommand ">//GEN-BEGIN:|687-getter|0|687-preInit
/**
* Returns an initialized instance of InStorebackCommand component.
*
* @return the initialized component instance
*/
public Command getInStorebackCommand() {
if (InStorebackCommand == null) {//GEN-END:|687-getter|0|687-preInit
// write pre-init user code here
InStorebackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|687-getter|1|687-postInit
// write post-init user code here
}//GEN-BEGIN:|687-getter|2|
return InStorebackCommand;
}
//</editor-fold>//GEN-END:|687-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: InStoreokCommand ">//GEN-BEGIN:|689-getter|0|689-preInit
/**
* Returns an initialized instance of InStoreokCommand component.
*
* @return the initialized component instance
*/
public Command getInStoreokCommand() {
if (InStoreokCommand == null) {//GEN-END:|689-getter|0|689-preInit
// write pre-init user code here
InStoreokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|689-getter|1|689-postInit
// write post-init user code here
}//GEN-BEGIN:|689-getter|2|
return InStoreokCommand;
}
//</editor-fold>//GEN-END:|689-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: InStoreform ">//GEN-BEGIN:|686-getter|0|686-preInit
/**
* Returns an initialized instance of InStoreform component.
*
* @return the initialized component instance
*/
public Form getInStoreform() {
if (InStoreform == null) {//GEN-END:|686-getter|0|686-preInit
// write pre-init user code here
InStoreform = new Form(setLang("instoretitle"), new Item[]{getInStoreLabelstringItem(), getInStoreAmttextField()});//GEN-BEGIN:|686-getter|1|686-postInit
InStoreform.addCommand(getInStorebackCommand());
InStoreform.addCommand(getInStoreokCommand());
InStoreform.setCommandListener(this);//GEN-END:|686-getter|1|686-postInit
// write post-init user code here
}//GEN-BEGIN:|686-getter|2|
return InStoreform;
}
//</editor-fold>//GEN-END:|686-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: InStoreLabelstringItem ">//GEN-BEGIN:|691-getter|0|691-preInit
/**
* Returns an initialized instance of InStoreLabelstringItem component.
*
* @return the initialized component instance
*/
public StringItem getInStoreLabelstringItem() {
if (InStoreLabelstringItem == null) {//GEN-END:|691-getter|0|691-preInit
// write pre-init user code here
InStoreLabelstringItem = new StringItem(setLang("InStoreLabelstringItem"), "");//GEN-LINE:|691-getter|1|691-postInit
// write post-init user code here
}//GEN-BEGIN:|691-getter|2|
return InStoreLabelstringItem;
}
//</editor-fold>//GEN-END:|691-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: InStoreAmttextField ">//GEN-BEGIN:|692-getter|0|692-preInit
/**
* Returns an initialized instance of InStoreAmttextField component.
*
* @return the initialized component instance
*/
public TextField getInStoreAmttextField() {
if (InStoreAmttextField == null) {//GEN-END:|692-getter|0|692-preInit
// write pre-init user code here
InStoreAmttextField = new TextField(setLang("SENDAmounttextField"), "", 32, TextField.DECIMAL);//GEN-LINE:|692-getter|1|692-postInit
// write post-init user code here
}//GEN-BEGIN:|692-getter|2|
return InStoreAmttextField;
}
//</editor-fold>//GEN-END:|692-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHMainbackCommand ">//GEN-BEGIN:|696-getter|0|696-preInit
/**
* Returns an initialized instance of ACHMainbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHMainbackCommand() {
if (ACHMainbackCommand == null) {//GEN-END:|696-getter|0|696-preInit
// write pre-init user code here
ACHMainbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|696-getter|1|696-postInit
// write post-init user code here
}//GEN-BEGIN:|696-getter|2|
return ACHMainbackCommand;
}
//</editor-fold>//GEN-END:|696-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHMainokCommand ">//GEN-BEGIN:|698-getter|0|698-preInit
/**
* Returns an initialized instance of ACHMainokCommand component.
*
* @return the initialized component instance
*/
public Command getACHMainokCommand() {
if (ACHMainokCommand == null) {//GEN-END:|698-getter|0|698-preInit
// write pre-init user code here
ACHMainokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|698-getter|1|698-postInit
// write post-init user code here
}//GEN-BEGIN:|698-getter|2|
return ACHMainokCommand;
}
//</editor-fold>//GEN-END:|698-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHMainMenuform ">//GEN-BEGIN:|695-getter|0|695-preInit
/**
* Returns an initialized instance of ACHMainMenuform component.
*
* @return the initialized component instance
*/
public Form getACHMainMenuform() {
if (ACHMainMenuform == null) {//GEN-END:|695-getter|0|695-preInit
// write pre-init user code here
ACHMainMenuform = new Form(setLang("MENUACHMAIN"), new Item[]{getACHMsgstringItem(), getACHMenuchoiceGroup()});//GEN-BEGIN:|695-getter|1|695-postInit
ACHMainMenuform.addCommand(getACHMainbackCommand());
ACHMainMenuform.addCommand(getACHMainokCommand());
ACHMainMenuform.setCommandListener(this);//GEN-END:|695-getter|1|695-postInit
// write post-init user code here
ACHMsgstringItem.setText(ACHMsg);
}//GEN-BEGIN:|695-getter|2|
return ACHMainMenuform;
}
//</editor-fold>//GEN-END:|695-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashinoutokCommand ">//GEN-BEGIN:|703-getter|0|703-preInit
/**
* Returns an initialized instance of cashinoutokCommand component.
*
* @return the initialized component instance
*/
public Command getCashinoutokCommand() {
if (cashinoutokCommand == null) {//GEN-END:|703-getter|0|703-preInit
// write pre-init user code here
cashinoutokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|703-getter|1|703-postInit
// write post-init user code here
}//GEN-BEGIN:|703-getter|2|
return cashinoutokCommand;
}
//</editor-fold>//GEN-END:|703-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashinoutbackCommand ">//GEN-BEGIN:|705-getter|0|705-preInit
/**
* Returns an initialized instance of cashinoutbackCommand component.
*
* @return the initialized component instance
*/
public Command getCashinoutbackCommand() {
if (cashinoutbackCommand == null) {//GEN-END:|705-getter|0|705-preInit
// write pre-init user code here
cashinoutbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|705-getter|1|705-postInit
// write post-init user code here
}//GEN-BEGIN:|705-getter|2|
return cashinoutbackCommand;
}
//</editor-fold>//GEN-END:|705-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashinoutform ">//GEN-BEGIN:|702-getter|0|702-preInit
/**
* Returns an initialized instance of cashinoutform component.
*
* @return the initialized component instance
*/
public Form getCashinoutform() {
if (cashinoutform == null) {//GEN-END:|702-getter|0|702-preInit
// write pre-init user code here
cashinoutform = new Form(setLang("MENUCASHINOUT"), new Item[]{getCashinoutmenuchoiceGroup()});//GEN-BEGIN:|702-getter|1|702-postInit
cashinoutform.addCommand(getCashinoutokCommand());
cashinoutform.addCommand(getCashinoutbackCommand());
cashinoutform.setCommandListener(this);//GEN-END:|702-getter|1|702-postInit
// write post-init user code here
}//GEN-BEGIN:|702-getter|2|
return cashinoutform;
}
//</editor-fold>//GEN-END:|702-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashinoutmenuchoiceGroup ">//GEN-BEGIN:|708-getter|0|708-preInit
/**
* Returns an initialized instance of cashinoutmenuchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getCashinoutmenuchoiceGroup() {
if (cashinoutmenuchoiceGroup == null) {//GEN-END:|708-getter|0|708-preInit
// write pre-init user code here
cashinoutmenuchoiceGroup = new ChoiceGroup(setLang("ACHMsg"), Choice.EXCLUSIVE);//GEN-BEGIN:|708-getter|1|708-postInit
cashinoutmenuchoiceGroup.append(setLang("cashinout_maincash"), null);
cashinoutmenuchoiceGroup.append(setLang("cashinout_maincashout"), null);
cashinoutmenuchoiceGroup.setSelectedFlags(new boolean[]{false, false});//GEN-END:|708-getter|1|708-postInit
// write post-init user code here
}//GEN-BEGIN:|708-getter|2|
return cashinoutmenuchoiceGroup;
}
//</editor-fold>//GEN-END:|708-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashin_cashbackCommand ">//GEN-BEGIN:|718-getter|0|718-preInit
/**
* Returns an initialized instance of cashin_cashbackCommand component.
*
* @return the initialized component instance
*/
public Command getCashin_cashbackCommand() {
if (cashin_cashbackCommand == null) {//GEN-END:|718-getter|0|718-preInit
// write pre-init user code here
cashin_cashbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|718-getter|1|718-postInit
// write post-init user code here
}//GEN-BEGIN:|718-getter|2|
return cashin_cashbackCommand;
}
//</editor-fold>//GEN-END:|718-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashin_cashokCommand ">//GEN-BEGIN:|720-getter|0|720-preInit
/**
* Returns an initialized instance of cashin_cashokCommand component.
*
* @return the initialized component instance
*/
public Command getCashin_cashokCommand() {
if (cashin_cashokCommand == null) {//GEN-END:|720-getter|0|720-preInit
// write pre-init user code here
cashin_cashokCommand = new Command(setLang("Locations"), setLang("Locations"), Command.OK, 0);//GEN-LINE:|720-getter|1|720-postInit
// write post-init user code here
}//GEN-BEGIN:|720-getter|2|
return cashin_cashokCommand;
}
//</editor-fold>//GEN-END:|720-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashin_cashform ">//GEN-BEGIN:|715-getter|0|715-preInit
/**
* Returns an initialized instance of cashin_cashform component.
*
* @return the initialized component instance
*/
public Form getCashin_cashform() {
if (cashin_cashform == null) {//GEN-END:|715-getter|0|715-preInit
// write pre-init user code here
cashin_cashform = new Form(setLang("cashin_cash"), new Item[]{getCashin_cashcommentstringItem(), getCashin_cashcommentstringItem2()});//GEN-BEGIN:|715-getter|1|715-postInit
cashin_cashform.addCommand(getCashin_cashbackCommand());
cashin_cashform.addCommand(getCashin_cashokCommand());
cashin_cashform.setCommandListener(this);//GEN-END:|715-getter|1|715-postInit
// write post-init user code here
}//GEN-BEGIN:|715-getter|2|
return cashin_cashform;
}
//</editor-fold>//GEN-END:|715-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashin_cashcommentstringItem ">//GEN-BEGIN:|716-getter|0|716-preInit
/**
* Returns an initialized instance of cashin_cashcommentstringItem
* component.
*
* @return the initialized component instance
*/
public StringItem getCashin_cashcommentstringItem() {
if (cashin_cashcommentstringItem == null) {//GEN-END:|716-getter|0|716-preInit
// write pre-init user code here
cashin_cashcommentstringItem = new StringItem(setLang("cashin_commentcash"), null);//GEN-LINE:|716-getter|1|716-postInit
// write post-init user code here
}//GEN-BEGIN:|716-getter|2|
return cashin_cashcommentstringItem;
}
//</editor-fold>//GEN-END:|716-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: cashin_cashcommentstringItem2 ">//GEN-BEGIN:|717-getter|0|717-preInit
/**
* Returns an initialized instance of cashin_cashcommentstringItem2
* component.
*
* @return the initialized component instance
*/
public StringItem getCashin_cashcommentstringItem2() {
if (cashin_cashcommentstringItem2 == null) {//GEN-END:|717-getter|0|717-preInit
// write pre-init user code here
cashin_cashcommentstringItem2 = new StringItem(setLang("cashin_commentcash2"), null);//GEN-LINE:|717-getter|1|717-postInit
// write post-init user code here
}//GEN-BEGIN:|717-getter|2|
return cashin_cashcommentstringItem2;
}
//</editor-fold>//GEN-END:|717-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHMenuchoiceGroup ">//GEN-BEGIN:|725-getter|0|725-preInit
/**
* Returns an initialized instance of ACHMenuchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getACHMenuchoiceGroup() {
if (ACHMenuchoiceGroup == null) {//GEN-END:|725-getter|0|725-preInit
// write pre-init user code here
ACHMenuchoiceGroup = new ChoiceGroup(setLang("ACHMainLabelstringItem"), Choice.EXCLUSIVE);//GEN-BEGIN:|725-getter|1|725-postInit
ACHMenuchoiceGroup.append(setLang("ACHMenuListAccounts"), null);
ACHMenuchoiceGroup.append(setLang("ACHMenuCreateAccount"), null);
ACHMenuchoiceGroup.setSelectedFlags(new boolean[]{true, false});//GEN-END:|725-getter|1|725-postInit
// write post-init user code here
}//GEN-BEGIN:|725-getter|2|
return ACHMenuchoiceGroup;
}
//</editor-fold>//GEN-END:|725-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ListACHAccountsListform ">//GEN-BEGIN:|729-getter|0|729-preInit
/**
* Returns an initialized instance of ListACHAccountsListform component.
*
* @return the initialized component instance
*/
public List getListACHAccountsListform() {
if (ListACHAccountsListform == null) {//GEN-END:|729-getter|0|729-preInit
// write pre-init user code here
ListACHAccountsListform = new List(setLang("ListACHAccountsListform"), Choice.IMPLICIT);//GEN-BEGIN:|729-getter|1|729-postInit
ListACHAccountsListform.addCommand(getACHAccountsListbackCommand1());
ListACHAccountsListform.setCommandListener(this);//GEN-END:|729-getter|1|729-postInit
// write post-init user code here
}//GEN-BEGIN:|729-getter|2|
return ListACHAccountsListform;
}
//</editor-fold>//GEN-END:|729-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Method: ListACHAccountsListformAction ">//GEN-BEGIN:|729-action|0|729-preAction
/**
* Performs an action assigned to the selected list element in the
* ListACHAccountsListform component.
*/
public void ListACHAccountsListformAction() {//GEN-END:|729-action|0|729-preAction
// enter pre-action user code here
//format of list in form is last 4 digits of account number plus the status of the account
//example: 1234 PENDING or 1234 VERIFIED
//if PENDING, call form ACHValidate, if VERIFIED, call form ACHDeposit
String __selectedString = getListACHAccountsListform().getString(getListACHAccountsListform().getSelectedIndex());//GEN-LINE:|729-action|1|729-postAction
// enter post-action user code here
if (__selectedString.indexOf(Constants.ACH_PENDING) != -1) {
ACHSelectedAccountItem = __selectedString;
ACHID = getACHID();
switchDisplayable(null, getACHValidateform());
} else if (__selectedString.indexOf(Constants.ACH_VERIFIED) != -1) {
ACHSelectedAccountItem = __selectedString;
ACHID = getACHID();
if (ACHActiveMenuchoiceGroup !=null) {
if (ACHOperations.startsWith(Constants.ACHDEPOSIT))
ACHActiveMenuchoiceGroup.setLabel(setLang("ACHOpDeposit"));
else
ACHActiveMenuchoiceGroup.setLabel(setLang("ACHOpWithdraw"));
}
switchDisplayable(null, getACHActiveAccountMenuform());
}
}//GEN-BEGIN:|729-action|2|
//</editor-fold>//GEN-END:|729-action|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAccountsListbackCommand ">//GEN-BEGIN:|734-getter|0|734-preInit
/**
* Returns an initialized instance of ACHAccountsListbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHAccountsListbackCommand() {
if (ACHAccountsListbackCommand == null) {//GEN-END:|734-getter|0|734-preInit
// write pre-init user code here
ACHAccountsListbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|734-getter|1|734-postInit
// write post-init user code here
}//GEN-BEGIN:|734-getter|2|
return ACHAccountsListbackCommand;
}
//</editor-fold>//GEN-END:|734-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAccountsListbackCommand1 ">//GEN-BEGIN:|737-getter|0|737-preInit
/**
* Returns an initialized instance of ACHAccountsListbackCommand1 component.
*
* @return the initialized component instance
*/
public Command getACHAccountsListbackCommand1() {
if (ACHAccountsListbackCommand1 == null) {//GEN-END:|737-getter|0|737-preInit
// write pre-init user code here
ACHAccountsListbackCommand1 = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|737-getter|1|737-postInit
// write post-init user code here
}//GEN-BEGIN:|737-getter|2|
return ACHAccountsListbackCommand1;
}
//</editor-fold>//GEN-END:|737-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHMsgstringItem ">//GEN-BEGIN:|741-getter|0|741-preInit
/**
* Returns an initialized instance of ACHMsgstringItem component.
*
* @return the initialized component instance
*/
public StringItem getACHMsgstringItem() {
if (ACHMsgstringItem == null) {//GEN-END:|741-getter|0|741-preInit
// write pre-init user code here
ACHMsgstringItem = new StringItem("", setLang("ACHMsg"));//GEN-LINE:|741-getter|1|741-postInit
// write post-init user code here
}//GEN-BEGIN:|741-getter|2|
return ACHMsgstringItem;
}
//</editor-fold>//GEN-END:|741-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountform ">//GEN-BEGIN:|742-getter|0|742-preInit
/**
* Returns an initialized instance of ACHAddAccountform component.
*
* @return the initialized component instance
*/
public Form getACHAddAccountform() {
if (ACHAddAccountform == null) {//GEN-END:|742-getter|0|742-preInit
// write pre-init user code here
ACHAddAccountform = new Form(setLang("ACHMenuCreateAccount"), new Item[]{getACHAddAccountstringItem(), getACHAddAccountNumbertextField(), getAddACHRouteNumbertextField(), getACHAddAccountFNAMEtextField(), getACHAddAccountLNAMEtextField()});//GEN-BEGIN:|742-getter|1|742-postInit
ACHAddAccountform.addCommand(getACHAddAccountbackCommand());
ACHAddAccountform.addCommand(getACHAddAccountokCommand());
ACHAddAccountform.setCommandListener(this);//GEN-END:|742-getter|1|742-postInit
// write post-init user code here
if (ACHAddAccountFNAMEtextField != null)
ACHAddAccountFNAMEtextField.setString(firstname);
if (ACHAddAccountLNAMEtextField !=null)
ACHAddAccountLNAMEtextField.setString(lastname);
}//GEN-BEGIN:|742-getter|2|
return ACHAddAccountform;
}
//</editor-fold>//GEN-END:|742-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountNumbertextField ">//GEN-BEGIN:|743-getter|0|743-preInit
/**
* Returns an initialized instance of ACHAddAccountNumbertextField
* component.
*
* @return the initialized component instance
*/
public TextField getACHAddAccountNumbertextField() {
if (ACHAddAccountNumbertextField == null) {//GEN-END:|743-getter|0|743-preInit
// write pre-init user code here
ACHAddAccountNumbertextField = new TextField(setLang("ACHAddAccountNumbertextField"), "", 32, TextField.ANY);//GEN-BEGIN:|743-getter|1|743-postInit
ACHAddAccountNumbertextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|743-getter|1|743-postInit
// write post-init user code here
}//GEN-BEGIN:|743-getter|2|
return ACHAddAccountNumbertextField;
}
//</editor-fold>//GEN-END:|743-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AddACHRouteNumbertextField ">//GEN-BEGIN:|744-getter|0|744-preInit
/**
* Returns an initialized instance of AddACHRouteNumbertextField component.
*
* @return the initialized component instance
*/
public TextField getAddACHRouteNumbertextField() {
if (AddACHRouteNumbertextField == null) {//GEN-END:|744-getter|0|744-preInit
// write pre-init user code here
AddACHRouteNumbertextField = new TextField(setLang("AddACHRouteNumbertextField"), "", 32, TextField.ANY);//GEN-BEGIN:|744-getter|1|744-postInit
AddACHRouteNumbertextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|744-getter|1|744-postInit
// write post-init user code here
}//GEN-BEGIN:|744-getter|2|
return AddACHRouteNumbertextField;
}
//</editor-fold>//GEN-END:|744-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountFNAMEtextField ">//GEN-BEGIN:|745-getter|0|745-preInit
/**
* Returns an initialized instance of ACHAddAccountFNAMEtextField component.
*
* @return the initialized component instance
*/
public TextField getACHAddAccountFNAMEtextField() {
if (ACHAddAccountFNAMEtextField == null) {//GEN-END:|745-getter|0|745-preInit
// write pre-init user code here
ACHAddAccountFNAMEtextField = new TextField(setLang("ACHAddAccountFNAMEtextField"), "", 32, TextField.ANY | TextField.UNEDITABLE);//GEN-BEGIN:|745-getter|1|745-postInit
ACHAddAccountFNAMEtextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|745-getter|1|745-postInit
// write post-init user code here
}//GEN-BEGIN:|745-getter|2|
return ACHAddAccountFNAMEtextField;
}
//</editor-fold>//GEN-END:|745-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountLNAMEtextField ">//GEN-BEGIN:|746-getter|0|746-preInit
/**
* Returns an initialized instance of ACHAddAccountLNAMEtextField component.
*
* @return the initialized component instance
*/
public TextField getACHAddAccountLNAMEtextField() {
if (ACHAddAccountLNAMEtextField == null) {//GEN-END:|746-getter|0|746-preInit
// write pre-init user code here
ACHAddAccountLNAMEtextField = new TextField(setLang("ACHAddAccountLNAMEtextField"), "", 32, TextField.ANY | TextField.UNEDITABLE);//GEN-BEGIN:|746-getter|1|746-postInit
ACHAddAccountLNAMEtextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|746-getter|1|746-postInit
// write post-init user code here
}//GEN-BEGIN:|746-getter|2|
return ACHAddAccountLNAMEtextField;
}
//</editor-fold>//GEN-END:|746-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountbackCommand ">//GEN-BEGIN:|747-getter|0|747-preInit
/**
* Returns an initialized instance of ACHAddAccountbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHAddAccountbackCommand() {
if (ACHAddAccountbackCommand == null) {//GEN-END:|747-getter|0|747-preInit
// write pre-init user code here
ACHAddAccountbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|747-getter|1|747-postInit
// write post-init user code here
}//GEN-BEGIN:|747-getter|2|
return ACHAddAccountbackCommand;
}
//</editor-fold>//GEN-END:|747-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountokCommand ">//GEN-BEGIN:|749-getter|0|749-preInit
/**
* Returns an initialized instance of ACHAddAccountokCommand component.
*
* @return the initialized component instance
*/
public Command getACHAddAccountokCommand() {
if (ACHAddAccountokCommand == null) {//GEN-END:|749-getter|0|749-preInit
// write pre-init user code here
ACHAddAccountokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|749-getter|1|749-postInit
// write post-init user code here
}//GEN-BEGIN:|749-getter|2|
return ACHAddAccountokCommand;
}
//</editor-fold>//GEN-END:|749-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidatebackCommand ">//GEN-BEGIN:|754-getter|0|754-preInit
/**
* Returns an initialized instance of ACHValidatebackCommand component.
*
* @return the initialized component instance
*/
public Command getACHValidatebackCommand() {
if (ACHValidatebackCommand == null) {//GEN-END:|754-getter|0|754-preInit
// write pre-init user code here
ACHValidatebackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|754-getter|1|754-postInit
// write post-init user code here
}//GEN-BEGIN:|754-getter|2|
return ACHValidatebackCommand;
}
//</editor-fold>//GEN-END:|754-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidateokCommand ">//GEN-BEGIN:|756-getter|0|756-preInit
/**
* Returns an initialized instance of ACHValidateokCommand component.
*
* @return the initialized component instance
*/
public Command getACHValidateokCommand() {
if (ACHValidateokCommand == null) {//GEN-END:|756-getter|0|756-preInit
// write pre-init user code here
ACHValidateokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|756-getter|1|756-postInit
// write post-init user code here
}//GEN-BEGIN:|756-getter|2|
return ACHValidateokCommand;
}
//</editor-fold>//GEN-END:|756-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidateform ">//GEN-BEGIN:|753-getter|0|753-preInit
/**
* Returns an initialized instance of ACHValidateform component.
*
* @return the initialized component instance
*/
public Form getACHValidateform() {
if (ACHValidateform == null) {//GEN-END:|753-getter|0|753-preInit
// write pre-init user code here
ACHValidateform = new Form(setLang("VerifyAchAccountform"), new Item[]{getACHValidateMsgstringItem(), getACHValidateAmt1textField(), getACHValidateAmt2textField()});//GEN-BEGIN:|753-getter|1|753-postInit
ACHValidateform.addCommand(getACHValidatebackCommand());
ACHValidateform.addCommand(getACHValidateokCommand());
ACHValidateform.setCommandListener(this);//GEN-END:|753-getter|1|753-postInit
// write post-init user code here
}//GEN-BEGIN:|753-getter|2|
return ACHValidateform;
}
//</editor-fold>//GEN-END:|753-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidateAmt1textField ">//GEN-BEGIN:|760-getter|0|760-preInit
/**
* Returns an initialized instance of ACHValidateAmt1textField component.
*
* @return the initialized component instance
*/
public TextField getACHValidateAmt1textField() {
if (ACHValidateAmt1textField == null) {//GEN-END:|760-getter|0|760-preInit
// write pre-init user code here
ACHValidateAmt1textField = new TextField(setLang("ACHVerifyAmount"), "0.", 32, TextField.ANY);//GEN-BEGIN:|760-getter|1|760-postInit
ACHValidateAmt1textField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|760-getter|1|760-postInit
// write post-init user code here
}//GEN-BEGIN:|760-getter|2|
return ACHValidateAmt1textField;
}
//</editor-fold>//GEN-END:|760-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidateAmt2textField ">//GEN-BEGIN:|761-getter|0|761-preInit
/**
* Returns an initialized instance of ACHValidateAmt2textField component.
*
* @return the initialized component instance
*/
public TextField getACHValidateAmt2textField() {
if (ACHValidateAmt2textField == null) {//GEN-END:|761-getter|0|761-preInit
// write pre-init user code here
ACHValidateAmt2textField = new TextField(setLang("ACHVerifyAmount"), "0.", 32, TextField.ANY);//GEN-BEGIN:|761-getter|1|761-postInit
ACHValidateAmt2textField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|761-getter|1|761-postInit
// write post-init user code here
}//GEN-BEGIN:|761-getter|2|
return ACHValidateAmt2textField;
}
//</editor-fold>//GEN-END:|761-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHValidateMsgstringItem ">//GEN-BEGIN:|763-getter|0|763-preInit
/**
* Returns an initialized instance of ACHValidateMsgstringItem component.
*
* @return the initialized component instance
*/
public StringItem getACHValidateMsgstringItem() {
if (ACHValidateMsgstringItem == null) {//GEN-END:|763-getter|0|763-preInit
// write pre-init user code here
ACHValidateMsgstringItem = new StringItem(setLang("ACHValidateMsg"), "");//GEN-LINE:|763-getter|1|763-postInit
// write post-init user code here
}//GEN-BEGIN:|763-getter|2|
return ACHValidateMsgstringItem;
}
//</editor-fold>//GEN-END:|763-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHOneTimeDepWithbackCommand ">//GEN-BEGIN:|765-getter|0|765-preInit
/**
* Returns an initialized instance of ACHOneTimeDepWithbackCommand
* component.
*
* @return the initialized component instance
*/
public Command getACHOneTimeDepWithbackCommand() {
if (ACHOneTimeDepWithbackCommand == null) {//GEN-END:|765-getter|0|765-preInit
// write pre-init user code here
ACHOneTimeDepWithbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|765-getter|1|765-postInit
// write post-init user code here
}//GEN-BEGIN:|765-getter|2|
return ACHOneTimeDepWithbackCommand;
}
//</editor-fold>//GEN-END:|765-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHOneTimeDepWithokCommand ">//GEN-BEGIN:|767-getter|0|767-preInit
/**
* Returns an initialized instance of ACHOneTimeDepWithokCommand component.
*
* @return the initialized component instance
*/
public Command getACHOneTimeDepWithokCommand() {
if (ACHOneTimeDepWithokCommand == null) {//GEN-END:|767-getter|0|767-preInit
// write pre-init user code here
ACHOneTimeDepWithokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|767-getter|1|767-postInit
// write post-init user code here
}//GEN-BEGIN:|767-getter|2|
return ACHOneTimeDepWithokCommand;
}
//</editor-fold>//GEN-END:|767-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHOneTimeDepWithform ">//GEN-BEGIN:|764-getter|0|764-preInit
/**
* Returns an initialized instance of ACHOneTimeDepWithform component.
*
* @return the initialized component instance
*/
public Form getACHOneTimeDepWithform() {
if (ACHOneTimeDepWithform == null) {//GEN-END:|764-getter|0|764-preInit
// write pre-init user code here
ACHOneTimeDepWithform = new Form(setLang("AchTransactionOneTimeform"), new Item[]{getACHDepositAmtOnetextField()});//GEN-BEGIN:|764-getter|1|764-postInit
ACHOneTimeDepWithform.addCommand(getACHOneTimeDepWithbackCommand());
ACHOneTimeDepWithform.addCommand(getACHOneTimeDepWithokCommand());
ACHOneTimeDepWithform.setCommandListener(this);//GEN-END:|764-getter|1|764-postInit
// write post-init user code here
}//GEN-BEGIN:|764-getter|2|
return ACHOneTimeDepWithform;
}
//</editor-fold>//GEN-END:|764-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepositAmtOnetextField ">//GEN-BEGIN:|769-getter|0|769-preInit
/**
* Returns an initialized instance of ACHDepositAmtOnetextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepositAmtOnetextField() {
if (ACHDepositAmtOnetextField == null) {//GEN-END:|769-getter|0|769-preInit
// write pre-init user code here
ACHDepositAmtOnetextField = new TextField(setLang("DepositAMTtextField"), "", 32, TextField.ANY);//GEN-BEGIN:|769-getter|1|769-postInit
ACHDepositAmtOnetextField.setInitialInputMode("UCB_BASIC_LATIN");//GEN-END:|769-getter|1|769-postInit
// write post-init user code here
}//GEN-BEGIN:|769-getter|2|
return ACHDepositAmtOnetextField;
}
//</editor-fold>//GEN-END:|769-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHActiveMainbackCommand ">//GEN-BEGIN:|778-getter|0|778-preInit
/**
* Returns an initialized instance of ACHActiveMainbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHActiveMainbackCommand() {
if (ACHActiveMainbackCommand == null) {//GEN-END:|778-getter|0|778-preInit
// write pre-init user code here
ACHActiveMainbackCommand = new Command("Back", Command.BACK, 0);//GEN-LINE:|778-getter|1|778-postInit
// write post-init user code here
}//GEN-BEGIN:|778-getter|2|
return ACHActiveMainbackCommand;
}
//</editor-fold>//GEN-END:|778-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHActiveMainokCommand ">//GEN-BEGIN:|781-getter|0|781-preInit
/**
* Returns an initialized instance of ACHActiveMainokCommand component.
*
* @return the initialized component instance
*/
public Command getACHActiveMainokCommand() {
if (ACHActiveMainokCommand == null) {//GEN-END:|781-getter|0|781-preInit
// write pre-init user code here
ACHActiveMainokCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|781-getter|1|781-postInit
// write post-init user code here
}//GEN-BEGIN:|781-getter|2|
return ACHActiveMainokCommand;
}
//</editor-fold>//GEN-END:|781-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHActiveAccountMenuform ">//GEN-BEGIN:|772-getter|0|772-preInit
/**
* Returns an initialized instance of ACHActiveAccountMenuform component.
*
* @return the initialized component instance
*/
public Form getACHActiveAccountMenuform() {
if (ACHActiveAccountMenuform == null) {//GEN-END:|772-getter|0|772-preInit
// write pre-init user code here
ACHActiveAccountMenuform = new Form(setLang("ACHActiveAccountMenuform"), new Item[]{getACHActiveMenuchoiceGroup()});//GEN-BEGIN:|772-getter|1|772-postInit
ACHActiveAccountMenuform.addCommand(getACHActiveMainbackCommand());
ACHActiveAccountMenuform.addCommand(getACHActiveMainokCommand());
ACHActiveAccountMenuform.setCommandListener(this);//GEN-END:|772-getter|1|772-postInit
// write post-init user code here
if (ACHOperations.startsWith(Constants.ACHDEPOSIT))
ACHActiveMenuchoiceGroup.setLabel(setLang("ACHOpDeposit"));
else
ACHActiveMenuchoiceGroup.setLabel(setLang("ACHOpWithdraw"));
}//GEN-BEGIN:|772-getter|2|
return ACHActiveAccountMenuform;
}
//</editor-fold>//GEN-END:|772-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHActiveMenuchoiceGroup ">//GEN-BEGIN:|774-getter|0|774-preInit
/**
* Returns an initialized instance of ACHActiveMenuchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getACHActiveMenuchoiceGroup() {
if (ACHActiveMenuchoiceGroup == null) {//GEN-END:|774-getter|0|774-preInit
// write pre-init user code here
ACHActiveMenuchoiceGroup = new ChoiceGroup(setLang("ACHMsg"), Choice.EXCLUSIVE);//GEN-BEGIN:|774-getter|1|774-postInit
ACHActiveMenuchoiceGroup.append(setLang("MENU_ACH_TRANSACTION_ONETIME"), null);
ACHActiveMenuchoiceGroup.append(setLang("MENU_ACH_RECURRING_SETUP"), null);
ACHActiveMenuchoiceGroup.append(setLang("MENU_ACH_RECURRING_DELETE"), null);
ACHActiveMenuchoiceGroup.append(setLang("MENU_ACH_ACCOUNT_DELETE"), null);
ACHActiveMenuchoiceGroup.setSelectedFlags(new boolean[]{true, false, false, false});//GEN-END:|774-getter|1|774-postInit
// write post-init user code here
}//GEN-BEGIN:|774-getter|2|
return ACHActiveMenuchoiceGroup;
}
//</editor-fold>//GEN-END:|774-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform ">//GEN-BEGIN:|784-getter|0|784-preInit
/**
* Returns an initialized instance of ACHSetRecurform component.
*
* @return the initialized component instance
*/
public Form getACHSetRecurform() {
if (ACHSetRecurform == null) {//GEN-END:|784-getter|0|784-preInit
// write pre-init user code here
ACHSetRecurform = new Form(setLang("MENU_ACH_TRANSACTION_RECURRING"), new Item[]{getACHDepStartMonthtextField(), getACHDepStartDaytextField(), getACHDepStartYeartextField()});//GEN-BEGIN:|784-getter|1|784-postInit
ACHSetRecurform.addCommand(getACHSetRecurbackCommand());
ACHSetRecurform.addCommand(getACHSetRecurcokCommand());
ACHSetRecurform.setCommandListener(this);//GEN-END:|784-getter|1|784-postInit
// write post-init user code here
}//GEN-BEGIN:|784-getter|2|
return ACHSetRecurform;
}
//</editor-fold>//GEN-END:|784-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurbackCommand ">//GEN-BEGIN:|785-getter|0|785-preInit
/**
* Returns an initialized instance of ACHSetRecurbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurbackCommand() {
if (ACHSetRecurbackCommand == null) {//GEN-END:|785-getter|0|785-preInit
// write pre-init user code here
ACHSetRecurbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|785-getter|1|785-postInit
// write post-init user code here
}//GEN-BEGIN:|785-getter|2|
return ACHSetRecurbackCommand;
}
//</editor-fold>//GEN-END:|785-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurcokCommand ">//GEN-BEGIN:|788-getter|0|788-preInit
/**
* Returns an initialized instance of ACHSetRecurcokCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurcokCommand() {
if (ACHSetRecurcokCommand == null) {//GEN-END:|788-getter|0|788-preInit
// write pre-init user code here
ACHSetRecurcokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|788-getter|1|788-postInit
// write post-init user code here
}//GEN-BEGIN:|788-getter|2|
return ACHSetRecurcokCommand;
}
//</editor-fold>//GEN-END:|788-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepStartMonthtextField ">//GEN-BEGIN:|826-getter|0|826-preInit
/**
* Returns an initialized instance of ACHDepStartMonthtextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepStartMonthtextField() {
if (ACHDepStartMonthtextField == null) {//GEN-END:|826-getter|0|826-preInit
// write pre-init user code here
ACHDepStartMonthtextField = new TextField(setLang("START_DATE_MONTH"), "1", 32, TextField.NUMERIC);//GEN-LINE:|826-getter|1|826-postInit
// write post-init user code here
}//GEN-BEGIN:|826-getter|2|
return ACHDepStartMonthtextField;
}
//</editor-fold>//GEN-END:|826-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepStartDaytextField ">//GEN-BEGIN:|827-getter|0|827-preInit
/**
* Returns an initialized instance of ACHDepStartDaytextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepStartDaytextField() {
if (ACHDepStartDaytextField == null) {//GEN-END:|827-getter|0|827-preInit
// write pre-init user code here
ACHDepStartDaytextField = new TextField(setLang("START_DATE_DAY"), "1", 32, TextField.NUMERIC);//GEN-LINE:|827-getter|1|827-postInit
// write post-init user code here
}//GEN-BEGIN:|827-getter|2|
return ACHDepStartDaytextField;
}
//</editor-fold>//GEN-END:|827-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepStartYeartextField ">//GEN-BEGIN:|828-getter|0|828-preInit
/**
* Returns an initialized instance of ACHDepStartYeartextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepStartYeartextField() {
if (ACHDepStartYeartextField == null) {//GEN-END:|828-getter|0|828-preInit
// write pre-init user code here
ACHDepStartYeartextField = new TextField(setLang("START_DATE_YEAR"), "2013", 32, TextField.NUMERIC);//GEN-LINE:|828-getter|1|828-postInit
// write post-init user code here
}//GEN-BEGIN:|828-getter|2|
return ACHDepStartYeartextField;
}
//</editor-fold>//GEN-END:|828-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform3backCommand ">//GEN-BEGIN:|831-getter|0|831-preInit
/**
* Returns an initialized instance of ACHSetRecurform3backCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurform3backCommand() {
if (ACHSetRecurform3backCommand == null) {//GEN-END:|831-getter|0|831-preInit
// write pre-init user code here
ACHSetRecurform3backCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|831-getter|1|831-postInit
// write post-init user code here
}//GEN-BEGIN:|831-getter|2|
return ACHSetRecurform3backCommand;
}
//</editor-fold>//GEN-END:|831-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform2backCommand ">//GEN-BEGIN:|836-getter|0|836-preInit
/**
* Returns an initialized instance of ACHSetRecurform2backCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurform2backCommand() {
if (ACHSetRecurform2backCommand == null) {//GEN-END:|836-getter|0|836-preInit
// write pre-init user code here
ACHSetRecurform2backCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|836-getter|1|836-postInit
// write post-init user code here
}//GEN-BEGIN:|836-getter|2|
return ACHSetRecurform2backCommand;
}
//</editor-fold>//GEN-END:|836-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform2okCommand ">//GEN-BEGIN:|838-getter|0|838-preInit
/**
* Returns an initialized instance of ACHSetRecurform2okCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurform2okCommand() {
if (ACHSetRecurform2okCommand == null) {//GEN-END:|838-getter|0|838-preInit
// write pre-init user code here
ACHSetRecurform2okCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|838-getter|1|838-postInit
// write post-init user code here
}//GEN-BEGIN:|838-getter|2|
return ACHSetRecurform2okCommand;
}
//</editor-fold>//GEN-END:|838-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform2 ">//GEN-BEGIN:|829-getter|0|829-preInit
/**
* Returns an initialized instance of ACHSetRecurform2 component.
*
* @return the initialized component instance
*/
public Form getACHSetRecurform2() {
if (ACHSetRecurform2 == null) {//GEN-END:|829-getter|0|829-preInit
// write pre-init user code here
ACHSetRecurform2 = new Form("form", new Item[]{getACHDepRecEndMonthtextField(), getACHDepRecEndDaytextField(), getACHDepRecEndYeartextField()});//GEN-BEGIN:|829-getter|1|829-postInit
ACHSetRecurform2.addCommand(getACHSetRecurform2backCommand());
ACHSetRecurform2.addCommand(getACHSetRecurform2okCommand());
ACHSetRecurform2.setCommandListener(this);//GEN-END:|829-getter|1|829-postInit
// write post-init user code here
}//GEN-BEGIN:|829-getter|2|
return ACHSetRecurform2;
}
//</editor-fold>//GEN-END:|829-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepRecEndMonthtextField ">//GEN-BEGIN:|842-getter|0|842-preInit
/**
* Returns an initialized instance of ACHDepRecEndMonthtextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepRecEndMonthtextField() {
if (ACHDepRecEndMonthtextField == null) {//GEN-END:|842-getter|0|842-preInit
// write pre-init user code here
ACHDepRecEndMonthtextField = new TextField(setLang("END_DATE_MONTH"), "1", 32, TextField.NUMERIC);//GEN-LINE:|842-getter|1|842-postInit
// write post-init user code here
}//GEN-BEGIN:|842-getter|2|
return ACHDepRecEndMonthtextField;
}
//</editor-fold>//GEN-END:|842-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepRecEndDaytextField ">//GEN-BEGIN:|843-getter|0|843-preInit
/**
* Returns an initialized instance of ACHDepRecEndDaytextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepRecEndDaytextField() {
if (ACHDepRecEndDaytextField == null) {//GEN-END:|843-getter|0|843-preInit
// write pre-init user code here
ACHDepRecEndDaytextField = new TextField(setLang("END_DATE_DAY"), "1", 32, TextField.NUMERIC);//GEN-LINE:|843-getter|1|843-postInit
// write post-init user code here
}//GEN-BEGIN:|843-getter|2|
return ACHDepRecEndDaytextField;
}
//</editor-fold>//GEN-END:|843-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepRecEndYeartextField ">//GEN-BEGIN:|844-getter|0|844-preInit
/**
* Returns an initialized instance of ACHDepRecEndYeartextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepRecEndYeartextField() {
if (ACHDepRecEndYeartextField == null) {//GEN-END:|844-getter|0|844-preInit
// write pre-init user code here
ACHDepRecEndYeartextField = new TextField(setLang("END_DATE_YEAR"), "2013", 32, TextField.NUMERIC);//GEN-LINE:|844-getter|1|844-postInit
// write post-init user code here
}//GEN-BEGIN:|844-getter|2|
return ACHDepRecEndYeartextField;
}
//</editor-fold>//GEN-END:|844-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform3 ">//GEN-BEGIN:|830-getter|0|830-preInit
/**
* Returns an initialized instance of ACHSetRecurform3 component.
*
* @return the initialized component instance
*/
public Form getACHSetRecurform3() {
if (ACHSetRecurform3 == null) {//GEN-END:|830-getter|0|830-preInit
// write pre-init user code here
ACHSetRecurform3 = new Form("form", new Item[]{getACHDepRecFreqchoiceGroup(), getACHDepRecAmttextField()});//GEN-BEGIN:|830-getter|1|830-postInit
ACHSetRecurform3.addCommand(getACHSetRecurform3backCommand());
ACHSetRecurform3.addCommand(getACHSetRecurform3okCommand());
ACHSetRecurform3.setCommandListener(this);//GEN-END:|830-getter|1|830-postInit
// write post-init user code here
}//GEN-BEGIN:|830-getter|2|
return ACHSetRecurform3;
}
//</editor-fold>//GEN-END:|830-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepRecFreqchoiceGroup ">//GEN-BEGIN:|834-getter|0|834-preInit
/**
* Returns an initialized instance of ACHDepRecFreqchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getACHDepRecFreqchoiceGroup() {
if (ACHDepRecFreqchoiceGroup == null) {//GEN-END:|834-getter|0|834-preInit
// write pre-init user code here
ACHDepRecFreqchoiceGroup = new ChoiceGroup(setLang("FREQUENCY"), Choice.EXCLUSIVE);//GEN-BEGIN:|834-getter|1|834-postInit
ACHDepRecFreqchoiceGroup.append(setLang("WEEKLY"), null);
ACHDepRecFreqchoiceGroup.append(setLang("MONTHLY"), null);
ACHDepRecFreqchoiceGroup.setSelectedFlags(new boolean[]{false, true});//GEN-END:|834-getter|1|834-postInit
// write post-init user code here
}//GEN-BEGIN:|834-getter|2|
return ACHDepRecFreqchoiceGroup;
}
//</editor-fold>//GEN-END:|834-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDepRecAmttextField ">//GEN-BEGIN:|835-getter|0|835-preInit
/**
* Returns an initialized instance of ACHDepRecAmttextField component.
*
* @return the initialized component instance
*/
public TextField getACHDepRecAmttextField() {
if (ACHDepRecAmttextField == null) {//GEN-END:|835-getter|0|835-preInit
// write pre-init user code here
ACHDepRecAmttextField = new TextField(setLang("SENDAmounttextField"), null, 32, TextField.ANY);//GEN-LINE:|835-getter|1|835-postInit
// write post-init user code here
}//GEN-BEGIN:|835-getter|2|
return ACHDepRecAmttextField;
}
//</editor-fold>//GEN-END:|835-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHSetRecurform3okCommand ">//GEN-BEGIN:|847-getter|0|847-preInit
/**
* Returns an initialized instance of ACHSetRecurform3okCommand component.
*
* @return the initialized component instance
*/
public Command getACHSetRecurform3okCommand() {
if (ACHSetRecurform3okCommand == null) {//GEN-END:|847-getter|0|847-preInit
// write pre-init user code here
ACHSetRecurform3okCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|847-getter|1|847-postInit
// write post-init user code here
}//GEN-BEGIN:|847-getter|2|
return ACHSetRecurform3okCommand;
}
//</editor-fold>//GEN-END:|847-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHAddAccountstringItem ">//GEN-BEGIN:|850-getter|0|850-preInit
/**
* Returns an initialized instance of ACHAddAccountstringItem component.
*
* @return the initialized component instance
*/
public StringItem getACHAddAccountstringItem() {
if (ACHAddAccountstringItem == null) {//GEN-END:|850-getter|0|850-preInit
// write pre-init user code here
ACHAddAccountstringItem = new StringItem(setLang("ACHAddAccountMsg"), "", Item.PLAIN);//GEN-LINE:|850-getter|1|850-postInit
// write post-init user code here
}//GEN-BEGIN:|850-getter|2|
return ACHAddAccountstringItem;
}
//</editor-fold>//GEN-END:|850-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: billpaymenuchoiceGroup ">//GEN-BEGIN:|851-getter|0|851-preInit
/**
* Returns an initialized instance of billpaymenuchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getBillpaymenuchoiceGroup() {
if (billpaymenuchoiceGroup == null) {//GEN-END:|851-getter|0|851-preInit
// write pre-init user code here
billpaymenuchoiceGroup = new ChoiceGroup(setLang("ACHMsg"), Choice.EXCLUSIVE);//GEN-BEGIN:|851-getter|1|851-postInit
billpaymenuchoiceGroup.append(setLang("BillPayMenu1"), null);
billpaymenuchoiceGroup.append(setLang("BillPayMenu2"), null);
billpaymenuchoiceGroup.append(setLang("BillPayMenu3"), null);
billpaymenuchoiceGroup.append(setLang("BillPayMenu4"), null);
billpaymenuchoiceGroup.setSelectedFlags(new boolean[]{true, false, false, false});//GEN-END:|851-getter|1|851-postInit
// write post-init user code here
}//GEN-BEGIN:|851-getter|2|
return billpaymenuchoiceGroup;
}
//</editor-fold>//GEN-END:|851-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPaybackCommand ">//GEN-BEGIN:|860-getter|0|860-preInit
/**
* Returns an initialized instance of BPPaybackCommand component.
*
* @return the initialized component instance
*/
public Command getBPPaybackCommand() {
if (BPPaybackCommand == null) {//GEN-END:|860-getter|0|860-preInit
// write pre-init user code here
BPPaybackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|860-getter|1|860-postInit
// write post-init user code here
}//GEN-BEGIN:|860-getter|2|
return BPPaybackCommand;
}
//</editor-fold>//GEN-END:|860-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPayokCommand ">//GEN-BEGIN:|862-getter|0|862-preInit
/**
* Returns an initialized instance of BPPayokCommand component.
*
* @return the initialized component instance
*/
public Command getBPPayokCommand() {
if (BPPayokCommand == null) {//GEN-END:|862-getter|0|862-preInit
// write pre-init user code here
BPPayokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|862-getter|1|862-postInit
// write post-init user code here
}//GEN-BEGIN:|862-getter|2|
return BPPayokCommand;
}
//</editor-fold>//GEN-END:|862-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPayABillform ">//GEN-BEGIN:|856-getter|0|856-preInit
/**
* Returns an initialized instance of BPPayABillform component.
*
* @return the initialized component instance
*/
public Form getBPPayABillform() {
if (BPPayABillform == null) {//GEN-END:|856-getter|0|856-preInit
// write pre-init user code here
BPPayABillform = new Form(setLang("BillPayMenu1"), new Item[]{getBPPaystringItem(), getBPPayAccountNumberrtextField(), getBPPayAmounttextField()});//GEN-BEGIN:|856-getter|1|856-postInit
BPPayABillform.addCommand(getBPPaybackCommand());
BPPayABillform.addCommand(getBPPayokCommand());
BPPayABillform.setCommandListener(this);//GEN-END:|856-getter|1|856-postInit
// write post-init user code here
}//GEN-BEGIN:|856-getter|2|
return BPPayABillform;
}
//</editor-fold>//GEN-END:|856-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPaystringItem ">//GEN-BEGIN:|866-getter|0|866-preInit
/**
* Returns an initialized instance of BPPaystringItem component.
*
* @return the initialized component instance
*/
public StringItem getBPPaystringItem() {
if (BPPaystringItem == null) {//GEN-END:|866-getter|0|866-preInit
// write pre-init user code here
BPPaystringItem = new StringItem(setLang("BPPaystringItem"), null);//GEN-LINE:|866-getter|1|866-postInit
// write post-init user code here
}//GEN-BEGIN:|866-getter|2|
return BPPaystringItem;
}
//</editor-fold>//GEN-END:|866-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPayAccountNumberrtextField ">//GEN-BEGIN:|867-getter|0|867-preInit
/**
* Returns an initialized instance of BPPayAccountNumberrtextField
* component.
*
* @return the initialized component instance
*/
public TextField getBPPayAccountNumberrtextField() {
if (BPPayAccountNumberrtextField == null) {//GEN-END:|867-getter|0|867-preInit
// write pre-init user code here
BPPayAccountNumberrtextField = new TextField(setLang("BPPayAccountNumberrtextField"), null, 32, TextField.ANY);//GEN-LINE:|867-getter|1|867-postInit
// write post-init user code here
}//GEN-BEGIN:|867-getter|2|
return BPPayAccountNumberrtextField;
}
//</editor-fold>//GEN-END:|867-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPPayAmounttextField ">//GEN-BEGIN:|868-getter|0|868-preInit
/**
* Returns an initialized instance of BPPayAmounttextField component.
*
* @return the initialized component instance
*/
public TextField getBPPayAmounttextField() {
if (BPPayAmounttextField == null) {//GEN-END:|868-getter|0|868-preInit
// write pre-init user code here
BPPayAmounttextField = new TextField(setLang("SENDAmounttextField"), null, 32, TextField.ANY);//GEN-LINE:|868-getter|1|868-postInit
// write post-init user code here
}//GEN-BEGIN:|868-getter|2|
return BPPayAmounttextField;
}
//</editor-fold>//GEN-END:|868-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPSetupRecform ">//GEN-BEGIN:|857-getter|0|857-preInit
/**
* Returns an initialized instance of BPSetupRecform component.
*
* @return the initialized component instance
*/
public Form getBPSetupRecform() {
if (BPSetupRecform == null) {//GEN-END:|857-getter|0|857-preInit
// write pre-init user code here
BPSetupRecform = new Form("form");//GEN-LINE:|857-getter|1|857-postInit
// write post-init user code here
}//GEN-BEGIN:|857-getter|2|
return BPSetupRecform;
}
//</editor-fold>//GEN-END:|857-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPListPaidBillsform ">//GEN-BEGIN:|858-getter|0|858-preInit
/**
* Returns an initialized instance of BPListPaidBillsform component.
*
* @return the initialized component instance
*/
public Form getBPListPaidBillsform() {
if (BPListPaidBillsform == null) {//GEN-END:|858-getter|0|858-preInit
// write pre-init user code here
BPListPaidBillsform = new Form("form");//GEN-LINE:|858-getter|1|858-postInit
// write post-init user code here
}//GEN-BEGIN:|858-getter|2|
return BPListPaidBillsform;
}
//</editor-fold>//GEN-END:|858-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: BPListRecurBillsform ">//GEN-BEGIN:|859-getter|0|859-preInit
/**
* Returns an initialized instance of BPListRecurBillsform component.
*
* @return the initialized component instance
*/
public Form getBPListRecurBillsform() {
if (BPListRecurBillsform == null) {//GEN-END:|859-getter|0|859-preInit
// write pre-init user code here
BPListRecurBillsform = new Form("form");//GEN-LINE:|859-getter|1|859-postInit
// write post-init user code here
}//GEN-BEGIN:|859-getter|2|
return BPListRecurBillsform;
}
//</editor-fold>//GEN-END:|859-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDelRecurbackCommand ">//GEN-BEGIN:|871-getter|0|871-preInit
/**
* Returns an initialized instance of ACHDelRecurbackCommand component.
*
* @return the initialized component instance
*/
public Command getACHDelRecurbackCommand() {
if (ACHDelRecurbackCommand == null) {//GEN-END:|871-getter|0|871-preInit
// write pre-init user code here
ACHDelRecurbackCommand = new Command(setLang("Back"), setLang("Back"), Command.BACK, 0);//GEN-LINE:|871-getter|1|871-postInit
// write post-init user code here
}//GEN-BEGIN:|871-getter|2|
return ACHDelRecurbackCommand;
}
//</editor-fold>//GEN-END:|871-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: ACHDelRecurokCommand ">//GEN-BEGIN:|874-getter|0|874-preInit
/**
* Returns an initialized instance of ACHDelRecurokCommand component.
*
* @return the initialized component instance
*/
public Command getACHDelRecurokCommand() {
if (ACHDelRecurokCommand == null) {//GEN-END:|874-getter|0|874-preInit
// write pre-init user code here
ACHDelRecurokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|874-getter|1|874-postInit
// write post-init user code here
}//GEN-BEGIN:|874-getter|2|
return ACHDelRecurokCommand;
}
//</editor-fold>//GEN-END:|874-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AskQuestionokCommand ">//GEN-BEGIN:|880-getter|0|880-preInit
/**
* Returns an initialized instance of AskQuestionokCommand component.
*
* @return the initialized component instance
*/
public Command getAskQuestionokCommand() {
if (AskQuestionokCommand == null) {//GEN-END:|880-getter|0|880-preInit
// write pre-init user code here
AskQuestionokCommand = new Command(setLang("Ok"), setLang("Ok"), Command.OK, 0);//GEN-LINE:|880-getter|1|880-postInit
// write post-init user code here
}//GEN-BEGIN:|880-getter|2|
return AskQuestionokCommand;
}
//</editor-fold>//GEN-END:|880-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AskQuestionform ">//GEN-BEGIN:|878-getter|0|878-preInit
/**
* Returns an initialized instance of AskQuestionform component.
*
* @return the initialized component instance
*/
public Form getAskQuestionform() {
if (AskQuestionform == null) {//GEN-END:|878-getter|0|878-preInit
// write pre-init user code here
AskQuestionform = new Form("form", new Item[]{getAskQuestionchoiceGroup()});//GEN-BEGIN:|878-getter|1|878-postInit
AskQuestionform.addCommand(getAskQuestionokCommand());
AskQuestionform.setCommandListener(this);//GEN-END:|878-getter|1|878-postInit
// write post-init user code here
}//GEN-BEGIN:|878-getter|2|
return AskQuestionform;
}
//</editor-fold>//GEN-END:|878-getter|2|
//<editor-fold defaultstate="collapsed" desc=" Generated Getter: AskQuestionchoiceGroup ">//GEN-BEGIN:|882-getter|0|882-preInit
/**
* Returns an initialized instance of AskQuestionchoiceGroup component.
*
* @return the initialized component instance
*/
public ChoiceGroup getAskQuestionchoiceGroup() {
if (AskQuestionchoiceGroup == null) {//GEN-END:|882-getter|0|882-preInit
// write pre-init user code here
AskQuestionchoiceGroup = new ChoiceGroup(setLang("AskQuestionchoiceGroup"), Choice.EXCLUSIVE);//GEN-BEGIN:|882-getter|1|882-postInit
AskQuestionchoiceGroup.append(setLang("Yes"), null);
AskQuestionchoiceGroup.append(setLang("No"), null);
AskQuestionchoiceGroup.setSelectedFlags(new boolean[]{false, false});//GEN-END:|882-getter|1|882-postInit
// write post-init user code here
}//GEN-BEGIN:|882-getter|2|
return AskQuestionchoiceGroup;
}
//</editor-fold>//GEN-END:|882-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 Diagnostic selection IF property is set to 1
*/
private String getDiags() {
String diag = getAppProperty("EMIDA_APP_DIAGNOSTICS");
if (diag.startsWith("1"))
return ("Diagnostics");
else
return ("");
}
/**
* Save the mobile devices phone number to a RMS database, and send update carriers transaction.
* Remove +,#,* from field.
* @param cell
*/
private void CheckCellNumAndCarrier(String cell,String pin) {
DBagentCellNumber = cell.trim();
if (DBagentCellNumber.startsWith("+")) {
DBagentCellNumber = DBagentCellNumber.substring(1);
}
this.SavedPIN = pin;
this.HumanCmd = this.DBagentCellNumber;
Sms_message_out = Constants.smsActionSignOn+pin;
SmsSend = buildSMSParam(Constants.smsActionSignOn);
switchDisplayable(null, getSendopform());
}
/***
*
* @param _recordType
* @param _recordValue
* @return Result of the operation. 1 for success.
*/
public int SetProperty(String _recordType, String _recordValue) {
int result = 1;
try {
result = propertyStore.setRecord(_recordType, _recordValue);
propertyStore.printAllRecords();
} catch (Exception e) {
e.printStackTrace();
result = 0;
}
return result;
}
/***
*
* @param _recordType
* @return The property string being retrieved.
*/
public String GetProperty(String _recordType) {
String record = null;
try {
record = propertyStore.getRecord(_recordType);
} catch (Exception ex) {
ex.printStackTrace();
}
return record;
}
public int addCarrier(String _recordType, String _recordValue) {
int result = 1;
try {
result = this.carriersStore.setRecord(_recordType, _recordValue+Constants.RECORD_DELIMITER+_recordType);
} catch (Exception e) {
e.printStackTrace();
result = 0;
}
return result;
}
public int addState(String _recordType, String _recordValue) {
int result = 1;
try {
result = this.statesStore.setRecord(_recordType, _recordValue+Constants.RECORD_DELIMITER+_recordType);
} catch (Exception e) {
e.printStackTrace();
result = 0;
}
return result;
}
public void cleanCarriersDataBase(){
try {
this.carriersStore.deleteAllRecords();
} catch (Exception e) {
e.printStackTrace();
}
}
public void fillCarrierDataBase(){
if ( this.carriersStore != null){
String[] allCarriers = this.carriersStore.getAllRecords();
this.carriersInMemory = new Hashtable();
for (int i = 0; i < allCarriers.length; i++)
{
String carrierInfo = allCarriers[i];
String[] params = Utils.split(carrierInfo, Constants.RECORD_DELIMITER);
this.carriersInMemory.put(params[1], params[0]);
}
}
}
public void fillStatesDataBase(){
if ( this.statesStore != null){
String[] allStates = this.statesStore.getAllRecords();
this.statesInMemory = new Vector();
for (int i = 0; i < allStates.length; i++)
{
String statesInfo = allStates[i];
String[] params = Utils.split(statesInfo, Constants.RECORD_DELIMITER);
this.statesInMemory.addElement(new State(params[1], params[0]));
}
}
}
public void ShowMsg(String msg, Form returnform ) {
Alert salah = new Alert(buildTitle(), 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(buildTitle(), 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,getMainBridgelist());
}//ShowMsg
private void buildHumanMsg(String msg, String additionalMsg, String number, String amount) {
if (additionalMsg == null)
HumanCmd = msg + number + Constants.SPACE + amount;
else
HumanCmd = msg +
Constants.SPACE + additionalMsg +
Constants.SPACE + number +
Constants.SPACE + 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 static 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
/**
Tell the server if we want a text message to be sent.
*/
private String buildSMSParam(String operation) {
if (operation.trim().equals(Constants.smsActionBal.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_BALANCE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionSignOn.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_LOGIN");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionLogOut.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_LOGOUT");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionSendMoney.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_SENDMONEY");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionCash.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_WITHDRAW");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionDeposit.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_DEPOSIT");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionTopUp1.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_TOPUP_SELF");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionTopUp2.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_TOPUP_OTHER");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionPin.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_CHANGEPIN");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionHistory.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_HISTORY");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionLocations.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_LOCATOR");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionCarriers.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_CARRIERS");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionBill.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_BILLPAY");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionSupport.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_SUPPORT");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionUpgrade.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_UPGRADE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionInStore.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_INSTORE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionListAccounts.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_LISTACCOUNTS");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionAddAccount.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_ADDACCOUNT");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionVerifyAccount.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_ADDACCOUNT");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionDepositOnce.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_DEPOSIT_ONCE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionDepositRecurring.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_DEPOSIT_RECUR");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionDeleteACHAccount.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_DELETE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionWithdrawOnce.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_WITHDRAW_ONCE");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionACHWithdrawalRec.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_WITHDRAW_RECUR");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionACHDepositRecDelete.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_DEL_DEPOSIT_RECUR");
if (onoff.equals("1"))
return ("&sendSMS=true");
} else if (operation.trim().equals(Constants.smsActionACHWithdrawRecDelete.trim())) {
String onoff = getAppProperty("EMIDA_APP_SMS_ACH_DEL_WITHDRAW_RECUR");
if (onoff.equals("1"))
return ("&sendSMS=true");
}
return ("&sendSMS=false");
}
/**
* SendOperation
*
* The contents of the "operation" is separate from the parameter name "sms_req="
* So if the operation was "bal PIN",
* Then the final parameter would be sms_req=bal pin
* This is done in the Connection class
*
* connect to server, send operation
*/
private void SendOperation() {
String urlServerData = getUrlServer();
String oper = "sms_req="+Constants.sms_req;
ProgressControl progressControl = new ProgressControl(this, urlServerData, Sms_message_out, DBagentCellNumber,SmsSend, oper);
progressControl.start();
progressControl.setTitle("");
switchDisplayable(null, progressControl);
}
private String getUrlServer(){
String version = "ver=" + getAppProperty("EMIDA_APP_VERSION");
String language = GetProperty(Constants.PROPERTY_LANGUAGE);
if ( language != null ){
if (language.toLowerCase().startsWith("english"))
language = "&lang=en";
else if (language.toLowerCase().startsWith("spanish"))
language = "&lang=es";
}
else{
language = "&lang=en";
}
//the immediate param is in the ConnectorBox
String URL = baseURL + version + "&siteUser=" + DBagentCellNumber + language;
return URL;
}
/**
* 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
*/
public static 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("%40"); break;
//missing.....
case '+': urlOK.append("%2B"); break;
default: urlOK.append(ch); break;
}
}
return urlOK.toString();
} //urlEncode
/**
*
* 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
*/
private void createCanvasMainList(int _rebuild) {
String[] mainmenu = buildmenus();
if (_rebuild == 0) {
//Image[] images = null;
// try
// {
// images = new Image[]{
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png"),
// Image.createImage("/cat_cell_menu.png")
// };
// }
// catch(Exception e)
// {
// e.printStackTrace();
// }
CanvasList cl = new CanvasList(MainBridgelist,
getAppProperty("EMIDA_APP_WELCOME")+getAppProperty("EMIDA_APP_VERSION"),
mainmenu);
} else {//rebuild
MainBridgelist.removeCommand(mainListExitCommand);
MainBridgelist.removeCommand(mainmenulist_selectbutton);
mainListExitCommand = null;
mainmenulist_selectbutton=null;
// Image image11 = null;
// try {
// image11 = Image.createImage("/cat_cell_menu.png");
// }
// catch(Exception e)
// {
// e.printStackTrace();
// }
int ii=0;
for (ii=0; ii<mainmenu.length; ii++)
MainBridgelist.set(ii, mainmenu[ii],null);
//exit button
MainBridgelist.addCommand(getMainListExitCommand());
//select button
MainBridgelist.addCommand(getMainmenulist_selectbutton());
}
}
/**
* Fill MainList with name of "name_of_menu" IF property is set to 1
*/
private String getMenu(String name_of_menu) {
String prop = getAppProperty(name_of_menu);
if (name_of_menu.startsWith("EMIDA_APP_SENDMONEY")) {
if (prop.startsWith("1"))
return (setLang("MENUSENDMONEY"));
} else if (name_of_menu.startsWith("EMIDA_APP_TOPUP")) {
if (prop.startsWith("1"))
return (setLang("MENUTOPUP"));
} else if (name_of_menu.startsWith("EMIDA_APP_REQUESTCASH")) {
if (prop.startsWith("1"))
return (setLang("MENUREQUESTCASH"));
} else if (name_of_menu.startsWith("EMIDA_APP_PAYBILL")) {
if (prop.startsWith("1"))
return (setLang("MENUPAYBILL"));
} else if (name_of_menu.startsWith("EMIDA_APP_BALANCE")) {
if (prop.startsWith("1"))
return (setLang("MENUBALANCE"));
} else if (name_of_menu.startsWith("EMIDA_APP_HISTORY")) {
if (prop.startsWith("1"))
return (setLang("MENUHISTORY"));
} else if (name_of_menu.startsWith("EMIDA_APP_CHANGEPIN")) {
if (prop.startsWith("1"))
return (setLang("MENUCHANGEPIN"));
} else if (name_of_menu.startsWith("EMIDA_APP_CHANGELANG")) {
if (prop.startsWith("1"))
return (setLang("MENULANGUAGE"));
} else if (name_of_menu.startsWith("EMIDA_APP_LOCATOR")) {
if (prop.startsWith("1"))
return (setLang("MENULOCATOR"));
} else if (name_of_menu.startsWith("EMIDA_APP_SUPPORT")) {
if (prop.startsWith("1"))
return (setLang("MENUSUPPORT"));
} else if (name_of_menu.startsWith("EMIDA_APP_UPGRADE")) {
if (prop.startsWith("1"))
return (setLang("MENUUPGRADE"));
} else if (name_of_menu.startsWith("EMIDA_APP_INSTORE")) {
if (prop.startsWith("1"))
return (setLang("MENUINSTORE"));
} else if (name_of_menu.startsWith("EMIDA_APP_CASHINOUT")) {
if (prop.startsWith("1"))
return (setLang("MENUCASHINOUT"));
} else if (name_of_menu.startsWith("EMIDA_APP_ABOUT")) {
if (prop.startsWith("1"))
return (setLang("MENUABOUT"));
}
return ("");
}
private int locateoperation(String menuname) {
if (menuname.equals(setLang("MENUSENDMONEY")))
return 0;
if (menuname.equals(setLang("MENUREQUESTCASH")))
return 1;
if (menuname.equals(setLang("MENUDEPOSITCASH")))
return 2;
if (menuname.equals(setLang("MENUPAYBILL")))
return 3;
if (menuname.equals(setLang("MENUTOPUP")))
return 4;
if (menuname.equals(setLang("MENUINSTORE")))
return 5;
if (menuname.equals(setLang("MENUCASHINOUT")))
return 6;
if (menuname.equals(setLang("MENUBALANCE")))
return 7;
if (menuname.equals(setLang("MENUHISTORY")))
return 8;
if (menuname.equals(setLang("MENULOCATOR")))
return 9;
if (menuname.equals(setLang("MENUCHANGEPIN")))
return 10;
if (menuname.equals(setLang("MENULANGUAGE")))
return 11;
if (menuname.equals(setLang("MENUABOUT")))
return 12;
if (menuname.equals(setLang("MENUSUPPORT")))
return 13;
if (menuname.equals(setLang("MENUUPGRADE")))
return 14;
return -1;
}
/**
* Build menus based on property settings in JAD file and international
* languages
* @return
*/
private String[] buildmenus() {
String[] tempmenu = new String[15];
int location =0;
String menulabel = getMenu("EMIDA_APP_SENDMONEY");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_REQUESTCASH");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_DEPOSITCASH");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_PAYBILL");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_TOPUP");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_INSTORE");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_CASHINOUT");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_BALANCE");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_HISTORY");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_LOCATOR");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_CHANGEPIN");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_CHANGELANG");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_SUPPORT");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
menulabel = getMenu("EMIDA_APP_ABOUT");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
if (Kyc_level.equals("1")) {
menulabel = getMenu("EMIDA_APP_UPGRADE");
if (menulabel.length() >0 ) {
tempmenu[location] = menulabel;
location++;
}
}
//re-order
String[] menu = new String[location];
System.arraycopy(tempmenu, 0, menu, 0, location);
return menu;
}
public String setLang(String label) {
return Lang.getText(label);
}
private String buildSplashTitle() {
String title = getAppProperty("EMIDA_APP_WELCOME")+getAppProperty("EMIDA_APP_VERSION");
title = title + " L" + LangAbbrev;
return title;
}
private String buildTitle() {
String title = getAppProperty("EMIDA_APP_TITLE")+getAppProperty("EMIDA_APP_VERSION");
title = title + " L" + LangAbbrev;
return title;
}
private void setTitle() {
MainBridgelist.setTitle(buildTitle());
}
private String getDefaultCarrier() {
String carrierName = this.GetProperty(Constants.PROPERTY_CARRIER_NAME);
if ( carrierName!=null ){
return carrierName;
}
else{
return Constants.NOT_AVAILABLE;
}
}
private void findTemporalCarrierByName(String selectedCarrier) {
Enumeration carrierEnumeration = this.carriersInMemory.keys();
while( carrierEnumeration.hasMoreElements() ){
String keyCarrier = (String)carrierEnumeration.nextElement();
String value = (String)this.carriersInMemory.get(keyCarrier);
if ( value.equals(selectedCarrier)){
this.selectedCarrierId = keyCarrier;
this.selectedCarrierName = value;
break;
}
}
}
public boolean updateCarrierList(String lastDateCarrierUpdate){
boolean result = false;
int emidaAutoUpdateTime = 0;
long windowTime = 0;
try{
emidaAutoUpdateTime = Integer.parseInt(this.getAppProperty("EMIDA_APP_AUTOUPDATE_TIME"));
if ( emidaAutoUpdateTime == 0 || emidaAutoUpdateTime < 24 || emidaAutoUpdateTime > 240 )
{
windowTime = timeStringToLongValue(48);
}
else{
windowTime = timeStringToLongValue(emidaAutoUpdateTime);
}
}
catch(Exception e){
//by default 48 hours or 172800000 milliseconds
windowTime = timeStringToLongValue(48);
}
long lastDate = Long.parseLong(lastDateCarrierUpdate);
long diffDate = System.currentTimeMillis() - lastDate;
if ( diffDate > windowTime )
result = true;
return result;
}
private long timeStringToLongValue(int time){
return time * 60 * 60 * 1000;
}
/**
* Retrieve the ACHID from the ACH account that was previously selected
* @return
*/
private String getACHID () {
//spilt the account number and status
String AchAccountingNumber = null;
int pos = ACHSelectedAccountItem.indexOf(Constants.SPACE);
if (pos == -1) { // bad news
return null;
} else {
AchAccountingNumber = ACHSelectedAccountItem.substring(0,pos).trim();
}
//locate the ACHID
for(int i=0; i < achaccountsInMemory.size() ; i++ ){
ACHAccounts account = (ACHAccounts)achaccountsInMemory.elementAt(i);
if (account.accountnumber.startsWith(AchAccountingNumber)) {
ACHID = account.achid;
break;
}
}
return ACHID;
}
/**
*
* @param typeOfACH
* If Constants.ACHDEPOSIT (locate isdeprecur )
* If Constants.ACHWITHDRAWAL (locate isdwithrecur)
* @return
*/
private boolean isACHRecurringAvailable(String typeOfACH) {
String AchAccountingNumber = null;
int pos = ACHSelectedAccountItem.indexOf(Constants.SPACE);
if (pos == -1) { // bad news
return false;
} else {
AchAccountingNumber = ACHSelectedAccountItem.substring(0,pos).trim();
}
//locate the typeOfACH
for(int i=0; i < achaccountsInMemory.size() ; i++ ){
ACHAccounts account = (ACHAccounts)achaccountsInMemory.elementAt(i);
if (account.accountnumber.startsWith(AchAccountingNumber)) {
if (typeOfACH.startsWith(Constants.ACHDEPOSIT)) {
if (account.isdeprecur.toLowerCase().startsWith("true"))
return true;
else
return false;
} else {
if (account.isdwithrecur.toLowerCase().startsWith("true"))
return true;
else
return false;
}
}
}//for
return false;
}
}