⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 visualmidlet.java

📁 这是一个手机股票系统开发的部分程序
💻 JAVA
📖 第 1 页 / 共 3 页
字号:
                        // Insert pre-action code here
                        // Do nothing
                        // Insert post-action code here
                        break;
                    case 3:
                        // Insert pre-action code here
                        // Do nothing
                        // Insert post-action code here
                        break;
                }
            } else if (command == okCommand5) {
                // Insert pre-action code here
                // Do nothing
                // Insert post-action code here
            } else if (command == backCommand4) {
                // Insert pre-action code here
                getDisplay().setCurrent(get_ChooseDemo());
                // Insert post-action code here
            }
        } else if (displayable == form1) {
            if (command == okCommand6) {
                // Insert pre-action code here
                // Do nothing
                // Insert post-action code here
            } else if (command == backCommand5) {
                // Insert pre-action code here
                getDisplay().setCurrent(get_ChooseDemo());
                // Insert post-action code here
            }
        } else if (displayable == GuPiaoXiangQing) {
            if (command == GuPiaoXiangQing.SELECT_COMMAND) {
                switch (get_GuPiaoXiangQing().getSelectedIndex()) {
                    case 0:
                        // Insert pre-action code here
                        // Do nothing
                        // Insert post-action code here
                        break;
                }
            } else if (command == backCommand6) {
                // Insert pre-action code here
                getDisplay().setCurrent(get_Damao());
                // Insert post-action code here
            } else if (command == okCommand7) {
                // Insert pre-action code here
                getDisplay().setCurrent(get_TuXing());
                // Insert post-action code here
            }
        } else if (displayable == TuXing) {
            if (command == TuXing.SELECT_COMMAND) {
                switch (get_TuXing().getSelectedIndex()) {
                    case 0:
                        // Insert pre-action code here
                        // Do nothing
                        // Insert post-action code here
                        break;
                    case 1:
                        // Insert pre-action code here
                        // Do nothing
                        // Insert post-action code here
                        break;
                }
            } else if (command == backCommand7) {
                // Insert pre-action code here
                getDisplay().setCurrent(get_Damao());
                // Insert post-action code here
            }
        }
    // Insert global post-action code here
}

    /** This method initializes UI of the application.
     */
    private void initialize() {
        // Insert pre-init code here
        getDisplay().setCurrent(get_ChooseDemo());
        // Insert post-init code here
    }
    
    /**
     * This method should return an instance of the display.
     */
    public Display getDisplay() {                         
        return Display.getDisplay(this);
    }                        
    
    /**
     * This method should exit the midlet.
     */
    public void exitMIDlet() {                         
        getDisplay().setCurrent(null);
        destroyApp(true);
        notifyDestroyed();
    }                        

    /** This method returns instance for ChooseDemo component and should be called instead of accessing ChooseDemo field directly.
     * @return Instance for ChooseDemo component
     */
    public List get_ChooseDemo() {
        if (ChooseDemo == null) {
            // Insert pre-init code here
            ChooseDemo = new List(null, Choice.IMPLICIT, new String[] {
                "1.\u81EA\u9009\u80A1\u7968",
                "2.\u5927\u76D8\u8D70\u52BF",
                "3.\u4E2A\u80A1\u884C\u60C5",
                "4.\u7EFC\u5408\u6392\u540D",
                "5.\u8F6F\u4EF6\u8D44\u8BAF",
                "6.\u7CFB\u7EDF\u5E2E\u52A9 ",
                "7.\u9000\u51FA\u7CFB\u7EDF"
            }, new Image[] {
                null,
                null,
                null,
                null,
                null,
                null,
                null
            });
            ChooseDemo.addCommand(get_exitCommand1());
            ChooseDemo.setCommandListener(this);
            ChooseDemo.setTicker(get_ticker2());
            ChooseDemo.setSelectedFlags(new boolean[] {
                false,
                false,
                false,
                false,
                false,
                false,
                false
            });
            // Insert post-init code here
        }
        return ChooseDemo;
    }

    /** This method returns instance for ticker1 component and should be called instead of accessing ticker1 field directly.
     * @return Instance for ticker1 component
     */
    public Ticker get_ticker1() {
        if (ticker1 == null) {
            // Insert pre-init code here
            ticker1 = new Ticker("<\u8F93\u5165\u6EDA\u52A8\u6D88\u606F\u6587\u672C>");
            // Insert post-init code here
        }
        return ticker1;
    }

    /** This method returns instance for ticker2 component and should be called instead of accessing ticker2 field directly.
     * @return Instance for ticker2 component
     */
    public Ticker get_ticker2() {
        if (ticker2 == null) {
            // Insert pre-init code here
            ticker2 = new Ticker("N-POWER\u5DE5\u4F5C\u5BA4  \u7248\u6743\u6240\u6709(c) 2007\u5E74");
            // Insert post-init code here
        }
        return ticker2;
    }

    /** This method returns instance for Damao component and should be called instead of accessing Damao field directly.
     * @return Instance for Damao component
     */
    public TextBox get_Damao() {
        if (Damao == null) {
            // Insert pre-init code here
            Damao = new TextBox(null, "", 120, TextField.ANY);
            Damao.addCommand(get_backCommand1());
            Damao.addCommand(get_okCommand1());
            Damao.setCommandListener(this);
            Damao.setTicker(get_ticker3());
            // Insert post-init code here
        }
        return Damao;
    }

    /** This method returns instance for ticker3 component and should be called instead of accessing ticker3 field directly.
     * @return Instance for ticker3 component
     */
    public Ticker get_ticker3() {
        if (ticker3 == null) {
            // Insert pre-init code here
            ticker3 = new Ticker("\u8BF7\u8F93\u5165\u6240\u67E5\u8BE2\u7684\u80A1\u7968\u4EE3\u7801\uFF1A");
            // Insert post-init code here
        }
        return ticker3;
    }

    /** This method returns instance for exitCommand1 component and should be called instead of accessing exitCommand1 field directly.
     * @return Instance for exitCommand1 component
     */
    public Command get_exitCommand1() {
        if (exitCommand1 == null) {
            // Insert pre-init code here
            exitCommand1 = new Command("\u9000\u51FA", Command.EXIT, 1);
            // Insert post-init code here
        }
        return exitCommand1;
    }

    /** This method returns instance for DaPan component and should be called instead of accessing DaPan field directly.
     * @return Instance for DaPan component
     */
    public List get_DaPan() {
        if (DaPan == null) {
            // Insert pre-init code here
            DaPan = new List(null, Choice.IMPLICIT, new String[] {
                "1.\u4E0A\u8BC1\u7EFC\u6307",
                "2.\u6DF1\u8BC1\u6210\u6307",
                "3.\u6CAA\u6DF1300",
                "4.\u4E0A\u8BC180"
            }, new Image[] {
                null,
                null,
                null,
                null
            });
            DaPan.addCommand(get_backCommand2());
            DaPan.addCommand(get_okCommand2());
            DaPan.setCommandListener(this);
            DaPan.setTicker(get_ticker4());
            DaPan.setSelectedFlags(new boolean[] {
                false,
                false,
                false,
                false
            });
            // Insert post-init code here
        }
        return DaPan;
    }

    /** This method returns instance for ticker4 component and should be called instead of accessing ticker4 field directly.
     * @return Instance for ticker4 component
     */
    public Ticker get_ticker4() {
        if (ticker4 == null) {
            // Insert pre-init code here
            ticker4 = new Ticker("\u5927\u76D8\u8D70\u52BF");
            // Insert post-init code here
        }
        return ticker4;
    }

    /** This method returns instance for ZongHe component and should be called instead of accessing ZongHe field directly.
     * @return Instance for ZongHe component
     */
    public List get_ZongHe() {
        if (ZongHe == null) {
            // Insert pre-init code here
            ZongHe = new List(null, Choice.IMPLICIT, new String[] {
                "1.\u6CAA\u6DF1A\u80A1",
                "2.\u4E0A\u8BC1A\u80A1",
                "3.\u4E0A\u8BC1B\u80A1",
                "4.\u6DF1\u8BC1A\u80A1",
                "5.\u6DF1\u8BC1B\u80A1",
                "6.\u4E2D\u5C0F\u4F01\u4E1A",
                "7.\u4E0A\u8BC1\u57FA\u91D1",
                "8.\u6DF1\u8BC1\u57FA\u91D1"
            }, new Image[] {
                null,
                null,
                null,
                null,
                null,
                null,
                null,
                null
            });
            ZongHe.addCommand(get_backCommand3());
            ZongHe.addCommand(get_okCommand4());
            ZongHe.setCommandListener(this);
            ZongHe.setTicker(get_ticker5());
            ZongHe.setSelectedFlags(new boolean[] {
                false,
                false,
                false,
                false,
                false,
                false,
                false,
                false
            });
            // Insert post-init code here
        }
        return ZongHe;
    }

    /** This method returns instance for ticker5 component and should be called instead of accessing ticker5 field directly.
     * @return Instance for ticker5 component
     */
    public Ticker get_ticker5() {
        if (ticker5 == null) {
            // Insert pre-init code here
            ticker5 = new Ticker("\u6392\u884C\u5E02\u573A");
            // Insert post-init code here
        }
        return ticker5;
    }

    /** This method returns instance for backCommand1 component and should be called instead of accessing backCommand1 field directly.
     * @return Instance for backCommand1 component
     */
    public Command get_backCommand1() {
        if (backCommand1 == null) {
            // Insert pre-init code here
            backCommand1 = new Command("\u540E\u9000", Command.BACK, 1);
            // Insert post-init code here
        }
        return backCommand1;
    }

    /** This method returns instance for backCommand2 component and should be called instead of accessing backCommand2 field directly.
     * @return Instance for backCommand2 component
     */
    public Command get_backCommand2() {
        if (backCommand2 == null) {
            // Insert pre-init code here
            backCommand2 = new Command("\u540E\u9000", Command.BACK, 1);
            // Insert post-init code here
        }
        return backCommand2;
    }

    /** This method returns instance for backCommand12 component and should be called instead of accessing backCommand12 field directly.
     * @return Instance for backCommand12 component
     */
    public Command get_backCommand12() {
        if (backCommand12 == null) {
            // Insert pre-init code here
            backCommand12 = new Command("\u540E\u9000", Command.BACK, 1);
            // Insert post-init code here
        }
        return backCommand12;
    }

    /** This method returns instance for okCommand1 component and should be called instead of accessing okCommand1 field directly.
     * @return Instance for okCommand1 component
     */
    public Command get_okCommand1() {
        if (okCommand1 == null) {
            // Insert pre-init code here
            okCommand1 = new Command("\u547D\u4EE4", Command.OK, 1);
            // Insert post-init code here
        }
        return okCommand1;
    }

    /** This method returns instance for okCommand2 component and should be called instead of accessing okCommand2 field directly.
     * @return Instance for okCommand2 component

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -