开发者

CheckboxField checked in Blackberry

How will i be able to recognise a check on the Checkboxfield. Like if a user c开发者_运维百科hecks on a check box, a notification is generated.

BR, Suppi


CheckBoxField class inherited from Field class, which means you should be able to create an action listener.

Use setActionListener method and override the fieldChanged method to do whatever you want.

checkBox.setChangeListener(new FieldChangeListener() {
    public void fieldChanged(...params ... ) {
        //your code
    }
});
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜