07-14-2009, 09:33 AM
|
#1 (permalink)
|
| Knows Where the Search Button Is
Join Date: Jun 2009 Model: 8300 PIN: N/A Carrier: Rogers
Posts: 43
Post Thanks: 0 Thanked 0 Times in 0 Posts
| Understanding how things appear on the screen Please Login to Remove! Hey all,
I'm new to blackberry development, but i've done lots of OOP development before.
Can someone do my a huge favor and explain to me the process on how things get drawn to the screen? I am having a hard time grasping it. Here is what I think might happen. let me know where I go wrong...
1.) First I create a new java file (class) and add it to my project. For things that will be displayed on the screen I should extend the Field class.
2.) I create the class as I would any other programmign language. I add a constructor, and any other methods I want call myself.
3.) Here is the part that I get confused with. There seem to be many methods such as paint, layout, onFocus, navigationClick, etc that can exist but i don't see where they get called.
4.) From what I think i understand, the paint method is the method that tells the object what to draw onto the screen. So if i am making a FieldList object, then i want to add all my things i want displayed in here?
5.) There is also a layout method. I am assuming this automattically gets called and somehow using this you can position the object someone on the screen?
Anyways, I'm sure you can tell i am lost. If someone could point me in the right direction (or give me the url to a good tutorial that explains all this), that would be greating appreciated!!
Thanks,
Ryan |
| Offline
| |