Creating a Java Screen Class

Use the Custom Code Screen Properties dialog to create a new screen class.

  1. In the Flow Design page, double-click the BlackBerry Custom Code screen.
  2. Right-click in the Screen Design page and select Create Screen Class.
    You can also click Create Screen Class in the Screen Design Properties view when the custom code screen is selected.
  3. In the New Java Class wizard, enter:
    Option Description
    Source Folder Click Browse to locate the source folder for the Java class.
    Package Click Browse to locate the Package for the new Java class.
    Note: Do not leave this field blank, as the JDK 1.4 Java class in the default package cannot be resolved in other packages.
    Name Enter the name of the Java class.
    Superclass The default is com.sybase.uep.bobclient.screens.BaseBOBScreen.
    1. Click Browse.
    2. In the Superclass Selection dialog, enter:
      • Choose a Type
      • Matching Items
    3. Click OK.
    Interfaces The default is com.sybase.uep.bobclient.screens.IBOBScreen.
    1. Click Add.
    2. In the Implemented Interfaces Selection dialog, enter:
      • Choose Interfaces
      • Matching Items
    3. Click OK.

    To remove an interface:

    1. In the Implemented Interfaces Selection dialog, select an interface.
    2. Click Remove.
    Which Method Stubs Would You Like to Create Select from:
    • Public Static Void Main – leave this option unselected.
    • Constructors From Superclass
    • Inherited Abstract Methods
    Do You Want to Add Comments Select Generate Comments to add comments.
  4. Click Finish.