开发者

Is there focus and lost-focus event on black berry sdk?

I am very new developer for black berry environment. Is there a focus and lost-focus event for the contr开发者_运维百科ols which are currently selected or deselected?

Please give me some like or example.

Thank you.


If you are writing your own custom field, or want to catch the events of your Screen class(es), then you would override the virtual Field.onFocus() and Field.onUnfocus() methods.

If you want to catch focus events of other fields, then you have to implement the FocusChangeListener interface and then call the Field.setFocusChangeListener() method of those fields.


Yes, these are Field.onFocus(int direction) and Field.onUnfocus(). Check the API for details.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜