开发者

CheckboxField checked in Blackberry

开发者 https://www.devze.com 2023-03-17 12:29 出处:网络
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.

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

精彩评论

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