黑莓中drawFocus、paint()和paintBackground()方法之间的关系
我想知道黑莓开发中drawFocus()、paint()和paintBackground()方法之间的关系是什么。具体的方法什么时候被调用以及执行的顺序是怎样的。我试图了解自己,但无法从中得到太多信息。
I want to know what is the relation between drawFocus(), paint() and paintBackground() method in BlackBerry development. When any specific method is called and what is the order of execution. I tried to understand myself but could not get glean much from it.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
要找出方法执行的顺序以及执行它们的原因,最好的方法是创建一个自定义对象(例如,从您感兴趣的字段派生的字段)并覆盖自定义对象中的这些方法。
然后在这些方法上设置断点并进行调试。
The best why to find out which order methods are executed in, and what causes them to be executed, is to create a custom object (e.g. a field derived from the field you are interested in) and override those methods in your custom object.
Then set breakpoints on those methods, and debug.