MIDP2.0中Alert的新特性[4]

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

本文简介:

        _alertList = new List("Alert Testing", List.IMPLICIT);
        _alertList.setCommandListener(this);

        for (int i = 0; i < _alertRunners.length; ++i)
        {
            _alertList.append(_alertRunners[i].toString(), null);
        }

        showList();
    }

    protected void pauseApp()
    {
    }

    private void showAlert(Alert a)
    {
        getDisplay().setCurrent(a, _alertList);
    }

    private void showList()
    {
        getDisplay().setCurrent(_alertList);
    }

    protected void startApp() throws MIDletStateChangeException
    {
        if (display == null)
        {
            display = Display.getDisplay(this);
            initMIDlet();
        }
    }

    private List _alertList;
    private AlertRunner[] _alertRunners;
}

本文关键:MIDP2.0中Alert的新特性
  相关方案
Google
 

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

go top