I need to know when to use a super.paint() and subpaint() method in Blackberry for Manager class.
I need to know when to use a super.paint() and subpaint() method in Blackberry
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use subPaint when you are
Implementing your own layout manager. subpaint() should iterate through all the controlled fields, instructing them to paint themselves. You can optimize subpaint by using details of the layout to determine which fields are in the current visible region. To paint a controlled field, invoke paintchild. else you can usesuper.paint().see the documentation for more detail.
And see this answer for more clarification BlackBerry: Overriding paint() vs subpaint()