Files in the sample application

This file defines the EyelidFieldDemo class.

The EyelidFieldDemo class extends the UiApplication class to support a UI and contains the following constructor and methods:

  • main (string[] args): provides the entry point to the sample application and starts the main thread for the application using enterEventDispatcher() from UiApplication
  • EyelidFieldDemo(): constructs a new EyelidFieldDemo object, and creates an EyelidFieldDemoScreen object and displays it

This file defines the EyelidFieldDemoScreen class and the CustomEditField, CustomLabelField, and SimpleButton nested classes.

The EyelidFieldDemoScreen class extends the MainScreen class to support screen characteristics that are common to BlackBerry® device applications and contains the following constructor and methods:

  • EyelidFieldDemoScreen(): constructs a new EyelidFieldDemoScreen object, and contains the code that initializes an EyelidFieldManager object, creates several types of fields (for example, a CustomLabelField object, CustomEditField object, and so on), adds these fields to the EyelidFieldManager, and creates CheckboxField objects to control the appearance of the EyelidFieldManager
  • fieldChanged(Field field, int context): implements fieldChanged(Field field, int context) of the FieldChangeListener interface so that when a BlackBerry device user selects or clears the check boxes that the CheckboxField objects represent, the sample application performs the appropriate action for each check box
Next topic: System requirements
Previous topic: Featured interfaces

Was this information helpful? Send us your comments.