Generating Custom Code Subclasses

Generating custom subclasses allows you to modify the generated code so you can further customize screens and controls.

  1. In the Screen Design page, click the Platform-specific tab.
  2. In the Generate a custom coding options subclass option, click false to change it to true.


    bob_platform_specific__custom_code_option

    You can set the custom coding options on:
    • Device – subclasses for the BOBCUIDefinition and BOBCOptionsDefinition will be generated if set to true.
    • Display – a subclass for the screen is generated if set to true.
    • Tab panel – a subclass for the tab panel is generated if set to true.
    • Tab folder – a subclass for the tab folder is generated if set to true.
  3. (Optional) To change all of the property values to true at once (Device, Display, Tab folder, and Tab panel):
    1. Right-click in the Screen Design page and select Preferences.
    2. In Preferences, go to Sybase, Inc. > Mobile Development > Device Application Designer > Devices > BlackBerry.
    3. In Platform Property, select Generate custom subclasses for all.
    4. Restart Eclipse.
  4. Click the Verify icon check_16 on the toolbar to verify the device application has no errors.
  5. Click the code generation icon generate_deviceclient_16 on the toolbar and proceed through the Generate Device application wizard to generate the custom code.