J2ME中文教程 3 MIDP高级UI 的使用[17]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

                alert.setString(

                        typeStrings[typeIndex] + " Alert, Running " + timeoutStrings[timeoutIndex]);

 

                boolean[] SelectedFlags = new boolean[1];

                indicatorCG.getSelectedFlags(SelectedFlags);

 

                if (SelectedFlags[0]) {

 

                    Gauge indicator = createIndicator(timeouts[timeoutIndex]);

                    alert.setIndicator(indicator);

                }

 

                display.setCurrent(alert);

            } else if (c == CMD_EXIT) {

                destroyApp(false);

                notifyDestroyed();

            }

        }

    }

 

    protected void destroyApp(boolean unconditional) {

    }

 

    protected void pauseApp() {

    }

 

    /**

     * 我们在这里生成Alertindicator.

本文关键:J2ME中文教程 3 MIDP高级UI 的使用
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top