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
}
});
精彩评论