Changes

Jump to: navigation, search

BlackBerry Concepts

1,839 bytes added, 09:17, 22 February 2011
UI
|}
 
----------
 
=== Development Fundamentals ===
 
{| class="wikitable" border="0" cellpadding="6"
! Steps !! Actions
|-
| [[File:7bb.png|left|600px]] || [http://www.blackberry.com/developers/docs/6.0.0api/index.html?net/rim/device/api/system/Application.html Package net.rim.device.api.ui ]
 
Provides fundamental functionality for constructing the user interface of a RIM Device application.
 
The members of this package are all abstract classes or interfaces
 
They are not intended for direct instantiation.
 
You should rather use (or extend) the classes in '''''net.rim.device.api.ui.component''''' and '''''net.rim.device.api.ui.container'''''.
 
 
|-
|-
| [[File:ui_basic_arch.png|left|600px]] || There are three main UI primitives:
* [http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Field.html Field]
* http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Manager.html Manager]
* [http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/Screen.html Screen]
 
|-
| [[File:6bb.png|left|600px]] || [http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/UiApplication.html UiApplication]
 
Base class for all device applications that provide a user interface.
 
* A UI application maintains a stack of Screen objects.
As it pushes screens onto the stack, it draws them on top of any other screens already on the stack.
When the application pops a screen off the stack,
it redraws the underlying screens as necessary.
Only the screen on the top of the stack receives input events.
 
* Each screen may appear only once in the display stack.
The application throws a runtime exception
if you attempt to push a single screen onto the stack more than once.
 
Note that a UI application must follow rules similar
to those of traditional Swing applications.
 
|}
 
----------

Navigation menu