Changes

Jump to: navigation, search

BlackBerry Concepts

664 bytes added, 20:42, 22 February 2011
UI Video
|-
|-
| [[File:13bb.png|left|600px]] || '''[http://www.blackberry.com/developers/docs/6.0.0api/net/rim/device/api/ui/component/Dialog.html The DialogClass]'''
Provides a dialog box with predefined configurations.
To get a standard, predefined dialog use
* ''Dialog.alert(java.lang.String)''
** This method creates an alert dialog typically used to notify the user of an event or some important information. The dialog uses a exclamation mark bitmap.
* ''Dialog.ask(int)''
** This method creates a standard inquiry dialog. The dialog uses a question mark bitmap.Creates a standard inquiry dialog.
* ''Dialog.inform(java.lang.String). ''
** Creates a notification dialog with the specified message. This method creates a notification dialog displaying the specified message. The dialog uses the "information" bitmap.
These pop up a predefined dialog and wait for user input. To get a more customized dialog, instantiate this class or extend it.
</source>
|-
| [[File:15bb.png|left|600px]] || <source lang="java">
public class HelloBlackBerry extends UiApplication {
public static void main( String[] args ) {
HelloBlackBerry theApp = new HelloBlackBerry();
theApp.enterEventDispatcher();
}
/**
* Creates a new HelloBlackBerry object
*/
public HelloBlackBerry() {
// Push a screen onto the UI stack for rendering.
pushScreen( new HelloBlackBerryScreen() );
}
</source>
----------
 
Here is a tutorial for [http://supportforums.blackberry.com/t5/video/gallerypage/video-id/9lZHNsMToFt6sCzMPDlu68CN11DLP7Bg BlackBerry 6 User Interface APIs]

Navigation menu