Changes

Jump to: navigation, search

Lab BlackBerry Example

87 bytes added, 11:32, 27 February 2011
no edit summary
For the title one could use:
void net.rim.device.api.ui.container.MainScreen.setTitle(Field arg0)
for as the fieldargument, you can build a LabelField object withusing the constructor from the package: net.rim.device.api.ui.component.LabelField;  public LabelField(Object arg0, long arg1)
Thus, to set the title of the screen you can write the instruction:
* Text Field
Fot the screen text, one can use the constructor of RichTextField class from the package:
net.rim.device.api.ui.component.RichTextField
 
public RichTextField(String text, long style)
that constructs a plain RichTextField for an object in the specified style. 
To add the field to the screen you invoke the method
void net.rim.device.api.ui.Screen.'''add'''(Field arg0)
Thus, to add the text field to your screen you have to write the following instruction:
add(new RichTextField("Here is the second activity", Field.NON_FOCUSABLE));

Navigation menu