Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package remotepcclient;
- import javax.microedition.lcdui.*;
- import org.netbeans.microedition.lcdui.SplashScreen;
- import org.netbeans.microedition.lcdui.WaitScreen;
- import org.netbeans.microedition.util.SimpleCancellableTask;
- /**
- * @author Jakub Strnad
- */
- public class GUI implements CommandListener {
- private CoreMIDlet midlet;
- //<editor-fold defaultstate="collapsed" desc=" Generated Fields ">//GEN-BEGIN:|fields|0|
- private SplashScreen splashScreen;
- private List mainMenu;
- private List btSearchList;
- private Form tcpForm;
- private TextField serverAddrTF;
- private TextField serverPortTF;
- private TextBox btPwdTB;
- private MyCanvas myCanvas;
- private List settings;
- private TextBox insertTextTB;
- private Form advancedSettings;
- private ChoiceGroup rotateGroup;
- private TextField delayTF;
- private Gauge mouseSpeedGG;
- private List keySettings;
- private WaitScreen tcpConnectWait;
- private Alert tcpConnError;
- private TextBox tcpPwdTB;
- private WaitScreen tcpLoginWait;
- private Alert tcpWrongPwd;
- private WaitScreen btSearchWait;
- private Alert btErrorAlert;
- private Alert connectionLostAlert;
- private WaitScreen btLoginWait;
- private WaitScreen btConnectWait;
- private Alert btWrongPwd;
- private SetKeysCanvas setKeysCanvas;
- private Command exitCmd;
- private Command backCommand1;
- private Command backCommand;
- private Command btConnectCmd1;
- private Command tcpConnCmd;
- private Command btConnectCmd;
- private Command disconnectCmd;
- private Command settingsCmd1;
- private Command insertTextCmd;
- private Command insertOkCommand;
- private Command cancelCommand;
- private Command selectItemCmd;
- private Command btSearchCmd;
- private Command backCommand2;
- private Command cancelCommand1;
- private Command saveAdvSettings;
- private Command selectItemCmd2;
- private Command tcpSendPassCmd;
- private Command backCommand3;
- private Command okCommand;
- private Command backCommand4;
- private Command itemCommand;
- private Command backCommand5;
- private Command cancelCommand2;
- private Command saveCmd;
- private Image ikona128;
- private Font font;
- private Image connecting;
- private Image keyico;
- private Image btico;
- //</editor-fold>//GEN-END:|fields|0|
- /**
- * The GUI constructor.
- * @param midlet the midlet used for getting
- */
- public GUI(CoreMIDlet midlet) {
- this.midlet = midlet;
- }
- //<editor-fold defaultstate="collapsed" desc=" Generated Methods ">//GEN-BEGIN:|methods|0|
- //</editor-fold>//GEN-END:|methods|0|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: initialize ">//GEN-BEGIN:|0-initialize|0|0-preInitialize
- /**
- * Initilizes the application.
- * It is called only once when the MIDlet is started. The method is called before the <code>startMIDlet</code> method.
- */
- private void initialize() {//GEN-END:|0-initialize|0|0-preInitialize
- // write pre-initialize user code here
- //GEN-LINE:|0-initialize|1|0-postInitialize
- // write post-initialize user code here
- }//GEN-BEGIN:|0-initialize|2|
- //</editor-fold>//GEN-END:|0-initialize|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: switchDisplayable ">//GEN-BEGIN:|2-switchDisplayable|0|2-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:|2-switchDisplayable|0|2-preSwitch
- // write pre-switch user code here
- Display display = getDisplay();//GEN-BEGIN:|2-switchDisplayable|1|2-postSwitch
- if (alert == null) {
- display.setCurrent(nextDisplayable);
- } else {
- display.setCurrent(alert, nextDisplayable);
- }//GEN-END:|2-switchDisplayable|1|2-postSwitch
- // write post-switch user code here
- }//GEN-BEGIN:|2-switchDisplayable|2|
- //</editor-fold>//GEN-END:|2-switchDisplayable|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: commandAction for Displayables ">//GEN-BEGIN:|4-commandAction|0|4-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:|4-commandAction|0|4-preCommandAction
- // write pre-action user code here
- if (displayable == advancedSettings) {//GEN-BEGIN:|4-commandAction|1|115-preAction
- if (command == cancelCommand1) {//GEN-END:|4-commandAction|1|115-preAction
- // write pre-action user code here
- switchDisplayable(null, getSettings());//GEN-LINE:|4-commandAction|2|115-postAction
- // write post-action user code here
- } else if (command == saveAdvSettings) {//GEN-LINE:|4-commandAction|3|113-preAction
- midlet.setRotated(getRotateGroup().isSelected(0));
- midlet.setMouseStep(getMouseSpeedGG().getValue());
- midlet.setDelay(Integer.parseInt(getDelayTF().getString()));
- switchDisplayable(null, getSettings());//GEN-LINE:|4-commandAction|4|113-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|5|200-preAction
- } else if (displayable == btConnectWait) {
- if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|4-commandAction|5|200-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtSearchList());//GEN-LINE:|4-commandAction|6|200-postAction
- // write post-action user code here
- } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|4-commandAction|7|199-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtPwdTB());//GEN-LINE:|4-commandAction|8|199-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|9|184-preAction
- } else if (displayable == btLoginWait) {
- if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|4-commandAction|9|184-preAction
- // write pre-action user code here
- switchDisplayable(getBtWrongPwd(), getBtPwdTB());//GEN-LINE:|4-commandAction|10|184-postAction
- // write post-action user code here
- } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|4-commandAction|11|183-preAction
- midlet.startNetThread();
- switchDisplayable(null, getMyCanvas());//GEN-LINE:|4-commandAction|12|183-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|13|191-preAction
- } else if (displayable == btPwdTB) {
- if (command == backCommand4) {//GEN-END:|4-commandAction|13|191-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtSearchList());//GEN-LINE:|4-commandAction|14|191-postAction
- // write post-action user code here
- } else if (command == btConnectCmd) {//GEN-LINE:|4-commandAction|15|51-preAction
- midlet.setPassword(getBtPwdTB().getString());
- switchDisplayable(null, getBtLoginWait());//GEN-LINE:|4-commandAction|16|51-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|17|31-preAction
- } else if (displayable == btSearchList) {
- if (command == List.SELECT_COMMAND) {//GEN-END:|4-commandAction|17|31-preAction
- // write pre-action user code here
- btSearchListAction();//GEN-LINE:|4-commandAction|18|31-postAction
- // write post-action user code here
- } else if (command == backCommand) {//GEN-LINE:|4-commandAction|19|37-preAction
- // write pre-action user code here
- switchDisplayable(null, getMainMenu());//GEN-LINE:|4-commandAction|20|37-postAction
- // write post-action user code here
- } else if (command == btConnectCmd1) {//GEN-LINE:|4-commandAction|21|43-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtConnectWait());//GEN-LINE:|4-commandAction|22|43-postAction
- // write post-action user code here
- } else if (command == btSearchCmd) {//GEN-LINE:|4-commandAction|23|84-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtSearchWait());//GEN-LINE:|4-commandAction|24|84-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|25|171-preAction
- } else if (displayable == btSearchWait) {
- if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|4-commandAction|25|171-preAction
- // write pre-action user code here
- switchDisplayable(getBtErrorAlert(), getMainMenu());//GEN-LINE:|4-commandAction|26|171-postAction
- // write post-action user code here
- } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|4-commandAction|27|170-preAction
- // write pre-action user code here
- switchDisplayable(null, getBtSearchList());//GEN-LINE:|4-commandAction|28|170-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|29|165-preAction
- } else if (displayable == connectionLostAlert) {
- if (command == okCommand) {//GEN-END:|4-commandAction|29|165-preAction
- // write pre-action user code here
- switchDisplayable(null, getMainMenu());//GEN-LINE:|4-commandAction|30|165-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|31|79-preAction
- } else if (displayable == insertTextTB) {
- if (command == cancelCommand) {//GEN-END:|4-commandAction|31|79-preAction
- // write pre-action user code here
- switchDisplayable(null, getMyCanvas());//GEN-LINE:|4-commandAction|32|79-postAction
- // write post-action user code here
- } else if (command == insertOkCommand) {//GEN-LINE:|4-commandAction|33|77-preAction
- midlet.insertText(getInsertTextTB().getString());
- switchDisplayable(null, getMyCanvas());//GEN-LINE:|4-commandAction|34|77-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|35|107-preAction
- } else if (displayable == keySettings) {
- if (command == List.SELECT_COMMAND) {//GEN-END:|4-commandAction|35|107-preAction
- // write pre-action user code here
- keySettingsAction();//GEN-LINE:|4-commandAction|36|107-postAction
- // write post-action user code here
- } else if (command == backCommand5) {//GEN-LINE:|4-commandAction|37|218-preAction
- // write pre-action user code here
- switchDisplayable(null, getSettings());//GEN-LINE:|4-commandAction|38|218-postAction
- // write post-action user code here
- } else if (command == itemCommand) {//GEN-LINE:|4-commandAction|39|221-preAction
- getSetKeysCanvas().setKeyName(getKeySettings().getString(getKeySettings().getSelectedIndex()));
- keySettingsAction();//GEN-LINE:|4-commandAction|40|221-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|41|16-preAction
- } else if (displayable == mainMenu) {
- if (command == List.SELECT_COMMAND) {//GEN-END:|4-commandAction|41|16-preAction
- // write pre-action user code here
- mainMenuAction();//GEN-LINE:|4-commandAction|42|16-postAction
- // write post-action user code here
- } else if (command == exitCmd) {//GEN-LINE:|4-commandAction|43|25-preAction
- // write pre-action user code here
- midlet.exitMIDlet();
- //GEN-LINE:|4-commandAction|44|25-postAction
- // write post-action user code here
- } else if (command == selectItemCmd) {//GEN-LINE:|4-commandAction|45|86-preAction
- // write pre-action user code here
- mainMenuAction();//GEN-LINE:|4-commandAction|46|86-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|47|69-preAction
- } else if (displayable == myCanvas) {
- if (command == disconnectCmd) {//GEN-END:|4-commandAction|47|69-preAction
- midlet.disconnect();
- switchDisplayable(null, getMainMenu());//GEN-LINE:|4-commandAction|48|69-postAction
- // write post-action user code here
- } else if (command == insertTextCmd) {//GEN-LINE:|4-commandAction|49|67-preAction
- // write pre-action user code here
- switchDisplayable(null, getInsertTextTB());//GEN-LINE:|4-commandAction|50|67-postAction
- // write post-action user code here
- } else if (command == settingsCmd1) {//GEN-LINE:|4-commandAction|51|71-preAction
- // write pre-action user code here
- switchDisplayable(null, getSettings());//GEN-LINE:|4-commandAction|52|71-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|53|236-preAction
- } else if (displayable == setKeysCanvas) {
- if (command == cancelCommand2) {//GEN-END:|4-commandAction|53|236-preAction
- // write pre-action user code here
- switchDisplayable(null, getKeySettings());//GEN-LINE:|4-commandAction|54|236-postAction
- // write post-action user code here
- } else if (command == saveCmd) {//GEN-LINE:|4-commandAction|55|234-preAction
- midlet.getControls().put(setKeysCanvas.getLastKeyName(), new Integer(setKeysCanvas.getLastKeyCode()));
- switchDisplayable(null, getKeySettings());//GEN-LINE:|4-commandAction|56|234-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|57|57-preAction
- } else if (displayable == settings) {
- if (command == List.SELECT_COMMAND) {//GEN-END:|4-commandAction|57|57-preAction
- // write pre-action user code here
- settingsAction();//GEN-LINE:|4-commandAction|58|57-postAction
- // write post-action user code here
- } else if (command == backCommand2) {//GEN-LINE:|4-commandAction|59|95-preAction
- // write pre-action user code here
- isConnected();//GEN-LINE:|4-commandAction|60|95-postAction
- // write post-action user code here
- } else if (command == selectItemCmd2) {//GEN-LINE:|4-commandAction|61|122-preAction
- // write pre-action user code here
- settingsAction();//GEN-LINE:|4-commandAction|62|122-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|63|13-preAction
- } else if (displayable == splashScreen) {
- if (command == SplashScreen.DISMISS_COMMAND) {//GEN-END:|4-commandAction|63|13-preAction
- // write pre-action user code here
- switchDisplayable(null, getMainMenu());//GEN-LINE:|4-commandAction|64|13-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|65|128-preAction
- } else if (displayable == tcpConnectWait) {
- if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|4-commandAction|65|128-preAction
- // write pre-action user code here
- switchDisplayable(getTcpConnError(), getTcpForm());//GEN-LINE:|4-commandAction|66|128-postAction
- // write post-action user code here
- } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|4-commandAction|67|127-preAction
- // write pre-action user code here
- switchDisplayable(null, getTcpPwdTB());//GEN-LINE:|4-commandAction|68|127-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|69|39-preAction
- } else if (displayable == tcpForm) {
- if (command == backCommand1) {//GEN-END:|4-commandAction|69|39-preAction
- // write pre-action user code here
- switchDisplayable(null, getMainMenu());//GEN-LINE:|4-commandAction|70|39-postAction
- // write post-action user code here
- } else if (command == tcpConnCmd) {//GEN-LINE:|4-commandAction|71|45-preAction
- midlet.setServerIpAddr(getServerAddrTF().getString());
- midlet.setServerPort(Integer.parseInt(getServerPortTF().getString()));
- switchDisplayable(null, getTcpConnectWait());//GEN-LINE:|4-commandAction|72|45-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|73|145-preAction
- } else if (displayable == tcpLoginWait) {
- if (command == WaitScreen.FAILURE_COMMAND) {//GEN-END:|4-commandAction|73|145-preAction
- // write pre-action user code here
- switchDisplayable(getTcpWrongPwd(), getTcpPwdTB());//GEN-LINE:|4-commandAction|74|145-postAction
- // write post-action user code here
- } else if (command == WaitScreen.SUCCESS_COMMAND) {//GEN-LINE:|4-commandAction|75|144-preAction
- midlet.startNetThread();
- switchDisplayable(null, getMyCanvas());//GEN-LINE:|4-commandAction|76|144-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|77|155-preAction
- } else if (displayable == tcpPwdTB) {
- if (command == backCommand3) {//GEN-END:|4-commandAction|77|155-preAction
- // write pre-action user code here
- switchDisplayable(null, getTcpForm());//GEN-LINE:|4-commandAction|78|155-postAction
- // write post-action user code here
- } else if (command == tcpSendPassCmd) {//GEN-LINE:|4-commandAction|79|142-preAction
- midlet.setPassword(getTcpPwdTB().getString());
- switchDisplayable(null, getTcpLoginWait());//GEN-LINE:|4-commandAction|80|142-postAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|81|4-postCommandAction
- }//GEN-END:|4-commandAction|81|4-postCommandAction
- // write post-action user code here
- }//GEN-BEGIN:|4-commandAction|82|
- //</editor-fold>//GEN-END:|4-commandAction|82|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: splashScreen ">//GEN-BEGIN:|11-getter|0|11-preInit
- /**
- * Returns an initiliazed instance of splashScreen component.
- * @return the initialized component instance
- */
- public SplashScreen getSplashScreen() {
- if (splashScreen == null) {//GEN-END:|11-getter|0|11-preInit
- // write pre-init user code here
- splashScreen = new SplashScreen(getDisplay());//GEN-BEGIN:|11-getter|1|11-postInit
- splashScreen.setTitle("splashScreen");
- splashScreen.setCommandListener(this);
- splashScreen.setFullScreenMode(true);
- splashScreen.setImage(getIkona128());
- splashScreen.setText(TextCz.APPNAME);
- splashScreen.setTextFont(getFont());
- splashScreen.setTimeout(3000);//GEN-END:|11-getter|1|11-postInit
- // write post-init user code here
- }//GEN-BEGIN:|11-getter|2|
- return splashScreen;
- }
- //</editor-fold>//GEN-END:|11-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: mainMenu ">//GEN-BEGIN:|14-getter|0|14-preInit
- /**
- * Returns an initiliazed instance of mainMenu component.
- * @return the initialized component instance
- */
- public List getMainMenu() {
- if (mainMenu == null) {//GEN-END:|14-getter|0|14-preInit
- // write pre-init user code here
- mainMenu = new List(TextCz.APPNAME, Choice.IMPLICIT);//GEN-BEGIN:|14-getter|1|14-postInit
- mainMenu.append(TextCz.BLUETOOTH, null);
- mainMenu.append(TextCz.NETWORK, null);
- mainMenu.append(TextCz.SETTINGS, null);
- mainMenu.addCommand(getSelectItemCmd());
- mainMenu.addCommand(getExitCmd());
- mainMenu.setCommandListener(this);
- mainMenu.setSelectedFlags(new boolean[] { false, false, false });//GEN-END:|14-getter|1|14-postInit
- // write post-init user code here
- }//GEN-BEGIN:|14-getter|2|
- return mainMenu;
- }
- //</editor-fold>//GEN-END:|14-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: mainMenuAction ">//GEN-BEGIN:|14-action|0|14-preAction
- /**
- * Performs an action assigned to the selected list element in the mainMenu component.
- */
- public void mainMenuAction() {//GEN-END:|14-action|0|14-preAction
- // enter pre-action user code here
- String __selectedString = getMainMenu().getString(getMainMenu().getSelectedIndex());//GEN-BEGIN:|14-action|1|87-preAction
- if (__selectedString != null) {
- if (__selectedString.equals(TextCz.BLUETOOTH)) {//GEN-END:|14-action|1|87-preAction
- showBtConnectBtn(false); //nejprve tlacitko skryji
- switchDisplayable(null, getBtSearchList());//GEN-LINE:|14-action|2|87-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.NETWORK)) {//GEN-LINE:|14-action|3|88-preAction
- // write pre-action user code here
- switchDisplayable(null, getTcpForm());//GEN-LINE:|14-action|4|88-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.SETTINGS)) {//GEN-LINE:|14-action|5|89-preAction
- // write pre-action user code here
- switchDisplayable(null, getSettings());//GEN-LINE:|14-action|6|89-postAction
- // write post-action user code here
- }//GEN-BEGIN:|14-action|7|14-postAction
- }//GEN-END:|14-action|7|14-postAction
- // enter post-action user code here
- }//GEN-BEGIN:|14-action|8|
- //</editor-fold>//GEN-END:|14-action|8|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: showGui ">//GEN-BEGIN:|19-entry|0|20-preAction
- /**
- * Performs an action assigned to the showGui entry-point.
- */
- public void showGui() {//GEN-END:|19-entry|0|20-preAction
- // write pre-action user code here
- switchDisplayable(null, getSplashScreen());//GEN-LINE:|19-entry|1|20-postAction
- // write post-action user code here
- }//GEN-BEGIN:|19-entry|2|
- //</editor-fold>//GEN-END:|19-entry|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: ikona128 ">//GEN-BEGIN:|22-getter|0|22-preInit
- /**
- * Returns an initiliazed instance of ikona128 component.
- * @return the initialized component instance
- */
- public Image getIkona128() {
- if (ikona128 == null) {//GEN-END:|22-getter|0|22-preInit
- // write pre-init user code here
- try {//GEN-BEGIN:|22-getter|1|22-@java.io.IOException
- ikona128 = Image.createImage("/ikona128.png");
- } catch (java.io.IOException e) {//GEN-END:|22-getter|1|22-@java.io.IOException
- e.printStackTrace();
- }//GEN-LINE:|22-getter|2|22-postInit
- // write post-init user code here
- }//GEN-BEGIN:|22-getter|3|
- return ikona128;
- }
- //</editor-fold>//GEN-END:|22-getter|3|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: exitCmd ">//GEN-BEGIN:|24-getter|0|24-preInit
- /**
- * Returns an initiliazed instance of exitCmd component.
- * @return the initialized component instance
- */
- public Command getExitCmd() {
- if (exitCmd == null) {//GEN-END:|24-getter|0|24-preInit
- // write pre-init user code here
- exitCmd = new Command(TextCz.EXIT, Command.EXIT, 0);//GEN-LINE:|24-getter|1|24-postInit
- // write post-init user code here
- }//GEN-BEGIN:|24-getter|2|
- return exitCmd;
- }
- //</editor-fold>//GEN-END:|24-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btSearchList ">//GEN-BEGIN:|30-getter|0|30-preInit
- /**
- * Returns an initiliazed instance of btSearchList component.
- * @return the initialized component instance
- */
- public List getBtSearchList() {
- if (btSearchList == null) {//GEN-END:|30-getter|0|30-preInit
- // write pre-init user code here
- btSearchList = new List(TextCz.BLUETOOTH, Choice.IMPLICIT);//GEN-BEGIN:|30-getter|1|30-postInit
- btSearchList.addCommand(getBtConnectCmd1());
- btSearchList.addCommand(getBtSearchCmd());
- btSearchList.addCommand(getBackCommand());
- btSearchList.setCommandListener(this);//GEN-END:|30-getter|1|30-postInit
- // write post-init user code here
- }//GEN-BEGIN:|30-getter|2|
- return btSearchList;
- }
- //</editor-fold>//GEN-END:|30-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: btSearchListAction ">//GEN-BEGIN:|30-action|0|30-preAction
- /**
- * Performs an action assigned to the selected list element in the btSearchList component.
- */
- public void btSearchListAction() {//GEN-END:|30-action|0|30-preAction
- // enter pre-action user code here
- String __selectedString = getBtSearchList().getString(getBtSearchList().getSelectedIndex());//GEN-LINE:|30-action|1|30-postAction
- // enter post-action user code here
- }//GEN-BEGIN:|30-action|2|
- //</editor-fold>//GEN-END:|30-action|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpForm ">//GEN-BEGIN:|33-getter|0|33-preInit
- /**
- * Returns an initiliazed instance of tcpForm component.
- * @return the initialized component instance
- */
- public Form getTcpForm() {
- if (tcpForm == null) {//GEN-END:|33-getter|0|33-preInit
- // write pre-init user code here
- tcpForm = new Form(TextCz.NETWORK, new Item[] { getServerAddrTF(), getServerPortTF() });//GEN-BEGIN:|33-getter|1|33-postInit
- tcpForm.addCommand(getTcpConnCmd());
- tcpForm.addCommand(getBackCommand1());
- tcpForm.setCommandListener(this);//GEN-END:|33-getter|1|33-postInit
- // write post-init user code here
- }//GEN-BEGIN:|33-getter|2|
- return tcpForm;
- }
- //</editor-fold>//GEN-END:|33-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btPwdTB ">//GEN-BEGIN:|46-getter|0|46-preInit
- /**
- * Returns an initiliazed instance of btPwdTB component.
- * @return the initialized component instance
- */
- public TextBox getBtPwdTB() {
- if (btPwdTB == null) {//GEN-END:|46-getter|0|46-preInit
- // write pre-init user code here
- btPwdTB = new TextBox(TextCz.PASSWORD, "", 100, TextField.ANY | TextField.PASSWORD | TextField.NON_PREDICTIVE);//GEN-BEGIN:|46-getter|1|46-postInit
- btPwdTB.addCommand(getBtConnectCmd());
- btPwdTB.addCommand(getBackCommand4());
- btPwdTB.setCommandListener(this);//GEN-END:|46-getter|1|46-postInit
- // write post-init user code here
- }//GEN-BEGIN:|46-getter|2|
- return btPwdTB;
- }
- //</editor-fold>//GEN-END:|46-getter|2|
- //</editor-fold>
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand ">//GEN-BEGIN:|36-getter|0|36-preInit
- /**
- * Returns an initiliazed instance of backCommand component.
- * @return the initialized component instance
- */
- public Command getBackCommand() {
- if (backCommand == null) {//GEN-END:|36-getter|0|36-preInit
- // write pre-init user code here
- backCommand = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|36-getter|1|36-postInit
- // write post-init user code here
- }//GEN-BEGIN:|36-getter|2|
- return backCommand;
- }
- //</editor-fold>//GEN-END:|36-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand1 ">//GEN-BEGIN:|38-getter|0|38-preInit
- /**
- * Returns an initiliazed instance of backCommand1 component.
- * @return the initialized component instance
- */
- public Command getBackCommand1() {
- if (backCommand1 == null) {//GEN-END:|38-getter|0|38-preInit
- // write pre-init user code here
- backCommand1 = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|38-getter|1|38-postInit
- // write post-init user code here
- }//GEN-BEGIN:|38-getter|2|
- return backCommand1;
- }
- //</editor-fold>//GEN-END:|38-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btConnectCmd1 ">//GEN-BEGIN:|42-getter|0|42-preInit
- /**
- * Returns an initiliazed instance of btConnectCmd1 component.
- * @return the initialized component instance
- */
- public Command getBtConnectCmd1() {
- if (btConnectCmd1 == null) {//GEN-END:|42-getter|0|42-preInit
- // write pre-init user code here
- btConnectCmd1 = new Command(TextCz.CONNECT, Command.ITEM, 0);//GEN-LINE:|42-getter|1|42-postInit
- // write post-init user code here
- }//GEN-BEGIN:|42-getter|2|
- return btConnectCmd1;
- }
- //</editor-fold>//GEN-END:|42-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpConnCmd ">//GEN-BEGIN:|44-getter|0|44-preInit
- /**
- * Returns an initiliazed instance of tcpConnCmd component.
- * @return the initialized component instance
- */
- public Command getTcpConnCmd() {
- if (tcpConnCmd == null) {//GEN-END:|44-getter|0|44-preInit
- // write pre-init user code here
- tcpConnCmd = new Command(TextCz.CONNECT, Command.OK, 0);//GEN-LINE:|44-getter|1|44-postInit
- // write post-init user code here
- }//GEN-BEGIN:|44-getter|2|
- return tcpConnCmd;
- }
- //</editor-fold>//GEN-END:|44-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btConnectCmd ">//GEN-BEGIN:|50-getter|0|50-preInit
- /**
- * Returns an initiliazed instance of btConnectCmd component.
- * @return the initialized component instance
- */
- public Command getBtConnectCmd() {
- if (btConnectCmd == null) {//GEN-END:|50-getter|0|50-preInit
- // write pre-init user code here
- btConnectCmd = new Command(TextCz.CONNECT, Command.OK, 0);//GEN-LINE:|50-getter|1|50-postInit
- // write post-init user code here
- }//GEN-BEGIN:|50-getter|2|
- return btConnectCmd;
- }
- //</editor-fold>//GEN-END:|50-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: myCanvas ">//GEN-BEGIN:|54-getter|0|54-preInit
- /**
- * Returns an initiliazed instance of myCanvas component.
- * @return the initialized component instance
- */
- public MyCanvas getMyCanvas() {
- if (myCanvas == null) {//GEN-END:|54-getter|0|54-preInit
- // write pre-init user code here
- myCanvas = new MyCanvas(midlet);//GEN-BEGIN:|54-getter|1|54-postInit
- myCanvas.setTitle("");
- myCanvas.addCommand(getInsertTextCmd());
- myCanvas.addCommand(getSettingsCmd1());
- myCanvas.addCommand(getDisconnectCmd());
- myCanvas.setCommandListener(this);
- myCanvas.setFullScreenMode(true);//GEN-END:|54-getter|1|54-postInit
- // write post-init user code here
- }//GEN-BEGIN:|54-getter|2|
- return myCanvas;
- }
- //</editor-fold>//GEN-END:|54-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: settings ">//GEN-BEGIN:|56-getter|0|56-preInit
- /**
- * Returns an initiliazed instance of settings component.
- * @return the initialized component instance
- */
- public List getSettings() {
- if (settings == null) {//GEN-END:|56-getter|0|56-preInit
- // write pre-init user code here
- settings = new List(TextCz.SETTINGS, Choice.IMPLICIT);//GEN-BEGIN:|56-getter|1|56-postInit
- settings.append(TextCz.SET_KEYS, null);
- settings.append(TextCz.ADVANCED_SETTINGS, null);
- settings.addCommand(getSelectItemCmd2());
- settings.addCommand(getBackCommand2());
- settings.setCommandListener(this);
- settings.setSelectedFlags(new boolean[] { false, false });//GEN-END:|56-getter|1|56-postInit
- // write post-init user code here
- }//GEN-BEGIN:|56-getter|2|
- return settings;
- }
- //</editor-fold>//GEN-END:|56-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: settingsAction ">//GEN-BEGIN:|56-action|0|56-preAction
- /**
- * Performs an action assigned to the selected list element in the settings component.
- */
- public void settingsAction() {//GEN-END:|56-action|0|56-preAction
- // enter pre-action user code here
- String __selectedString = getSettings().getString(getSettings().getSelectedIndex());//GEN-BEGIN:|56-action|1|104-preAction
- if (__selectedString != null) {
- if (__selectedString.equals(TextCz.SET_KEYS)) {//GEN-END:|56-action|1|104-preAction
- // write pre-action user code here
- switchDisplayable(null, getKeySettings());//GEN-LINE:|56-action|2|104-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.ADVANCED_SETTINGS)) {//GEN-LINE:|56-action|3|105-preAction
- getRotateGroup().setSelectedIndex(0, midlet.isRotated());
- getRotateGroup().setSelectedIndex(1, !midlet.isRotated());
- getMouseSpeedGG().setValue(midlet.getMouseStep());
- getDelayTF().setString(""+midlet.getDelay());
- switchDisplayable(null, getAdvancedSettings());//GEN-LINE:|56-action|4|105-postAction
- // write post-action user code here
- }//GEN-BEGIN:|56-action|5|56-postAction
- }//GEN-END:|56-action|5|56-postAction
- // enter post-action user code here
- }//GEN-BEGIN:|56-action|6|
- //</editor-fold>//GEN-END:|56-action|6|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: insertTextTB ">//GEN-BEGIN:|74-getter|0|74-preInit
- /**
- * Returns an initiliazed instance of insertTextTB component.
- * @return the initialized component instance
- */
- public TextBox getInsertTextTB() {
- if (insertTextTB == null) {//GEN-END:|74-getter|0|74-preInit
- // write pre-init user code here
- insertTextTB = new TextBox(TextCz.INSERT_TEXT, null, 500, TextField.ANY);//GEN-BEGIN:|74-getter|1|74-postInit
- insertTextTB.addCommand(getInsertOkCommand());
- insertTextTB.addCommand(getCancelCommand());
- insertTextTB.setCommandListener(this);//GEN-END:|74-getter|1|74-postInit
- // write post-init user code here
- }//GEN-BEGIN:|74-getter|2|
- return insertTextTB;
- }
- //</editor-fold>//GEN-END:|74-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: insertTextCmd ">//GEN-BEGIN:|66-getter|0|66-preInit
- /**
- * Returns an initiliazed instance of insertTextCmd component.
- * @return the initialized component instance
- */
- public Command getInsertTextCmd() {
- if (insertTextCmd == null) {//GEN-END:|66-getter|0|66-preInit
- // write pre-init user code here
- insertTextCmd = new Command(TextCz.INSERT_TEXT, Command.SCREEN, 0);//GEN-LINE:|66-getter|1|66-postInit
- // write post-init user code here
- }//GEN-BEGIN:|66-getter|2|
- return insertTextCmd;
- }
- //</editor-fold>//GEN-END:|66-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: disconnectCmd ">//GEN-BEGIN:|68-getter|0|68-preInit
- /**
- * Returns an initiliazed instance of disconnectCmd component.
- * @return the initialized component instance
- */
- public Command getDisconnectCmd() {
- if (disconnectCmd == null) {//GEN-END:|68-getter|0|68-preInit
- // write pre-init user code here
- disconnectCmd = new Command(TextCz.DISCONNECT, Command.SCREEN, 0);//GEN-LINE:|68-getter|1|68-postInit
- // write post-init user code here
- }//GEN-BEGIN:|68-getter|2|
- return disconnectCmd;
- }
- //</editor-fold>//GEN-END:|68-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: settingsCmd1 ">//GEN-BEGIN:|70-getter|0|70-preInit
- /**
- * Returns an initiliazed instance of settingsCmd1 component.
- * @return the initialized component instance
- */
- public Command getSettingsCmd1() {
- if (settingsCmd1 == null) {//GEN-END:|70-getter|0|70-preInit
- // write pre-init user code here
- settingsCmd1 = new Command(TextCz.SETTINGS//GEN-BEGIN:|70-getter|1|70-postInit
- , Command.SCREEN, 0);//GEN-END:|70-getter|1|70-postInit
- // write post-init user code here
- }//GEN-BEGIN:|70-getter|2|
- return settingsCmd1;
- }
- //</editor-fold>//GEN-END:|70-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: insertOkCommand ">//GEN-BEGIN:|76-getter|0|76-preInit
- /**
- * Returns an initiliazed instance of insertOkCommand component.
- * @return the initialized component instance
- */
- public Command getInsertOkCommand() {
- if (insertOkCommand == null) {//GEN-END:|76-getter|0|76-preInit
- // write pre-init user code here
- insertOkCommand = new Command(TextCz.INSERT, Command.OK, 0);//GEN-LINE:|76-getter|1|76-postInit
- // write post-init user code here
- }//GEN-BEGIN:|76-getter|2|
- return insertOkCommand;
- }
- //</editor-fold>//GEN-END:|76-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: cancelCommand ">//GEN-BEGIN:|78-getter|0|78-preInit
- /**
- * Returns an initiliazed instance of cancelCommand component.
- * @return the initialized component instance
- */
- public Command getCancelCommand() {
- if (cancelCommand == null) {//GEN-END:|78-getter|0|78-preInit
- // write pre-init user code here
- cancelCommand = new Command(TextCz.CANCEL, Command.CANCEL, 0);//GEN-LINE:|78-getter|1|78-postInit
- // write post-init user code here
- }//GEN-BEGIN:|78-getter|2|
- return cancelCommand;
- }
- //</editor-fold>//GEN-END:|78-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btSearchCmd ">//GEN-BEGIN:|83-getter|0|83-preInit
- /**
- * Returns an initiliazed instance of btSearchCmd component.
- * @return the initialized component instance
- */
- public Command getBtSearchCmd() {
- if (btSearchCmd == null) {//GEN-END:|83-getter|0|83-preInit
- // write pre-init user code here
- btSearchCmd = new Command(TextCz.SEARCH, Command.SCREEN, 0);//GEN-LINE:|83-getter|1|83-postInit
- // write post-init user code here
- }//GEN-BEGIN:|83-getter|2|
- return btSearchCmd;
- }
- //</editor-fold>//GEN-END:|83-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: selectItemCmd ">//GEN-BEGIN:|85-getter|0|85-preInit
- /**
- * Returns an initiliazed instance of selectItemCmd component.
- * @return the initialized component instance
- */
- public Command getSelectItemCmd() {
- if (selectItemCmd == null) {//GEN-END:|85-getter|0|85-preInit
- // write pre-init user code here
- selectItemCmd = new Command(TextCz.SELECT, Command.ITEM, 0);//GEN-LINE:|85-getter|1|85-postInit
- // write post-init user code here
- }//GEN-BEGIN:|85-getter|2|
- return selectItemCmd;
- }
- //</editor-fold>//GEN-END:|85-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand2 ">//GEN-BEGIN:|94-getter|0|94-preInit
- /**
- * Returns an initiliazed instance of backCommand2 component.
- * @return the initialized component instance
- */
- public Command getBackCommand2() {
- if (backCommand2 == null) {//GEN-END:|94-getter|0|94-preInit
- // write pre-init user code here
- backCommand2 = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|94-getter|1|94-postInit
- // write post-init user code here
- }//GEN-BEGIN:|94-getter|2|
- return backCommand2;
- }
- //</editor-fold>//GEN-END:|94-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: isConnected ">//GEN-BEGIN:|98-if|0|98-preIf
- /**
- * Performs an action assigned to the isConnected if-point.
- */
- public void isConnected() {//GEN-END:|98-if|0|98-preIf
- // enter pre-if user code here
- if (midlet.isConnected()) {//GEN-LINE:|98-if|1|99-preAction
- // write pre-action user code here
- switchDisplayable(null, getMyCanvas());//GEN-LINE:|98-if|2|99-postAction
- // write post-action user code here
- } else {//GEN-LINE:|98-if|3|100-preAction
- // write pre-action user code here
- switchDisplayable(null, getMainMenu());//GEN-LINE:|98-if|4|100-postAction
- // write post-action user code here
- }//GEN-LINE:|98-if|5|98-postIf
- // enter post-if user code here
- }//GEN-BEGIN:|98-if|6|
- //</editor-fold>//GEN-END:|98-if|6|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: keySettings ">//GEN-BEGIN:|106-getter|0|106-preInit
- /**
- * Returns an initiliazed instance of keySettings component.
- * @return the initialized component instance
- */
- public List getKeySettings() {
- if (keySettings == null) {//GEN-END:|106-getter|0|106-preInit
- // write pre-init user code here
- keySettings = new List(TextCz.SET_KEYS, Choice.IMPLICIT);//GEN-BEGIN:|106-getter|1|106-postInit
- keySettings.append(TextCz.KEY_PAN_LEFT, null);
- keySettings.append(TextCz.KEY_PAN_RIGHT, null);
- keySettings.append(TextCz.KEY_PAN_UP, null);
- keySettings.append(TextCz.KEY_PAN_DOWN, null);
- keySettings.append(TextCz.KEY_ZOOM_IN, null);
- keySettings.append(TextCz.KEY_ZOOM_OUT, null);
- keySettings.append(TextCz.KEY_LMB, null);
- keySettings.append(TextCz.KEY_RMB, null);
- keySettings.addCommand(getItemCommand());
- keySettings.addCommand(getBackCommand5());
- keySettings.setCommandListener(this);
- keySettings.setSelectedFlags(new boolean[] { false, false, false, false, false, false, false, false });//GEN-END:|106-getter|1|106-postInit
- // write post-init user code here
- }//GEN-BEGIN:|106-getter|2|
- return keySettings;
- }
- //</editor-fold>//GEN-END:|106-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: keySettingsAction ">//GEN-BEGIN:|106-action|0|106-preAction
- /**
- * Performs an action assigned to the selected list element in the keySettings component.
- */
- public void keySettingsAction() {//GEN-END:|106-action|0|106-preAction
- getSetKeysCanvas().setKeyName(getKeySettings().getString(getKeySettings().getSelectedIndex()));
- switchDisplayable(null, getSetKeysCanvas());
- //tady ty další netbeansovský srandy nebudu potřebovat...
- String __selectedString = getKeySettings().getString(getKeySettings().getSelectedIndex());//GEN-BEGIN:|106-action|1|206-preAction
- if (__selectedString != null) {
- if (__selectedString.equals(TextCz.KEY_PAN_LEFT)) {//GEN-END:|106-action|1|206-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|2|206-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_PAN_RIGHT)) {//GEN-LINE:|106-action|3|207-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|4|207-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_PAN_UP)) {//GEN-LINE:|106-action|5|208-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|6|208-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_PAN_DOWN)) {//GEN-LINE:|106-action|7|209-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|8|209-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_ZOOM_IN)) {//GEN-LINE:|106-action|9|210-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|10|210-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_ZOOM_OUT)) {//GEN-LINE:|106-action|11|211-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|12|211-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_LMB)) {//GEN-LINE:|106-action|13|212-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|14|212-postAction
- // write post-action user code here
- } else if (__selectedString.equals(TextCz.KEY_RMB)) {//GEN-LINE:|106-action|15|213-preAction
- // write pre-action user code here
- //GEN-LINE:|106-action|16|213-postAction
- // write post-action user code here
- }//GEN-BEGIN:|106-action|17|106-postAction
- }//GEN-END:|106-action|17|106-postAction
- // enter post-action user code here
- }//GEN-BEGIN:|106-action|18|
- //</editor-fold>//GEN-END:|106-action|18|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: advancedSettings ">//GEN-BEGIN:|110-getter|0|110-preInit
- /**
- * Returns an initiliazed instance of advancedSettings component.
- * @return the initialized component instance
- */
- public Form getAdvancedSettings() {
- if (advancedSettings == null) {//GEN-END:|110-getter|0|110-preInit
- // write pre-init user code here
- advancedSettings = new Form(TextCz.ADVANCED_SETTINGS, new Item[] { getRotateGroup(), getMouseSpeedGG(), getDelayTF() });//GEN-BEGIN:|110-getter|1|110-postInit
- advancedSettings.addCommand(getSaveAdvSettings());
- advancedSettings.addCommand(getCancelCommand1());
- advancedSettings.setCommandListener(this);//GEN-END:|110-getter|1|110-postInit
- // write post-init user code here
- }//GEN-BEGIN:|110-getter|2|
- return advancedSettings;
- }
- //</editor-fold>//GEN-END:|110-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: saveAdvSettings ">//GEN-BEGIN:|112-getter|0|112-preInit
- /**
- * Returns an initiliazed instance of saveAdvSettings component.
- * @return the initialized component instance
- */
- public Command getSaveAdvSettings() {
- if (saveAdvSettings == null) {//GEN-END:|112-getter|0|112-preInit
- // write pre-init user code here
- saveAdvSettings = new Command(TextCz.SAVE, Command.OK, 0);//GEN-LINE:|112-getter|1|112-postInit
- // write post-init user code here
- }//GEN-BEGIN:|112-getter|2|
- return saveAdvSettings;
- }
- //</editor-fold>//GEN-END:|112-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: cancelCommand1 ">//GEN-BEGIN:|114-getter|0|114-preInit
- /**
- * Returns an initiliazed instance of cancelCommand1 component.
- * @return the initialized component instance
- */
- public Command getCancelCommand1() {
- if (cancelCommand1 == null) {//GEN-END:|114-getter|0|114-preInit
- // write pre-init user code here
- cancelCommand1 = new Command(TextCz.CANCEL, Command.CANCEL, 0);//GEN-LINE:|114-getter|1|114-postInit
- // write post-init user code here
- }//GEN-BEGIN:|114-getter|2|
- return cancelCommand1;
- }
- //</editor-fold>//GEN-END:|114-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: selectItemCmd2 ">//GEN-BEGIN:|121-getter|0|121-preInit
- /**
- * Returns an initiliazed instance of selectItemCmd2 component.
- * @return the initialized component instance
- */
- public Command getSelectItemCmd2() {
- if (selectItemCmd2 == null) {//GEN-END:|121-getter|0|121-preInit
- // write pre-init user code here
- selectItemCmd2 = new Command(TextCz.SELECT, Command.ITEM, 0);//GEN-LINE:|121-getter|1|121-postInit
- // write post-init user code here
- }//GEN-BEGIN:|121-getter|2|
- return selectItemCmd2;
- }
- //</editor-fold>//GEN-END:|121-getter|2|
- //</editor-fold>
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpConnectWait ">//GEN-BEGIN:|124-getter|0|124-preInit
- /**
- * Returns an initiliazed instance of tcpConnectWait component.
- * @return the initialized component instance
- */
- public WaitScreen getTcpConnectWait() {
- if (tcpConnectWait == null) {//GEN-END:|124-getter|0|124-preInit
- // write pre-init user code here
- tcpConnectWait = new WaitScreen(getDisplay());//GEN-BEGIN:|124-getter|1|124-postInit
- tcpConnectWait.setTitle(TextCz.CONNECTING);
- tcpConnectWait.setCommandListener(this);
- tcpConnectWait.setImage(getConnecting());
- tcpConnectWait.setText(TextCz.CONNECTING);
- tcpConnectWait.setTextFont(getFont());
- tcpConnectWait.setTask(midlet.getTcpConnectTask());//GEN-END:|124-getter|1|124-postInit
- // write post-init user code here
- }//GEN-BEGIN:|124-getter|2|
- return tcpConnectWait;
- }
- //</editor-fold>//GEN-END:|124-getter|2|
- //</editor-fold>
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpConnError ">//GEN-BEGIN:|137-getter|0|137-preInit
- /**
- * Returns an initiliazed instance of tcpConnError component.
- * @return the initialized component instance
- */
- public Alert getTcpConnError() {
- if (tcpConnError == null) {//GEN-END:|137-getter|0|137-preInit
- // write pre-init user code here
- tcpConnError = new Alert(TextCz.ERROR, TextCz.CONNECTION_ERROR, null, AlertType.ERROR);//GEN-BEGIN:|137-getter|1|137-postInit
- tcpConnError.setTimeout(Alert.FOREVER);//GEN-END:|137-getter|1|137-postInit
- // write post-init user code here
- }//GEN-BEGIN:|137-getter|2|
- return tcpConnError;
- }
- //</editor-fold>//GEN-END:|137-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: connecting ">//GEN-BEGIN:|138-getter|0|138-preInit
- /**
- * Returns an initiliazed instance of connecting component.
- * @return the initialized component instance
- */
- public Image getConnecting() {
- if (connecting == null) {//GEN-END:|138-getter|0|138-preInit
- // write pre-init user code here
- try {//GEN-BEGIN:|138-getter|1|138-@java.io.IOException
- connecting = Image.createImage("/connecting.png");
- } catch (java.io.IOException e) {//GEN-END:|138-getter|1|138-@java.io.IOException
- e.printStackTrace();
- }//GEN-LINE:|138-getter|2|138-postInit
- // write post-init user code here
- }//GEN-BEGIN:|138-getter|3|
- return connecting;
- }
- //</editor-fold>//GEN-END:|138-getter|3|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: font ">//GEN-BEGIN:|139-getter|0|139-preInit
- /**
- * Returns an initiliazed instance of font component.
- * @return the initialized component instance
- */
- public Font getFont() {
- if (font == null) {//GEN-END:|139-getter|0|139-preInit
- // write pre-init user code here
- font = Font.getFont(Font.FACE_SYSTEM, Font.STYLE_BOLD, Font.SIZE_LARGE);//GEN-LINE:|139-getter|1|139-postInit
- // write post-init user code here
- }//GEN-BEGIN:|139-getter|2|
- return font;
- }
- //</editor-fold>//GEN-END:|139-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpPwdTB ">//GEN-BEGIN:|140-getter|0|140-preInit
- /**
- * Returns an initiliazed instance of tcpPwdTB component.
- * @return the initialized component instance
- */
- public TextBox getTcpPwdTB() {
- if (tcpPwdTB == null) {//GEN-END:|140-getter|0|140-preInit
- // write pre-init user code here
- tcpPwdTB = new TextBox(TextCz.PASSWORD, null, 100, TextField.ANY | TextField.PASSWORD | TextField.NON_PREDICTIVE);//GEN-BEGIN:|140-getter|1|140-postInit
- tcpPwdTB.addCommand(getTcpSendPassCmd());
- tcpPwdTB.addCommand(getBackCommand3());
- tcpPwdTB.setCommandListener(this);//GEN-END:|140-getter|1|140-postInit
- // write post-init user code here
- }//GEN-BEGIN:|140-getter|2|
- return tcpPwdTB;
- }
- //</editor-fold>//GEN-END:|140-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpLoginWait ">//GEN-BEGIN:|143-getter|0|143-preInit
- /**
- * Returns an initiliazed instance of tcpLoginWait component.
- * @return the initialized component instance
- */
- public WaitScreen getTcpLoginWait() {
- if (tcpLoginWait == null) {//GEN-END:|143-getter|0|143-preInit
- // write pre-init user code here
- tcpLoginWait = new WaitScreen(getDisplay());//GEN-BEGIN:|143-getter|1|143-postInit
- tcpLoginWait.setTitle(TextCz.AUTHORIZING);
- tcpLoginWait.setCommandListener(this);
- tcpLoginWait.setFullScreenMode(true);
- tcpLoginWait.setImage(getKeyico());
- tcpLoginWait.setText(TextCz.AUTHORIZING);
- tcpLoginWait.setTextFont(getFont());
- tcpLoginWait.setTask(midlet.getLoginTask());//GEN-END:|143-getter|1|143-postInit
- // write post-init user code here
- }//GEN-BEGIN:|143-getter|2|
- return tcpLoginWait;
- }
- //</editor-fold>//GEN-END:|143-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpWrongPwd ">//GEN-BEGIN:|150-getter|0|150-preInit
- /**
- * Returns an initiliazed instance of tcpWrongPwd component.
- * @return the initialized component instance
- */
- public Alert getTcpWrongPwd() {
- if (tcpWrongPwd == null) {//GEN-END:|150-getter|0|150-preInit
- // write pre-init user code here
- tcpWrongPwd = new Alert(TextCz.ERROR, TextCz.WRONG_PASSWORD, null, AlertType.ERROR);//GEN-BEGIN:|150-getter|1|150-postInit
- tcpWrongPwd.setTimeout(Alert.FOREVER);//GEN-END:|150-getter|1|150-postInit
- // write post-init user code here
- }//GEN-BEGIN:|150-getter|2|
- return tcpWrongPwd;
- }
- //</editor-fold>//GEN-END:|150-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: tcpSendPassCmd ">//GEN-BEGIN:|141-getter|0|141-preInit
- /**
- * Returns an initiliazed instance of tcpSendPassCmd component.
- * @return the initialized component instance
- */
- public Command getTcpSendPassCmd() {
- if (tcpSendPassCmd == null) {//GEN-END:|141-getter|0|141-preInit
- // write pre-init user code here
- tcpSendPassCmd = new Command(TextCz.CONNECT, Command.SCREEN, 0);//GEN-LINE:|141-getter|1|141-postInit
- // write post-init user code here
- }//GEN-BEGIN:|141-getter|2|
- return tcpSendPassCmd;
- }
- //</editor-fold>//GEN-END:|141-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand3 ">//GEN-BEGIN:|154-getter|0|154-preInit
- /**
- * Returns an initiliazed instance of backCommand3 component.
- * @return the initialized component instance
- */
- public Command getBackCommand3() {
- if (backCommand3 == null) {//GEN-END:|154-getter|0|154-preInit
- // write pre-init user code here
- backCommand3 = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|154-getter|1|154-postInit
- // write post-init user code here
- }//GEN-BEGIN:|154-getter|2|
- return backCommand3;
- }
- //</editor-fold>//GEN-END:|154-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: serverAddrTF ">//GEN-BEGIN:|157-getter|0|157-preInit
- /**
- * Returns an initiliazed instance of serverAddrTF component.
- * @return the initialized component instance
- */
- public TextField getServerAddrTF() {
- if (serverAddrTF == null) {//GEN-END:|157-getter|0|157-preInit
- // write pre-init user code here
- serverAddrTF = new TextField(TextCz.SERVER_ADDR, "192.168.34.4", 32, TextField.ANY | TextField.NON_PREDICTIVE);//GEN-LINE:|157-getter|1|157-postInit
- // write post-init user code here
- }//GEN-BEGIN:|157-getter|2|
- return serverAddrTF;
- }
- //</editor-fold>//GEN-END:|157-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: serverPortTF ">//GEN-BEGIN:|158-getter|0|158-preInit
- /**
- * Returns an initiliazed instance of serverPortTF component.
- * @return the initialized component instance
- */
- public TextField getServerPortTF() {
- if (serverPortTF == null) {//GEN-END:|158-getter|0|158-preInit
- // write pre-init user code here
- serverPortTF = new TextField(TextCz.SERVER_PORT, "5555", 32, TextField.NUMERIC);//GEN-LINE:|158-getter|1|158-postInit
- // write post-init user code here
- }//GEN-BEGIN:|158-getter|2|
- return serverPortTF;
- }
- //</editor-fold>//GEN-END:|158-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Method: connectionLost ">//GEN-BEGIN:|161-entry|0|162-preAction
- /**
- * Performs an action assigned to the connectionLost entry-point.
- */
- public void connectionLost() {//GEN-END:|161-entry|0|162-preAction
- // write pre-action user code here
- switchDisplayable(null, getConnectionLostAlert());//GEN-LINE:|161-entry|1|162-postAction
- // write post-action user code here
- }//GEN-BEGIN:|161-entry|2|
- //</editor-fold>//GEN-END:|161-entry|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: connectionLostAlert ">//GEN-BEGIN:|160-getter|0|160-preInit
- /**
- * Returns an initiliazed instance of connectionLostAlert component.
- * @return the initialized component instance
- */
- public Alert getConnectionLostAlert() {
- if (connectionLostAlert == null) {//GEN-END:|160-getter|0|160-preInit
- // write pre-init user code here
- connectionLostAlert = new Alert(TextCz.ERROR, TextCz.CONNECTION_ERROR, null, AlertType.ERROR);//GEN-BEGIN:|160-getter|1|160-postInit
- connectionLostAlert.addCommand(getOkCommand());
- connectionLostAlert.setCommandListener(this);
- connectionLostAlert.setTimeout(Alert.FOREVER);//GEN-END:|160-getter|1|160-postInit
- // write post-init user code here
- }//GEN-BEGIN:|160-getter|2|
- return connectionLostAlert;
- }
- //</editor-fold>//GEN-END:|160-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: okCommand ">//GEN-BEGIN:|164-getter|0|164-preInit
- /**
- * Returns an initiliazed instance of okCommand component.
- * @return the initialized component instance
- */
- public Command getOkCommand() {
- if (okCommand == null) {//GEN-END:|164-getter|0|164-preInit
- // write pre-init user code here
- okCommand = new Command("Ok", Command.OK, 0);//GEN-LINE:|164-getter|1|164-postInit
- // write post-init user code here
- }//GEN-BEGIN:|164-getter|2|
- return okCommand;
- }
- //</editor-fold>//GEN-END:|164-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btSearchWait ">//GEN-BEGIN:|169-getter|0|169-preInit
- /**
- * Returns an initiliazed instance of btSearchWait component.
- * @return the initialized component instance
- */
- public WaitScreen getBtSearchWait() {
- if (btSearchWait == null) {//GEN-END:|169-getter|0|169-preInit
- // write pre-init user code here
- btSearchWait = new WaitScreen(getDisplay());//GEN-BEGIN:|169-getter|1|169-postInit
- btSearchWait.setTitle(TextCz.BLUETOOTH);
- btSearchWait.setCommandListener(this);
- btSearchWait.setImage(getBtico());
- btSearchWait.setText(TextCz.SEARCHING_DEVICES);
- btSearchWait.setTextFont(getFont());
- btSearchWait.setTask(midlet.getBtSearchTask());//GEN-END:|169-getter|1|169-postInit
- // write post-init user code here
- }//GEN-BEGIN:|169-getter|2|
- return btSearchWait;
- }
- //</editor-fold>//GEN-END:|169-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btErrorAlert ">//GEN-BEGIN:|175-getter|0|175-preInit
- /**
- * Returns an initiliazed instance of btErrorAlert component.
- * @return the initialized component instance
- */
- public Alert getBtErrorAlert() {
- if (btErrorAlert == null) {//GEN-END:|175-getter|0|175-preInit
- // write pre-init user code here
- btErrorAlert = new Alert(TextCz.ERROR, TextCz.BT_ERROR, null, AlertType.ERROR);//GEN-BEGIN:|175-getter|1|175-postInit
- btErrorAlert.setTimeout(Alert.FOREVER);//GEN-END:|175-getter|1|175-postInit
- // write post-init user code here
- }//GEN-BEGIN:|175-getter|2|
- return btErrorAlert;
- }
- //</editor-fold>//GEN-END:|175-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btico ">//GEN-BEGIN:|178-getter|0|178-preInit
- /**
- * Returns an initiliazed instance of btico component.
- * @return the initialized component instance
- */
- public Image getBtico() {
- if (btico == null) {//GEN-END:|178-getter|0|178-preInit
- // write pre-init user code here
- try {//GEN-BEGIN:|178-getter|1|178-@java.io.IOException
- btico = Image.createImage("/bt.png");
- } catch (java.io.IOException e) {//GEN-END:|178-getter|1|178-@java.io.IOException
- e.printStackTrace();
- }//GEN-LINE:|178-getter|2|178-postInit
- // write post-init user code here
- }//GEN-BEGIN:|178-getter|3|
- return btico;
- }
- //</editor-fold>//GEN-END:|178-getter|3|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btLoginWait ">//GEN-BEGIN:|182-getter|0|182-preInit
- /**
- * Returns an initiliazed instance of btLoginWait component.
- * @return the initialized component instance
- */
- public WaitScreen getBtLoginWait() {
- if (btLoginWait == null) {//GEN-END:|182-getter|0|182-preInit
- // write pre-init user code here
- btLoginWait = new WaitScreen(getDisplay());//GEN-BEGIN:|182-getter|1|182-postInit
- btLoginWait.setTitle("waitScreen");
- btLoginWait.setCommandListener(this);
- btLoginWait.setFullScreenMode(true);
- btLoginWait.setImage(getKeyico());
- btLoginWait.setText(TextCz.AUTHORIZING);
- btLoginWait.setTextFont(getFont());
- btLoginWait.setTask(midlet.getLoginTask());//GEN-END:|182-getter|1|182-postInit
- // write post-init user code here
- }//GEN-BEGIN:|182-getter|2|
- return btLoginWait;
- }
- //</editor-fold>//GEN-END:|182-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: keyico ">//GEN-BEGIN:|189-getter|0|189-preInit
- /**
- * Returns an initiliazed instance of keyico component.
- * @return the initialized component instance
- */
- public Image getKeyico() {
- if (keyico == null) {//GEN-END:|189-getter|0|189-preInit
- // write pre-init user code here
- try {//GEN-BEGIN:|189-getter|1|189-@java.io.IOException
- keyico = Image.createImage("/dialog-password.png");
- } catch (java.io.IOException e) {//GEN-END:|189-getter|1|189-@java.io.IOException
- e.printStackTrace();
- }//GEN-LINE:|189-getter|2|189-postInit
- // write post-init user code here
- }//GEN-BEGIN:|189-getter|3|
- return keyico;
- }
- //</editor-fold>//GEN-END:|189-getter|3|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand4 ">//GEN-BEGIN:|190-getter|0|190-preInit
- /**
- * Returns an initiliazed instance of backCommand4 component.
- * @return the initialized component instance
- */
- public Command getBackCommand4() {
- if (backCommand4 == null) {//GEN-END:|190-getter|0|190-preInit
- // write pre-init user code here
- backCommand4 = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|190-getter|1|190-postInit
- // write post-init user code here
- }//GEN-BEGIN:|190-getter|2|
- return backCommand4;
- }
- //</editor-fold>//GEN-END:|190-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btWrongPwd ">//GEN-BEGIN:|193-getter|0|193-preInit
- /**
- * Returns an initiliazed instance of btWrongPwd component.
- * @return the initialized component instance
- */
- public Alert getBtWrongPwd() {
- if (btWrongPwd == null) {//GEN-END:|193-getter|0|193-preInit
- // write pre-init user code here
- btWrongPwd = new Alert(TextCz.ERROR, TextCz.WRONG_PASSWORD, null, AlertType.ERROR);//GEN-BEGIN:|193-getter|1|193-postInit
- btWrongPwd.setTimeout(Alert.FOREVER);//GEN-END:|193-getter|1|193-postInit
- // write post-init user code here
- }//GEN-BEGIN:|193-getter|2|
- return btWrongPwd;
- }
- //</editor-fold>//GEN-END:|193-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: btConnectWait ">//GEN-BEGIN:|198-getter|0|198-preInit
- /**
- * Returns an initiliazed instance of btConnectWait component.
- * @return the initialized component instance
- */
- public WaitScreen getBtConnectWait() {
- if (btConnectWait == null) {//GEN-END:|198-getter|0|198-preInit
- // write pre-init user code here
- btConnectWait = new WaitScreen(getDisplay());//GEN-BEGIN:|198-getter|1|198-postInit
- btConnectWait.setTitle(TextCz.BLUETOOTH);
- btConnectWait.setCommandListener(this);
- btConnectWait.setImage(getBtico());
- btConnectWait.setText(TextCz.CONNECTING);
- btConnectWait.setTextFont(getFont());
- btConnectWait.setTask(midlet.getBtConnectTask());//GEN-END:|198-getter|1|198-postInit
- // write post-init user code here
- }//GEN-BEGIN:|198-getter|2|
- return btConnectWait;
- }
- //</editor-fold>//GEN-END:|198-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: backCommand5 ">//GEN-BEGIN:|217-getter|0|217-preInit
- /**
- * Returns an initiliazed instance of backCommand5 component.
- * @return the initialized component instance
- */
- public Command getBackCommand5() {
- if (backCommand5 == null) {//GEN-END:|217-getter|0|217-preInit
- // write pre-init user code here
- backCommand5 = new Command(TextCz.BACK, Command.BACK, 0);//GEN-LINE:|217-getter|1|217-postInit
- // write post-init user code here
- }//GEN-BEGIN:|217-getter|2|
- return backCommand5;
- }
- //</editor-fold>//GEN-END:|217-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: itemCommand ">//GEN-BEGIN:|220-getter|0|220-preInit
- /**
- * Returns an initiliazed instance of itemCommand component.
- * @return the initialized component instance
- */
- public Command getItemCommand() {
- if (itemCommand == null) {//GEN-END:|220-getter|0|220-preInit
- // write pre-init user code here
- itemCommand = new Command(TextCz.SELECT, Command.ITEM, 0);//GEN-LINE:|220-getter|1|220-postInit
- // write post-init user code here
- }//GEN-BEGIN:|220-getter|2|
- return itemCommand;
- }
- //</editor-fold>//GEN-END:|220-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: setKeysCanvas ">//GEN-BEGIN:|232-getter|0|232-preInit
- /**
- * Returns an initiliazed instance of setKeysCanvas component.
- * @return the initialized component instance
- */
- public SetKeysCanvas getSetKeysCanvas() {
- if (setKeysCanvas == null) {//GEN-END:|232-getter|0|232-preInit
- // write pre-init user code here
- setKeysCanvas = new SetKeysCanvas(midlet.getControls());//GEN-BEGIN:|232-getter|1|232-postInit
- setKeysCanvas.setTitle(TextCz.SET_KEYS);
- setKeysCanvas.addCommand(getSaveCmd());
- setKeysCanvas.addCommand(getCancelCommand2());
- setKeysCanvas.setCommandListener(this);//GEN-END:|232-getter|1|232-postInit
- // write post-init user code here
- }//GEN-BEGIN:|232-getter|2|
- return setKeysCanvas;
- }
- //</editor-fold>//GEN-END:|232-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: saveCmd ">//GEN-BEGIN:|233-getter|0|233-preInit
- /**
- * Returns an initiliazed instance of saveCmd component.
- * @return the initialized component instance
- */
- public Command getSaveCmd() {
- if (saveCmd == null) {//GEN-END:|233-getter|0|233-preInit
- // write pre-init user code here
- saveCmd = new Command(TextCz.SAVE, Command.OK, 0);//GEN-LINE:|233-getter|1|233-postInit
- // write post-init user code here
- }//GEN-BEGIN:|233-getter|2|
- return saveCmd;
- }
- //</editor-fold>//GEN-END:|233-getter|2|
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: cancelCommand2 ">//GEN-BEGIN:|235-getter|0|235-preInit
- /**
- * Returns an initiliazed instance of cancelCommand2 component.
- * @return the initialized component instance
- */
- public Command getCancelCommand2() {
- if (cancelCommand2 == null) {//GEN-END:|235-getter|0|235-preInit
- // write pre-init user code here
- cancelCommand2 = new Command(TextCz.CANCEL, Command.CANCEL, 0);//GEN-LINE:|235-getter|1|235-postInit
- // write post-init user code here
- }//GEN-BEGIN:|235-getter|2|
- return cancelCommand2;
- }
- //</editor-fold>//GEN-END:|235-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: rotateGroup ">//GEN-BEGIN:|239-getter|0|239-preInit
- /**
- * Returns an initiliazed instance of rotateGroup component.
- * @return the initialized component instance
- */
- public ChoiceGroup getRotateGroup() {
- if (rotateGroup == null) {//GEN-END:|239-getter|0|239-preInit
- // write pre-init user code here
- rotateGroup = new ChoiceGroup(TextCz.SCREEN_ROTATE, Choice.EXCLUSIVE);//GEN-BEGIN:|239-getter|1|239-postInit
- rotateGroup.append(TextCz.YES, null);
- rotateGroup.append(TextCz.NO, null);
- rotateGroup.setFitPolicy(Choice.TEXT_WRAP_DEFAULT);
- rotateGroup.setSelectedFlags(new boolean[] { true, false });//GEN-END:|239-getter|1|239-postInit
- // write post-init user code here
- }//GEN-BEGIN:|239-getter|2|
- return rotateGroup;
- }
- //</editor-fold>//GEN-END:|239-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: mouseSpeedGG ">//GEN-BEGIN:|242-getter|0|242-preInit
- /**
- * Returns an initiliazed instance of mouseSpeedGG component.
- * @return the initialized component instance
- */
- public Gauge getMouseSpeedGG() {
- if (mouseSpeedGG == null) {//GEN-END:|242-getter|0|242-preInit
- // write pre-init user code here
- mouseSpeedGG = new Gauge(TextCz.MOUSE_SPEED, true, 10, midlet.getMouseStep());//GEN-BEGIN:|242-getter|1|242-postInit
- mouseSpeedGG.setPreferredSize(-1, -1);//GEN-END:|242-getter|1|242-postInit
- // write post-init user code here
- }//GEN-BEGIN:|242-getter|2|
- return mouseSpeedGG;
- }
- //</editor-fold>//GEN-END:|242-getter|2|
- //</editor-fold>
- //<editor-fold defaultstate="collapsed" desc=" Generated Getter: delayTF ">//GEN-BEGIN:|244-getter|0|244-preInit
- /**
- * Returns an initiliazed instance of delayTF component.
- * @return the initialized component instance
- */
- public TextField getDelayTF() {
- if (delayTF == null) {//GEN-END:|244-getter|0|244-preInit
- // write pre-init user code here
- delayTF = new TextField(TextCz.DELAY_MS, "0", 5, TextField.NUMERIC);//GEN-LINE:|244-getter|1|244-postInit
- // write post-init user code here
- }//GEN-BEGIN:|244-getter|2|
- return delayTF;
- }
- //</editor-fold>//GEN-END:|244-getter|2|
- /**
- * Returns a display instance.
- * @return the display instance.
- */
- public Display getDisplay() {
- return Display.getDisplay(midlet);
- }
- /**
- * Exits MIDlet.
- * Note you have to implement proper MIDlet destroying.
- */
- public void exitMIDlet() {
- switchDisplayable(null, null);
- // midlet.destroyApp(true);
- midlet.notifyDestroyed();
- }
- //moje metody (negenerované)
- void showBtConnectBtn(boolean show) {
- getBtSearchList().removeCommand(getBtConnectCmd1());
- if (show) {
- getBtSearchList().addCommand(getBtConnectCmd1());
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement