Creating a BlackBerry Custom Action

Create a user coded action for BlackBerry devices.

  1. In the Palette, select BlackBerry Custom Code and drag and drop it onto the control that supports the action.
  2. In the BlackBerry Custom Action dialog, browse for the class file that contains the custom coding that implements the action.
  3. (Optional) Click Create Action Class to create a new Java class for the action.
    1. In the New Java Class wizard, enter:
      Option Description
      Source Folder By default, this is empty. Click Browse to locate the source folder for the Java class.
      Package Click Browse to locate the package for the new Java class.
      Name Enter a name for the custom action.
      Superclass

      By default, this is com.sybase.uep.bobclient.actions.Action.

      1. Click Browse.
      2. In the Superclass Selection dialog, enter:
        • Choose a Type
        • Matching Items
      3. Click OK.
      Interfaces By default, this is populated with the com.sybase.uep.bobclient.actions.IBOBAction interface. Click Add to select interfaces implemented by the new class.
      Which Method Stubs Would You Like to Create
      • 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.
    2. Click Finish.
  4. (Optional) Expand the Advanced section to specify advanced settings for:
    Option Description
    Source package Select the folder to include any of the source packages to compile into the client for the source screen.
    Extra source package Select the folder that contains any additional source package to compile into the client.
    Resources Select a folder to include any resources, for example, images, in the client.
    Third party libraries Select a folder with libraries (*.jar files) to compile against.
  5. Click OK.