论坛首页 移动开发技术论坛

获取ChoiceGroup多选状态下的值

浏览 2428 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2007-08-31  
http://javaeye.5d6d.com/thread-233-1-1.html

怎么样获取ChoiceGroup多选状态下的值呢?
连我这个做了几个小项目的程序员,今天都不知道怎么办了。
看了api文档不是很清晰,还是动手实践下吧。

看代码就知道了
boolean[] flags = new boolean[this.images.size()];


for(int i=0; i < flags.length; i++){
if(flags)
this.images.getString(i); //这里得的选中的值,感觉操作麻烦。
}

posted on 2007-08-30 19:35 3G视线 阅读(168) 评论(2)  编辑 收藏 引用 所属分类: j2me
论坛首页 移动开发技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics