© Codename One 2012. All rights Reserved. http://www.codenameone.com
3
The Components Of Codename One .......................................................................... 52
Container .................................................................................................................................... 52
Form ............................................................................................................................................ 52
Dialog .......................................................................................................................................... 54
Label ........................................................................................................................................... 54
Button .......................................................................................................................................... 54
CheckBox/Radio Button .............................................................................................................. 54
Multi-Button ................................................................................................................................. 54
TextField/TextArea ...................................................................................................................... 55
Toggle Button .............................................................................................................................. 55
List, ContainerList, Renderers & Models .................................................................................... 57
Important - Lists & Layout Managers ...................................................................................... 58
Using Lists In The GUI Builder ................................................................................................ 58
Understanding MVC ................................................................................................................ 63
List Cell Renderer ................................................................................................................... 64
Generic List Cell Renderer ...................................................................................................... 67
The List Model ........................................................................................................................ 70
MultiList ....................................................................................................................................... 74
Slider ........................................................................................................................................... 74
Table ........................................................................................................................................... 75
Tree ............................................................................................................................................. 76
Share Button ............................................................................................................................... 77
Infinite Progress .......................................................................................................................... 78
Tabs ............................................................................................................................................ 78
MediaPlayer ................................................................................................................................ 79
WebBrowser ............................................................................................................................... 79
Embedded Container .................................................................................................................. 80
The Map Component .................................................................................................................. 81
Animations & Transitions ............................................................................................ 87
Low Level Animations ................................................................................................................. 87
Transitions .................................................................................................................................. 87
The EDT - Event Dispatch Thread ............................................................................... 93
What Is The EDT ........................................................................................................................ 93
Debugging EDT Violations .......................................................................................................... 93
Call Serially (And Wait) ............................................................................................................... 94
Invoke And Block ........................................................................................................................ 95
Monetization .................................................................................................................. 98
Ad Networks ................................................................................................................................ 98
vserv ....................................................................................................................................... 98
Inneractive .............................................................................................................................. 99
In App Purchase ......................................................................................................................... 99
Graphics, Drawing & Images ..................................................................................... 102
Basics - Where & How Do I Draw Manually? ............................................................................ 102
Images ...................................................................................................................................... 103
Glass Pane ............................................................................................................................... 105