Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Regular Contributor
bb_develop
Posts: 61
Registered: ‎02-24-2010
My Device: Storm 2

Please explain the following functions in a simple language

Hi.. 

 

Please explain how the following functions work ??

 

Isfocusable()

 

onFocus()

 

OnUnfocus()

 

navigationClick()

 

invalidate()

 

Please explain them in simple language.. i couldn't understand them from the manual ..

 

 

Thanx

 

 

Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: Please explain the following functions in a simple language

Isfocusable()

 Called by the framework to determine if the field can accept focus.

 

onFocus()

 Called by the framework when the field gains focus

 

OnUnfocus()

 called by the framework when the field loses focus

 

navigationClick()

 called when the pointing device clicks on a field that has focus

 

invalidate()

 called to place the field in a "dirty" state so that it will be repainted

 

May I suggest that you purchase one of the very good beginners books on Blackberry development?

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Please explain the following functions in a simple language

Hi bb_develop and welcome to the forums.

 

I would agree with RexDoug, a book may well help you, because you will find that some of the API explanations are brief.  I have to say that the OS 5.0 API documentation is lot better than the older ones, so if you are looking for an explanation, look there first.  

 

Good luck with your developing.

Regular Contributor
bb_develop
Posts: 61
Registered: ‎02-24-2010
My Device: Storm 2

Re: Please explain the following functions in a simple language

Thanx.. can u please suggest which book i should buy ??

 

I am having the beginning blackberry development of apress publication.

 

Can you suggest some other good book or some other resource where i can look for the development stuff in a simple language.. As a beginner i am finding the material very difficult to understand..

 

 

Developer
peter_strange
Posts: 19,610
Registered: ‎07-14-2008
My Device: Not Specified

Re: Please explain the following functions in a simple language

If you are a beginner to Java you will find this all very difficult.  In that case I would recommend that you buy a simple Java book, any Java book will  do.  There is no book that takes you from not programming to programming Java on Blackberry.  you must learn to program Java, then learn BlackBerry.