Reputation: 987
I am trying an app that has BitmapField and ButtonField too. When I click the BitmapField the field change event raise the BitmapField change and also ButtonField change event which is clicked before BitmapField in BlackBerrry 4.6.
Upvotes: 0
Views: 898
Reputation: 1029
You should start with the RIM 4.6 API documentation. Both ButtonField and BitmapField extend the Field class. That means that you can override methods from that class. The methods that might interest you are fieldChangeNotify and navigationClick.
ButtonField button = new ButtonField("Button1") {
protected boolean navigationClick(int status, int time) {
//code to handle click
}
protected void fieldChangeNotify(int context) {
//code to handle field change(focus/unfocus/etc.)
}
};
Upvotes: 1